/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace RoboMaker { namespace Model { class AWS_ROBOMAKER_API CreateDeploymentJobResult { public: CreateDeploymentJobResult(); CreateDeploymentJobResult(const Aws::AmazonWebServiceResult& result); CreateDeploymentJobResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Amazon Resource Name (ARN) of the deployment job.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of the deployment job.

*/ inline void SetArn(const Aws::String& value) { m_arn = value; } /** *

The Amazon Resource Name (ARN) of the deployment job.

*/ inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the deployment job.

*/ inline void SetArn(const char* value) { m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of the deployment job.

*/ inline CreateDeploymentJobResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the deployment job.

*/ inline CreateDeploymentJobResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the deployment job.

*/ inline CreateDeploymentJobResult& WithArn(const char* value) { SetArn(value); return *this;} /** *

The target fleet for the deployment job.

*/ inline const Aws::String& GetFleet() const{ return m_fleet; } /** *

The target fleet for the deployment job.

*/ inline void SetFleet(const Aws::String& value) { m_fleet = value; } /** *

The target fleet for the deployment job.

*/ inline void SetFleet(Aws::String&& value) { m_fleet = std::move(value); } /** *

The target fleet for the deployment job.

*/ inline void SetFleet(const char* value) { m_fleet.assign(value); } /** *

The target fleet for the deployment job.

*/ inline CreateDeploymentJobResult& WithFleet(const Aws::String& value) { SetFleet(value); return *this;} /** *

The target fleet for the deployment job.

*/ inline CreateDeploymentJobResult& WithFleet(Aws::String&& value) { SetFleet(std::move(value)); return *this;} /** *

The target fleet for the deployment job.

*/ inline CreateDeploymentJobResult& WithFleet(const char* value) { SetFleet(value); return *this;} /** *

The status of the deployment job.

*/ inline const DeploymentStatus& GetStatus() const{ return m_status; } /** *

The status of the deployment job.

*/ inline void SetStatus(const DeploymentStatus& value) { m_status = value; } /** *

The status of the deployment job.

*/ inline void SetStatus(DeploymentStatus&& value) { m_status = std::move(value); } /** *

The status of the deployment job.

*/ inline CreateDeploymentJobResult& WithStatus(const DeploymentStatus& value) { SetStatus(value); return *this;} /** *

The status of the deployment job.

*/ inline CreateDeploymentJobResult& WithStatus(DeploymentStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The deployment application configuration.

*/ inline const Aws::Vector& GetDeploymentApplicationConfigs() const{ return m_deploymentApplicationConfigs; } /** *

The deployment application configuration.

*/ inline void SetDeploymentApplicationConfigs(const Aws::Vector& value) { m_deploymentApplicationConfigs = value; } /** *

The deployment application configuration.

*/ inline void SetDeploymentApplicationConfigs(Aws::Vector&& value) { m_deploymentApplicationConfigs = std::move(value); } /** *

The deployment application configuration.

*/ inline CreateDeploymentJobResult& WithDeploymentApplicationConfigs(const Aws::Vector& value) { SetDeploymentApplicationConfigs(value); return *this;} /** *

The deployment application configuration.

*/ inline CreateDeploymentJobResult& WithDeploymentApplicationConfigs(Aws::Vector&& value) { SetDeploymentApplicationConfigs(std::move(value)); return *this;} /** *

The deployment application configuration.

*/ inline CreateDeploymentJobResult& AddDeploymentApplicationConfigs(const DeploymentApplicationConfig& value) { m_deploymentApplicationConfigs.push_back(value); return *this; } /** *

The deployment application configuration.

*/ inline CreateDeploymentJobResult& AddDeploymentApplicationConfigs(DeploymentApplicationConfig&& value) { m_deploymentApplicationConfigs.push_back(std::move(value)); return *this; } /** *

The failure reason of the deployment job if it failed.

*/ inline const Aws::String& GetFailureReason() const{ return m_failureReason; } /** *

The failure reason of the deployment job if it failed.

*/ inline void SetFailureReason(const Aws::String& value) { m_failureReason = value; } /** *

The failure reason of the deployment job if it failed.

*/ inline void SetFailureReason(Aws::String&& value) { m_failureReason = std::move(value); } /** *

The failure reason of the deployment job if it failed.

*/ inline void SetFailureReason(const char* value) { m_failureReason.assign(value); } /** *

The failure reason of the deployment job if it failed.

*/ inline CreateDeploymentJobResult& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;} /** *

The failure reason of the deployment job if it failed.

*/ inline CreateDeploymentJobResult& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;} /** *

The failure reason of the deployment job if it failed.

*/ inline CreateDeploymentJobResult& WithFailureReason(const char* value) { SetFailureReason(value); return *this;} /** *

The failure code of the simulation job if it failed:

*
BadPermissionError

AWS Greengrass requires a service-level role * permission to access other services. The role must include the * AWSGreengrassResourceAccessRolePolicy managed policy.

*
ExtractingBundleFailure

The robot application could not * be extracted from the bundle.

FailureThresholdBreached
*

The percentage of robots that could not be updated exceeded the percentage * set for the deployment.

GreengrassDeploymentFailed
*

The robot application could not be deployed to the robot.

*
GreengrassGroupVersionDoesNotExist

The AWS Greengrass group or * version associated with a robot is missing.

*
InternalServerError

An internal error has occurred. Retry your * request, but if the problem persists, contact us with details.

*
MissingRobotApplicationArchitecture

The robot application does * not have a source that matches the architecture of the robot.

*
MissingRobotDeploymentResource

One or more of the resources * specified for the robot application are missing. For example, does the robot * application have the correct launch package and launch file?

*
PostLaunchFileFailure

The post-launch script failed.

*
PreLaunchFileFailure

The pre-launch script failed.

*
ResourceNotFound

One or more deployment resources are missing. * For example, do robot application source bundles still exist?

*
RobotDeploymentNoResponse

There is no response from the robot. * It might not be powered on or connected to the internet.

*/ inline const DeploymentJobErrorCode& GetFailureCode() const{ return m_failureCode; } /** *

The failure code of the simulation job if it failed:

*
BadPermissionError

AWS Greengrass requires a service-level role * permission to access other services. The role must include the * AWSGreengrassResourceAccessRolePolicy managed policy.

*
ExtractingBundleFailure

The robot application could not * be extracted from the bundle.

FailureThresholdBreached
*

The percentage of robots that could not be updated exceeded the percentage * set for the deployment.

GreengrassDeploymentFailed
*

The robot application could not be deployed to the robot.

*
GreengrassGroupVersionDoesNotExist

The AWS Greengrass group or * version associated with a robot is missing.

*
InternalServerError

An internal error has occurred. Retry your * request, but if the problem persists, contact us with details.

*
MissingRobotApplicationArchitecture

The robot application does * not have a source that matches the architecture of the robot.

*
MissingRobotDeploymentResource

One or more of the resources * specified for the robot application are missing. For example, does the robot * application have the correct launch package and launch file?

*
PostLaunchFileFailure

The post-launch script failed.

*
PreLaunchFileFailure

The pre-launch script failed.

*
ResourceNotFound

One or more deployment resources are missing. * For example, do robot application source bundles still exist?

*
RobotDeploymentNoResponse

There is no response from the robot. * It might not be powered on or connected to the internet.

*/ inline void SetFailureCode(const DeploymentJobErrorCode& value) { m_failureCode = value; } /** *

The failure code of the simulation job if it failed:

*
BadPermissionError

AWS Greengrass requires a service-level role * permission to access other services. The role must include the * AWSGreengrassResourceAccessRolePolicy managed policy.

*
ExtractingBundleFailure

The robot application could not * be extracted from the bundle.

FailureThresholdBreached
*

The percentage of robots that could not be updated exceeded the percentage * set for the deployment.

GreengrassDeploymentFailed
*

The robot application could not be deployed to the robot.

*
GreengrassGroupVersionDoesNotExist

The AWS Greengrass group or * version associated with a robot is missing.

*
InternalServerError

An internal error has occurred. Retry your * request, but if the problem persists, contact us with details.

*
MissingRobotApplicationArchitecture

The robot application does * not have a source that matches the architecture of the robot.

*
MissingRobotDeploymentResource

One or more of the resources * specified for the robot application are missing. For example, does the robot * application have the correct launch package and launch file?

*
PostLaunchFileFailure

The post-launch script failed.

*
PreLaunchFileFailure

The pre-launch script failed.

*
ResourceNotFound

One or more deployment resources are missing. * For example, do robot application source bundles still exist?

*
RobotDeploymentNoResponse

There is no response from the robot. * It might not be powered on or connected to the internet.

*/ inline void SetFailureCode(DeploymentJobErrorCode&& value) { m_failureCode = std::move(value); } /** *

The failure code of the simulation job if it failed:

*
BadPermissionError

AWS Greengrass requires a service-level role * permission to access other services. The role must include the * AWSGreengrassResourceAccessRolePolicy managed policy.

*
ExtractingBundleFailure

The robot application could not * be extracted from the bundle.

FailureThresholdBreached
*

The percentage of robots that could not be updated exceeded the percentage * set for the deployment.

GreengrassDeploymentFailed
*

The robot application could not be deployed to the robot.

*
GreengrassGroupVersionDoesNotExist

The AWS Greengrass group or * version associated with a robot is missing.

*
InternalServerError

An internal error has occurred. Retry your * request, but if the problem persists, contact us with details.

*
MissingRobotApplicationArchitecture

The robot application does * not have a source that matches the architecture of the robot.

*
MissingRobotDeploymentResource

One or more of the resources * specified for the robot application are missing. For example, does the robot * application have the correct launch package and launch file?

*
PostLaunchFileFailure

The post-launch script failed.

*
PreLaunchFileFailure

The pre-launch script failed.

*
ResourceNotFound

One or more deployment resources are missing. * For example, do robot application source bundles still exist?

*
RobotDeploymentNoResponse

There is no response from the robot. * It might not be powered on or connected to the internet.

*/ inline CreateDeploymentJobResult& WithFailureCode(const DeploymentJobErrorCode& value) { SetFailureCode(value); return *this;} /** *

The failure code of the simulation job if it failed:

*
BadPermissionError

AWS Greengrass requires a service-level role * permission to access other services. The role must include the * AWSGreengrassResourceAccessRolePolicy managed policy.

*
ExtractingBundleFailure

The robot application could not * be extracted from the bundle.

FailureThresholdBreached
*

The percentage of robots that could not be updated exceeded the percentage * set for the deployment.

GreengrassDeploymentFailed
*

The robot application could not be deployed to the robot.

*
GreengrassGroupVersionDoesNotExist

The AWS Greengrass group or * version associated with a robot is missing.

*
InternalServerError

An internal error has occurred. Retry your * request, but if the problem persists, contact us with details.

*
MissingRobotApplicationArchitecture

The robot application does * not have a source that matches the architecture of the robot.

*
MissingRobotDeploymentResource

One or more of the resources * specified for the robot application are missing. For example, does the robot * application have the correct launch package and launch file?

*
PostLaunchFileFailure

The post-launch script failed.

*
PreLaunchFileFailure

The pre-launch script failed.

*
ResourceNotFound

One or more deployment resources are missing. * For example, do robot application source bundles still exist?

*
RobotDeploymentNoResponse

There is no response from the robot. * It might not be powered on or connected to the internet.

*/ inline CreateDeploymentJobResult& WithFailureCode(DeploymentJobErrorCode&& value) { SetFailureCode(std::move(value)); return *this;} /** *

The time, in milliseconds since the epoch, when the fleet was created.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The time, in milliseconds since the epoch, when the fleet was created.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; } /** *

The time, in milliseconds since the epoch, when the fleet was created.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); } /** *

The time, in milliseconds since the epoch, when the fleet was created.

*/ inline CreateDeploymentJobResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The time, in milliseconds since the epoch, when the fleet was created.

*/ inline CreateDeploymentJobResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The deployment configuration.

*/ inline const DeploymentConfig& GetDeploymentConfig() const{ return m_deploymentConfig; } /** *

The deployment configuration.

*/ inline void SetDeploymentConfig(const DeploymentConfig& value) { m_deploymentConfig = value; } /** *

The deployment configuration.

*/ inline void SetDeploymentConfig(DeploymentConfig&& value) { m_deploymentConfig = std::move(value); } /** *

The deployment configuration.

*/ inline CreateDeploymentJobResult& WithDeploymentConfig(const DeploymentConfig& value) { SetDeploymentConfig(value); return *this;} /** *

The deployment configuration.

*/ inline CreateDeploymentJobResult& WithDeploymentConfig(DeploymentConfig&& value) { SetDeploymentConfig(std::move(value)); return *this;} /** *

The list of all tags added to the deployment job.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The list of all tags added to the deployment job.

*/ inline void SetTags(const Aws::Map& value) { m_tags = value; } /** *

The list of all tags added to the deployment job.

*/ inline void SetTags(Aws::Map&& value) { m_tags = std::move(value); } /** *

The list of all tags added to the deployment job.

*/ inline CreateDeploymentJobResult& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The list of all tags added to the deployment job.

*/ inline CreateDeploymentJobResult& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The list of all tags added to the deployment job.

*/ inline CreateDeploymentJobResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } /** *

The list of all tags added to the deployment job.

*/ inline CreateDeploymentJobResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } /** *

The list of all tags added to the deployment job.

*/ inline CreateDeploymentJobResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** *

The list of all tags added to the deployment job.

*/ inline CreateDeploymentJobResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The list of all tags added to the deployment job.

*/ inline CreateDeploymentJobResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** *

The list of all tags added to the deployment job.

*/ inline CreateDeploymentJobResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } /** *

The list of all tags added to the deployment job.

*/ inline CreateDeploymentJobResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } private: Aws::String m_arn; Aws::String m_fleet; DeploymentStatus m_status; Aws::Vector m_deploymentApplicationConfigs; Aws::String m_failureReason; DeploymentJobErrorCode m_failureCode; Aws::Utils::DateTime m_createdAt; DeploymentConfig m_deploymentConfig; Aws::Map m_tags; }; } // namespace Model } // namespace RoboMaker } // namespace Aws