159 lines
5.5 KiB
C++
159 lines
5.5 KiB
C++
/**
|
|
* 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/S3Object.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace RoboMaker
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Information about a deployment configuration.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/robomaker-2018-06-29/DeploymentConfig">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_ROBOMAKER_API DeploymentConfig
|
|
{
|
|
public:
|
|
DeploymentConfig();
|
|
DeploymentConfig(Aws::Utils::Json::JsonView jsonValue);
|
|
DeploymentConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>The percentage of robots receiving the deployment at the same time.</p>
|
|
*/
|
|
inline int GetConcurrentDeploymentPercentage() const{ return m_concurrentDeploymentPercentage; }
|
|
|
|
/**
|
|
* <p>The percentage of robots receiving the deployment at the same time.</p>
|
|
*/
|
|
inline bool ConcurrentDeploymentPercentageHasBeenSet() const { return m_concurrentDeploymentPercentageHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The percentage of robots receiving the deployment at the same time.</p>
|
|
*/
|
|
inline void SetConcurrentDeploymentPercentage(int value) { m_concurrentDeploymentPercentageHasBeenSet = true; m_concurrentDeploymentPercentage = value; }
|
|
|
|
/**
|
|
* <p>The percentage of robots receiving the deployment at the same time.</p>
|
|
*/
|
|
inline DeploymentConfig& WithConcurrentDeploymentPercentage(int value) { SetConcurrentDeploymentPercentage(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The percentage of deployments that need to fail before stopping
|
|
* deployment.</p>
|
|
*/
|
|
inline int GetFailureThresholdPercentage() const{ return m_failureThresholdPercentage; }
|
|
|
|
/**
|
|
* <p>The percentage of deployments that need to fail before stopping
|
|
* deployment.</p>
|
|
*/
|
|
inline bool FailureThresholdPercentageHasBeenSet() const { return m_failureThresholdPercentageHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The percentage of deployments that need to fail before stopping
|
|
* deployment.</p>
|
|
*/
|
|
inline void SetFailureThresholdPercentage(int value) { m_failureThresholdPercentageHasBeenSet = true; m_failureThresholdPercentage = value; }
|
|
|
|
/**
|
|
* <p>The percentage of deployments that need to fail before stopping
|
|
* deployment.</p>
|
|
*/
|
|
inline DeploymentConfig& WithFailureThresholdPercentage(int value) { SetFailureThresholdPercentage(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The amount of time, in seconds, to wait for deployment to a single robot to
|
|
* complete. Choose a time between 1 minute and 7 days. The default is 5 hours.</p>
|
|
*/
|
|
inline long long GetRobotDeploymentTimeoutInSeconds() const{ return m_robotDeploymentTimeoutInSeconds; }
|
|
|
|
/**
|
|
* <p>The amount of time, in seconds, to wait for deployment to a single robot to
|
|
* complete. Choose a time between 1 minute and 7 days. The default is 5 hours.</p>
|
|
*/
|
|
inline bool RobotDeploymentTimeoutInSecondsHasBeenSet() const { return m_robotDeploymentTimeoutInSecondsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The amount of time, in seconds, to wait for deployment to a single robot to
|
|
* complete. Choose a time between 1 minute and 7 days. The default is 5 hours.</p>
|
|
*/
|
|
inline void SetRobotDeploymentTimeoutInSeconds(long long value) { m_robotDeploymentTimeoutInSecondsHasBeenSet = true; m_robotDeploymentTimeoutInSeconds = value; }
|
|
|
|
/**
|
|
* <p>The amount of time, in seconds, to wait for deployment to a single robot to
|
|
* complete. Choose a time between 1 minute and 7 days. The default is 5 hours.</p>
|
|
*/
|
|
inline DeploymentConfig& WithRobotDeploymentTimeoutInSeconds(long long value) { SetRobotDeploymentTimeoutInSeconds(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The download condition file.</p>
|
|
*/
|
|
inline const S3Object& GetDownloadConditionFile() const{ return m_downloadConditionFile; }
|
|
|
|
/**
|
|
* <p>The download condition file.</p>
|
|
*/
|
|
inline bool DownloadConditionFileHasBeenSet() const { return m_downloadConditionFileHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The download condition file.</p>
|
|
*/
|
|
inline void SetDownloadConditionFile(const S3Object& value) { m_downloadConditionFileHasBeenSet = true; m_downloadConditionFile = value; }
|
|
|
|
/**
|
|
* <p>The download condition file.</p>
|
|
*/
|
|
inline void SetDownloadConditionFile(S3Object&& value) { m_downloadConditionFileHasBeenSet = true; m_downloadConditionFile = std::move(value); }
|
|
|
|
/**
|
|
* <p>The download condition file.</p>
|
|
*/
|
|
inline DeploymentConfig& WithDownloadConditionFile(const S3Object& value) { SetDownloadConditionFile(value); return *this;}
|
|
|
|
/**
|
|
* <p>The download condition file.</p>
|
|
*/
|
|
inline DeploymentConfig& WithDownloadConditionFile(S3Object&& value) { SetDownloadConditionFile(std::move(value)); return *this;}
|
|
|
|
private:
|
|
|
|
int m_concurrentDeploymentPercentage;
|
|
bool m_concurrentDeploymentPercentageHasBeenSet;
|
|
|
|
int m_failureThresholdPercentage;
|
|
bool m_failureThresholdPercentageHasBeenSet;
|
|
|
|
long long m_robotDeploymentTimeoutInSeconds;
|
|
bool m_robotDeploymentTimeoutInSecondsHasBeenSet;
|
|
|
|
S3Object m_downloadConditionFile;
|
|
bool m_downloadConditionFileHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace RoboMaker
|
|
} // namespace Aws
|