This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-robomaker/include/aws/robomaker/model/ProgressDetail.h

225 lines
9.5 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/robomaker/RoboMaker_EXPORTS.h>
#include <aws/robomaker/model/RobotDeploymentStep.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace RoboMaker
{
namespace Model
{
/**
* <p>Information about the progress of a deployment job.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/ProgressDetail">AWS
* API Reference</a></p>
*/
class AWS_ROBOMAKER_API ProgressDetail
{
public:
ProgressDetail();
ProgressDetail(Aws::Utils::Json::JsonView jsonValue);
ProgressDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The current progress status.</p> <dl> <dt>Validating</dt> <dd> <p>Validating
* the deployment.</p> </dd> <dt>DownloadingExtracting</dt> <dd> <p>Downloading and
* extracting the bundle on the robot.</p> </dd> <dt>ExecutingPreLaunch</dt> <dd>
* <p>Executing pre-launch script(s) if provided.</p> </dd> <dt>Launching</dt> <dd>
* <p>Launching the robot application.</p> </dd> <dt>ExecutingPostLaunch</dt> <dd>
* <p>Executing post-launch script(s) if provided.</p> </dd> <dt>Finished</dt> <dd>
* <p>Deployment is complete.</p> </dd> </dl>
*/
inline const RobotDeploymentStep& GetCurrentProgress() const{ return m_currentProgress; }
/**
* <p>The current progress status.</p> <dl> <dt>Validating</dt> <dd> <p>Validating
* the deployment.</p> </dd> <dt>DownloadingExtracting</dt> <dd> <p>Downloading and
* extracting the bundle on the robot.</p> </dd> <dt>ExecutingPreLaunch</dt> <dd>
* <p>Executing pre-launch script(s) if provided.</p> </dd> <dt>Launching</dt> <dd>
* <p>Launching the robot application.</p> </dd> <dt>ExecutingPostLaunch</dt> <dd>
* <p>Executing post-launch script(s) if provided.</p> </dd> <dt>Finished</dt> <dd>
* <p>Deployment is complete.</p> </dd> </dl>
*/
inline bool CurrentProgressHasBeenSet() const { return m_currentProgressHasBeenSet; }
/**
* <p>The current progress status.</p> <dl> <dt>Validating</dt> <dd> <p>Validating
* the deployment.</p> </dd> <dt>DownloadingExtracting</dt> <dd> <p>Downloading and
* extracting the bundle on the robot.</p> </dd> <dt>ExecutingPreLaunch</dt> <dd>
* <p>Executing pre-launch script(s) if provided.</p> </dd> <dt>Launching</dt> <dd>
* <p>Launching the robot application.</p> </dd> <dt>ExecutingPostLaunch</dt> <dd>
* <p>Executing post-launch script(s) if provided.</p> </dd> <dt>Finished</dt> <dd>
* <p>Deployment is complete.</p> </dd> </dl>
*/
inline void SetCurrentProgress(const RobotDeploymentStep& value) { m_currentProgressHasBeenSet = true; m_currentProgress = value; }
/**
* <p>The current progress status.</p> <dl> <dt>Validating</dt> <dd> <p>Validating
* the deployment.</p> </dd> <dt>DownloadingExtracting</dt> <dd> <p>Downloading and
* extracting the bundle on the robot.</p> </dd> <dt>ExecutingPreLaunch</dt> <dd>
* <p>Executing pre-launch script(s) if provided.</p> </dd> <dt>Launching</dt> <dd>
* <p>Launching the robot application.</p> </dd> <dt>ExecutingPostLaunch</dt> <dd>
* <p>Executing post-launch script(s) if provided.</p> </dd> <dt>Finished</dt> <dd>
* <p>Deployment is complete.</p> </dd> </dl>
*/
inline void SetCurrentProgress(RobotDeploymentStep&& value) { m_currentProgressHasBeenSet = true; m_currentProgress = std::move(value); }
/**
* <p>The current progress status.</p> <dl> <dt>Validating</dt> <dd> <p>Validating
* the deployment.</p> </dd> <dt>DownloadingExtracting</dt> <dd> <p>Downloading and
* extracting the bundle on the robot.</p> </dd> <dt>ExecutingPreLaunch</dt> <dd>
* <p>Executing pre-launch script(s) if provided.</p> </dd> <dt>Launching</dt> <dd>
* <p>Launching the robot application.</p> </dd> <dt>ExecutingPostLaunch</dt> <dd>
* <p>Executing post-launch script(s) if provided.</p> </dd> <dt>Finished</dt> <dd>
* <p>Deployment is complete.</p> </dd> </dl>
*/
inline ProgressDetail& WithCurrentProgress(const RobotDeploymentStep& value) { SetCurrentProgress(value); return *this;}
/**
* <p>The current progress status.</p> <dl> <dt>Validating</dt> <dd> <p>Validating
* the deployment.</p> </dd> <dt>DownloadingExtracting</dt> <dd> <p>Downloading and
* extracting the bundle on the robot.</p> </dd> <dt>ExecutingPreLaunch</dt> <dd>
* <p>Executing pre-launch script(s) if provided.</p> </dd> <dt>Launching</dt> <dd>
* <p>Launching the robot application.</p> </dd> <dt>ExecutingPostLaunch</dt> <dd>
* <p>Executing post-launch script(s) if provided.</p> </dd> <dt>Finished</dt> <dd>
* <p>Deployment is complete.</p> </dd> </dl>
*/
inline ProgressDetail& WithCurrentProgress(RobotDeploymentStep&& value) { SetCurrentProgress(std::move(value)); return *this;}
/**
* <p>Precentage of the step that is done. This currently only applies to the
* <code>Downloading/Extracting</code> step of the deployment. It is empty for
* other steps.</p>
*/
inline double GetPercentDone() const{ return m_percentDone; }
/**
* <p>Precentage of the step that is done. This currently only applies to the
* <code>Downloading/Extracting</code> step of the deployment. It is empty for
* other steps.</p>
*/
inline bool PercentDoneHasBeenSet() const { return m_percentDoneHasBeenSet; }
/**
* <p>Precentage of the step that is done. This currently only applies to the
* <code>Downloading/Extracting</code> step of the deployment. It is empty for
* other steps.</p>
*/
inline void SetPercentDone(double value) { m_percentDoneHasBeenSet = true; m_percentDone = value; }
/**
* <p>Precentage of the step that is done. This currently only applies to the
* <code>Downloading/Extracting</code> step of the deployment. It is empty for
* other steps.</p>
*/
inline ProgressDetail& WithPercentDone(double value) { SetPercentDone(value); return *this;}
/**
* <p>Estimated amount of time in seconds remaining in the step. This currently
* only applies to the <code>Downloading/Extracting</code> step of the deployment.
* It is empty for other steps.</p>
*/
inline int GetEstimatedTimeRemainingSeconds() const{ return m_estimatedTimeRemainingSeconds; }
/**
* <p>Estimated amount of time in seconds remaining in the step. This currently
* only applies to the <code>Downloading/Extracting</code> step of the deployment.
* It is empty for other steps.</p>
*/
inline bool EstimatedTimeRemainingSecondsHasBeenSet() const { return m_estimatedTimeRemainingSecondsHasBeenSet; }
/**
* <p>Estimated amount of time in seconds remaining in the step. This currently
* only applies to the <code>Downloading/Extracting</code> step of the deployment.
* It is empty for other steps.</p>
*/
inline void SetEstimatedTimeRemainingSeconds(int value) { m_estimatedTimeRemainingSecondsHasBeenSet = true; m_estimatedTimeRemainingSeconds = value; }
/**
* <p>Estimated amount of time in seconds remaining in the step. This currently
* only applies to the <code>Downloading/Extracting</code> step of the deployment.
* It is empty for other steps.</p>
*/
inline ProgressDetail& WithEstimatedTimeRemainingSeconds(int value) { SetEstimatedTimeRemainingSeconds(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the deployment job.</p>
*/
inline const Aws::String& GetTargetResource() const{ return m_targetResource; }
/**
* <p>The Amazon Resource Name (ARN) of the deployment job.</p>
*/
inline bool TargetResourceHasBeenSet() const { return m_targetResourceHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the deployment job.</p>
*/
inline void SetTargetResource(const Aws::String& value) { m_targetResourceHasBeenSet = true; m_targetResource = value; }
/**
* <p>The Amazon Resource Name (ARN) of the deployment job.</p>
*/
inline void SetTargetResource(Aws::String&& value) { m_targetResourceHasBeenSet = true; m_targetResource = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the deployment job.</p>
*/
inline void SetTargetResource(const char* value) { m_targetResourceHasBeenSet = true; m_targetResource.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the deployment job.</p>
*/
inline ProgressDetail& WithTargetResource(const Aws::String& value) { SetTargetResource(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the deployment job.</p>
*/
inline ProgressDetail& WithTargetResource(Aws::String&& value) { SetTargetResource(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the deployment job.</p>
*/
inline ProgressDetail& WithTargetResource(const char* value) { SetTargetResource(value); return *this;}
private:
RobotDeploymentStep m_currentProgress;
bool m_currentProgressHasBeenSet;
double m_percentDone;
bool m_percentDoneHasBeenSet;
int m_estimatedTimeRemainingSeconds;
bool m_estimatedTimeRemainingSecondsHasBeenSet;
Aws::String m_targetResource;
bool m_targetResourceHasBeenSet;
};
} // namespace Model
} // namespace RoboMaker
} // namespace Aws