/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace RoboMaker { namespace Model { /** *

Information about the progress of a deployment job.

See Also:

* AWS * API Reference

*/ class ProgressDetail { public: AWS_ROBOMAKER_API ProgressDetail(); AWS_ROBOMAKER_API ProgressDetail(Aws::Utils::Json::JsonView jsonValue); AWS_ROBOMAKER_API ProgressDetail& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ROBOMAKER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The current progress status.

Validating

Validating * the deployment.

DownloadingExtracting

Downloading and * extracting the bundle on the robot.

ExecutingPreLaunch
*

Executing pre-launch script(s) if provided.

Launching
*

Launching the robot application.

ExecutingPostLaunch
*

Executing post-launch script(s) if provided.

Finished
*

Deployment is complete.

*/ inline const RobotDeploymentStep& GetCurrentProgress() const{ return m_currentProgress; } /** *

The current progress status.

Validating

Validating * the deployment.

DownloadingExtracting

Downloading and * extracting the bundle on the robot.

ExecutingPreLaunch
*

Executing pre-launch script(s) if provided.

Launching
*

Launching the robot application.

ExecutingPostLaunch
*

Executing post-launch script(s) if provided.

Finished
*

Deployment is complete.

*/ inline bool CurrentProgressHasBeenSet() const { return m_currentProgressHasBeenSet; } /** *

The current progress status.

Validating

Validating * the deployment.

DownloadingExtracting

Downloading and * extracting the bundle on the robot.

ExecutingPreLaunch
*

Executing pre-launch script(s) if provided.

Launching
*

Launching the robot application.

ExecutingPostLaunch
*

Executing post-launch script(s) if provided.

Finished
*

Deployment is complete.

*/ inline void SetCurrentProgress(const RobotDeploymentStep& value) { m_currentProgressHasBeenSet = true; m_currentProgress = value; } /** *

The current progress status.

Validating

Validating * the deployment.

DownloadingExtracting

Downloading and * extracting the bundle on the robot.

ExecutingPreLaunch
*

Executing pre-launch script(s) if provided.

Launching
*

Launching the robot application.

ExecutingPostLaunch
*

Executing post-launch script(s) if provided.

Finished
*

Deployment is complete.

*/ inline void SetCurrentProgress(RobotDeploymentStep&& value) { m_currentProgressHasBeenSet = true; m_currentProgress = std::move(value); } /** *

The current progress status.

Validating

Validating * the deployment.

DownloadingExtracting

Downloading and * extracting the bundle on the robot.

ExecutingPreLaunch
*

Executing pre-launch script(s) if provided.

Launching
*

Launching the robot application.

ExecutingPostLaunch
*

Executing post-launch script(s) if provided.

Finished
*

Deployment is complete.

*/ inline ProgressDetail& WithCurrentProgress(const RobotDeploymentStep& value) { SetCurrentProgress(value); return *this;} /** *

The current progress status.

Validating

Validating * the deployment.

DownloadingExtracting

Downloading and * extracting the bundle on the robot.

ExecutingPreLaunch
*

Executing pre-launch script(s) if provided.

Launching
*

Launching the robot application.

ExecutingPostLaunch
*

Executing post-launch script(s) if provided.

Finished
*

Deployment is complete.

*/ inline ProgressDetail& WithCurrentProgress(RobotDeploymentStep&& value) { SetCurrentProgress(std::move(value)); return *this;} /** *

Precentage of the step that is done. This currently only applies to the * Downloading/Extracting step of the deployment. It is empty for * other steps.

*/ inline double GetPercentDone() const{ return m_percentDone; } /** *

Precentage of the step that is done. This currently only applies to the * Downloading/Extracting step of the deployment. It is empty for * other steps.

*/ inline bool PercentDoneHasBeenSet() const { return m_percentDoneHasBeenSet; } /** *

Precentage of the step that is done. This currently only applies to the * Downloading/Extracting step of the deployment. It is empty for * other steps.

*/ inline void SetPercentDone(double value) { m_percentDoneHasBeenSet = true; m_percentDone = value; } /** *

Precentage of the step that is done. This currently only applies to the * Downloading/Extracting step of the deployment. It is empty for * other steps.

*/ inline ProgressDetail& WithPercentDone(double value) { SetPercentDone(value); return *this;} /** *

Estimated amount of time in seconds remaining in the step. This currently * only applies to the Downloading/Extracting step of the deployment. * It is empty for other steps.

*/ inline int GetEstimatedTimeRemainingSeconds() const{ return m_estimatedTimeRemainingSeconds; } /** *

Estimated amount of time in seconds remaining in the step. This currently * only applies to the Downloading/Extracting step of the deployment. * It is empty for other steps.

*/ inline bool EstimatedTimeRemainingSecondsHasBeenSet() const { return m_estimatedTimeRemainingSecondsHasBeenSet; } /** *

Estimated amount of time in seconds remaining in the step. This currently * only applies to the Downloading/Extracting step of the deployment. * It is empty for other steps.

*/ inline void SetEstimatedTimeRemainingSeconds(int value) { m_estimatedTimeRemainingSecondsHasBeenSet = true; m_estimatedTimeRemainingSeconds = value; } /** *

Estimated amount of time in seconds remaining in the step. This currently * only applies to the Downloading/Extracting step of the deployment. * It is empty for other steps.

*/ inline ProgressDetail& WithEstimatedTimeRemainingSeconds(int value) { SetEstimatedTimeRemainingSeconds(value); return *this;} /** *

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

*/ inline const Aws::String& GetTargetResource() const{ return m_targetResource; } /** *

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

*/ inline bool TargetResourceHasBeenSet() const { return m_targetResourceHasBeenSet; } /** *

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

*/ inline void SetTargetResource(const Aws::String& value) { m_targetResourceHasBeenSet = true; m_targetResource = value; } /** *

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

*/ inline void SetTargetResource(Aws::String&& value) { m_targetResourceHasBeenSet = true; m_targetResource = std::move(value); } /** *

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

*/ inline void SetTargetResource(const char* value) { m_targetResourceHasBeenSet = true; m_targetResource.assign(value); } /** *

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

*/ inline ProgressDetail& WithTargetResource(const Aws::String& value) { SetTargetResource(value); return *this;} /** *

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

*/ inline ProgressDetail& WithTargetResource(Aws::String&& value) { SetTargetResource(std::move(value)); return *this;} /** *

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

*/ inline ProgressDetail& WithTargetResource(const char* value) { SetTargetResource(value); return *this;} private: RobotDeploymentStep m_currentProgress; bool m_currentProgressHasBeenSet = false; double m_percentDone; bool m_percentDoneHasBeenSet = false; int m_estimatedTimeRemainingSeconds; bool m_estimatedTimeRemainingSecondsHasBeenSet = false; Aws::String m_targetResource; bool m_targetResourceHasBeenSet = false; }; } // namespace Model } // namespace RoboMaker } // namespace Aws