/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a command.See Also:
AWS
* API Reference
The command ID.
*/ inline const Aws::String& GetCommandId() const{ return m_commandId; } /** *The command ID.
*/ inline bool CommandIdHasBeenSet() const { return m_commandIdHasBeenSet; } /** *The command ID.
*/ inline void SetCommandId(const Aws::String& value) { m_commandIdHasBeenSet = true; m_commandId = value; } /** *The command ID.
*/ inline void SetCommandId(Aws::String&& value) { m_commandIdHasBeenSet = true; m_commandId = std::move(value); } /** *The command ID.
*/ inline void SetCommandId(const char* value) { m_commandIdHasBeenSet = true; m_commandId.assign(value); } /** *The command ID.
*/ inline Command& WithCommandId(const Aws::String& value) { SetCommandId(value); return *this;} /** *The command ID.
*/ inline Command& WithCommandId(Aws::String&& value) { SetCommandId(std::move(value)); return *this;} /** *The command ID.
*/ inline Command& WithCommandId(const char* value) { SetCommandId(value); return *this;} /** *The ID of the instance where the command was executed.
*/ inline const Aws::String& GetInstanceId() const{ return m_instanceId; } /** *The ID of the instance where the command was executed.
*/ inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; } /** *The ID of the instance where the command was executed.
*/ inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; } /** *The ID of the instance where the command was executed.
*/ inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); } /** *The ID of the instance where the command was executed.
*/ inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); } /** *The ID of the instance where the command was executed.
*/ inline Command& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} /** *The ID of the instance where the command was executed.
*/ inline Command& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} /** *The ID of the instance where the command was executed.
*/ inline Command& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} /** *The command deployment ID.
*/ inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; } /** *The command deployment ID.
*/ inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; } /** *The command deployment ID.
*/ inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; } /** *The command deployment ID.
*/ inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); } /** *The command deployment ID.
*/ inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); } /** *The command deployment ID.
*/ inline Command& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;} /** *The command deployment ID.
*/ inline Command& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;} /** *The command deployment ID.
*/ inline Command& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;} /** *Date and time when the command was run.
*/ inline const Aws::String& GetCreatedAt() const{ return m_createdAt; } /** *Date and time when the command was run.
*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *Date and time when the command was run.
*/ inline void SetCreatedAt(const Aws::String& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *Date and time when the command was run.
*/ inline void SetCreatedAt(Aws::String&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *Date and time when the command was run.
*/ inline void SetCreatedAt(const char* value) { m_createdAtHasBeenSet = true; m_createdAt.assign(value); } /** *Date and time when the command was run.
*/ inline Command& WithCreatedAt(const Aws::String& value) { SetCreatedAt(value); return *this;} /** *Date and time when the command was run.
*/ inline Command& WithCreatedAt(Aws::String&& value) { SetCreatedAt(std::move(value)); return *this;} /** *Date and time when the command was run.
*/ inline Command& WithCreatedAt(const char* value) { SetCreatedAt(value); return *this;} /** *Date and time when the command was acknowledged.
*/ inline const Aws::String& GetAcknowledgedAt() const{ return m_acknowledgedAt; } /** *Date and time when the command was acknowledged.
*/ inline bool AcknowledgedAtHasBeenSet() const { return m_acknowledgedAtHasBeenSet; } /** *Date and time when the command was acknowledged.
*/ inline void SetAcknowledgedAt(const Aws::String& value) { m_acknowledgedAtHasBeenSet = true; m_acknowledgedAt = value; } /** *Date and time when the command was acknowledged.
*/ inline void SetAcknowledgedAt(Aws::String&& value) { m_acknowledgedAtHasBeenSet = true; m_acknowledgedAt = std::move(value); } /** *Date and time when the command was acknowledged.
*/ inline void SetAcknowledgedAt(const char* value) { m_acknowledgedAtHasBeenSet = true; m_acknowledgedAt.assign(value); } /** *Date and time when the command was acknowledged.
*/ inline Command& WithAcknowledgedAt(const Aws::String& value) { SetAcknowledgedAt(value); return *this;} /** *Date and time when the command was acknowledged.
*/ inline Command& WithAcknowledgedAt(Aws::String&& value) { SetAcknowledgedAt(std::move(value)); return *this;} /** *Date and time when the command was acknowledged.
*/ inline Command& WithAcknowledgedAt(const char* value) { SetAcknowledgedAt(value); return *this;} /** *Date when the command completed.
*/ inline const Aws::String& GetCompletedAt() const{ return m_completedAt; } /** *Date when the command completed.
*/ inline bool CompletedAtHasBeenSet() const { return m_completedAtHasBeenSet; } /** *Date when the command completed.
*/ inline void SetCompletedAt(const Aws::String& value) { m_completedAtHasBeenSet = true; m_completedAt = value; } /** *Date when the command completed.
*/ inline void SetCompletedAt(Aws::String&& value) { m_completedAtHasBeenSet = true; m_completedAt = std::move(value); } /** *Date when the command completed.
*/ inline void SetCompletedAt(const char* value) { m_completedAtHasBeenSet = true; m_completedAt.assign(value); } /** *Date when the command completed.
*/ inline Command& WithCompletedAt(const Aws::String& value) { SetCompletedAt(value); return *this;} /** *Date when the command completed.
*/ inline Command& WithCompletedAt(Aws::String&& value) { SetCompletedAt(std::move(value)); return *this;} /** *Date when the command completed.
*/ inline Command& WithCompletedAt(const char* value) { SetCompletedAt(value); return *this;} /** *The command status:
failed
successful
*skipped
pending
The command status:
failed
successful
*skipped
pending
The command status:
failed
successful
*skipped
pending
The command status:
failed
successful
*skipped
pending
The command status:
failed
successful
*skipped
pending
The command status:
failed
successful
*skipped
pending
The command status:
failed
successful
*skipped
pending
The command status:
failed
successful
*skipped
pending
The command exit code.
*/ inline int GetExitCode() const{ return m_exitCode; } /** *The command exit code.
*/ inline bool ExitCodeHasBeenSet() const { return m_exitCodeHasBeenSet; } /** *The command exit code.
*/ inline void SetExitCode(int value) { m_exitCodeHasBeenSet = true; m_exitCode = value; } /** *The command exit code.
*/ inline Command& WithExitCode(int value) { SetExitCode(value); return *this;} /** *The URL of the command log.
*/ inline const Aws::String& GetLogUrl() const{ return m_logUrl; } /** *The URL of the command log.
*/ inline bool LogUrlHasBeenSet() const { return m_logUrlHasBeenSet; } /** *The URL of the command log.
*/ inline void SetLogUrl(const Aws::String& value) { m_logUrlHasBeenSet = true; m_logUrl = value; } /** *The URL of the command log.
*/ inline void SetLogUrl(Aws::String&& value) { m_logUrlHasBeenSet = true; m_logUrl = std::move(value); } /** *The URL of the command log.
*/ inline void SetLogUrl(const char* value) { m_logUrlHasBeenSet = true; m_logUrl.assign(value); } /** *The URL of the command log.
*/ inline Command& WithLogUrl(const Aws::String& value) { SetLogUrl(value); return *this;} /** *The URL of the command log.
*/ inline Command& WithLogUrl(Aws::String&& value) { SetLogUrl(std::move(value)); return *this;} /** *The URL of the command log.
*/ inline Command& WithLogUrl(const char* value) { SetLogUrl(value); return *this;} /** *The command type:
configure
deploy
execute_recipes
install_dependencies
* restart
rollback
setup
start
stop
undeploy
update_custom_cookbooks
* update_dependencies
The command type:
configure
deploy
execute_recipes
install_dependencies
* restart
rollback
setup
start
stop
undeploy
update_custom_cookbooks
* update_dependencies
The command type:
configure
deploy
execute_recipes
install_dependencies
* restart
rollback
setup
start
stop
undeploy
update_custom_cookbooks
* update_dependencies
The command type:
configure
deploy
execute_recipes
install_dependencies
* restart
rollback
setup
start
stop
undeploy
update_custom_cookbooks
* update_dependencies
The command type:
configure
deploy
execute_recipes
install_dependencies
* restart
rollback
setup
start
stop
undeploy
update_custom_cookbooks
* update_dependencies
The command type:
configure
deploy
execute_recipes
install_dependencies
* restart
rollback
setup
start
stop
undeploy
update_custom_cookbooks
* update_dependencies
The command type:
configure
deploy
execute_recipes
install_dependencies
* restart
rollback
setup
start
stop
undeploy
update_custom_cookbooks
* update_dependencies
The command type:
configure
deploy
execute_recipes
install_dependencies
* restart
rollback
setup
start
stop
undeploy
update_custom_cookbooks
* update_dependencies