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-iot/include/aws/iot/model/AwsJobExecutionsRolloutConfig.h

109 lines
3.6 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot/IoT_EXPORTS.h>
#include <aws/iot/model/AwsJobExponentialRolloutRate.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoT
{
namespace Model
{
/**
* <p>Configuration for the rollout of OTA updates.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iot-2015-05-28/AwsJobExecutionsRolloutConfig">AWS
* API Reference</a></p>
*/
class AWS_IOT_API AwsJobExecutionsRolloutConfig
{
public:
AwsJobExecutionsRolloutConfig();
AwsJobExecutionsRolloutConfig(Aws::Utils::Json::JsonView jsonValue);
AwsJobExecutionsRolloutConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The maximum number of OTA update job executions started per minute.</p>
*/
inline int GetMaximumPerMinute() const{ return m_maximumPerMinute; }
/**
* <p>The maximum number of OTA update job executions started per minute.</p>
*/
inline bool MaximumPerMinuteHasBeenSet() const { return m_maximumPerMinuteHasBeenSet; }
/**
* <p>The maximum number of OTA update job executions started per minute.</p>
*/
inline void SetMaximumPerMinute(int value) { m_maximumPerMinuteHasBeenSet = true; m_maximumPerMinute = value; }
/**
* <p>The maximum number of OTA update job executions started per minute.</p>
*/
inline AwsJobExecutionsRolloutConfig& WithMaximumPerMinute(int value) { SetMaximumPerMinute(value); return *this;}
/**
* <p>The rate of increase for a job rollout. This parameter allows you to define
* an exponential rate increase for a job rollout.</p>
*/
inline const AwsJobExponentialRolloutRate& GetExponentialRate() const{ return m_exponentialRate; }
/**
* <p>The rate of increase for a job rollout. This parameter allows you to define
* an exponential rate increase for a job rollout.</p>
*/
inline bool ExponentialRateHasBeenSet() const { return m_exponentialRateHasBeenSet; }
/**
* <p>The rate of increase for a job rollout. This parameter allows you to define
* an exponential rate increase for a job rollout.</p>
*/
inline void SetExponentialRate(const AwsJobExponentialRolloutRate& value) { m_exponentialRateHasBeenSet = true; m_exponentialRate = value; }
/**
* <p>The rate of increase for a job rollout. This parameter allows you to define
* an exponential rate increase for a job rollout.</p>
*/
inline void SetExponentialRate(AwsJobExponentialRolloutRate&& value) { m_exponentialRateHasBeenSet = true; m_exponentialRate = std::move(value); }
/**
* <p>The rate of increase for a job rollout. This parameter allows you to define
* an exponential rate increase for a job rollout.</p>
*/
inline AwsJobExecutionsRolloutConfig& WithExponentialRate(const AwsJobExponentialRolloutRate& value) { SetExponentialRate(value); return *this;}
/**
* <p>The rate of increase for a job rollout. This parameter allows you to define
* an exponential rate increase for a job rollout.</p>
*/
inline AwsJobExecutionsRolloutConfig& WithExponentialRate(AwsJobExponentialRolloutRate&& value) { SetExponentialRate(std::move(value)); return *this;}
private:
int m_maximumPerMinute;
bool m_maximumPerMinuteHasBeenSet;
AwsJobExponentialRolloutRate m_exponentialRate;
bool m_exponentialRateHasBeenSet;
};
} // namespace Model
} // namespace IoT
} // namespace Aws