AWS SDK for C++  1.9.132
AWS SDK for C++
ExponentialRolloutRate.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace IoT
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
46  inline int GetBaseRatePerMinute() const{ return m_baseRatePerMinute; }
47 
53  inline bool BaseRatePerMinuteHasBeenSet() const { return m_baseRatePerMinuteHasBeenSet; }
54 
60  inline void SetBaseRatePerMinute(int value) { m_baseRatePerMinuteHasBeenSet = true; m_baseRatePerMinute = value; }
61 
67  inline ExponentialRolloutRate& WithBaseRatePerMinute(int value) { SetBaseRatePerMinute(value); return *this;}
68 
69 
75  inline double GetIncrementFactor() const{ return m_incrementFactor; }
76 
82  inline bool IncrementFactorHasBeenSet() const { return m_incrementFactorHasBeenSet; }
83 
89  inline void SetIncrementFactor(double value) { m_incrementFactorHasBeenSet = true; m_incrementFactor = value; }
90 
96  inline ExponentialRolloutRate& WithIncrementFactor(double value) { SetIncrementFactor(value); return *this;}
97 
98 
102  inline const RateIncreaseCriteria& GetRateIncreaseCriteria() const{ return m_rateIncreaseCriteria; }
103 
107  inline bool RateIncreaseCriteriaHasBeenSet() const { return m_rateIncreaseCriteriaHasBeenSet; }
108 
112  inline void SetRateIncreaseCriteria(const RateIncreaseCriteria& value) { m_rateIncreaseCriteriaHasBeenSet = true; m_rateIncreaseCriteria = value; }
113 
117  inline void SetRateIncreaseCriteria(RateIncreaseCriteria&& value) { m_rateIncreaseCriteriaHasBeenSet = true; m_rateIncreaseCriteria = std::move(value); }
118 
122  inline ExponentialRolloutRate& WithRateIncreaseCriteria(const RateIncreaseCriteria& value) { SetRateIncreaseCriteria(value); return *this;}
123 
127  inline ExponentialRolloutRate& WithRateIncreaseCriteria(RateIncreaseCriteria&& value) { SetRateIncreaseCriteria(std::move(value)); return *this;}
128 
129  private:
130 
131  int m_baseRatePerMinute;
132  bool m_baseRatePerMinuteHasBeenSet;
133 
134  double m_incrementFactor;
135  bool m_incrementFactorHasBeenSet;
136 
137  RateIncreaseCriteria m_rateIncreaseCriteria;
138  bool m_rateIncreaseCriteriaHasBeenSet;
139  };
140 
141 } // namespace Model
142 } // namespace IoT
143 } // namespace Aws
Aws::IoT::Model::ExponentialRolloutRate::ExponentialRolloutRate
ExponentialRolloutRate(Aws::Utils::Json::JsonView jsonValue)
RateIncreaseCriteria.h
Aws::IoT::Model::ExponentialRolloutRate::SetIncrementFactor
void SetIncrementFactor(double value)
Definition: ExponentialRolloutRate.h:89
Aws::IoT::Model::ExponentialRolloutRate::SetBaseRatePerMinute
void SetBaseRatePerMinute(int value)
Definition: ExponentialRolloutRate.h:60
Aws::IoT::Model::ExponentialRolloutRate::SetRateIncreaseCriteria
void SetRateIncreaseCriteria(const RateIncreaseCriteria &value)
Definition: ExponentialRolloutRate.h:112
Aws::IoT::Model::ExponentialRolloutRate::WithIncrementFactor
ExponentialRolloutRate & WithIncrementFactor(double value)
Definition: ExponentialRolloutRate.h:96
Aws::IoT::Model::ExponentialRolloutRate::operator=
ExponentialRolloutRate & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::ExponentialRolloutRate::GetIncrementFactor
double GetIncrementFactor() const
Definition: ExponentialRolloutRate.h:75
Aws::IoT::Model::ExponentialRolloutRate::WithBaseRatePerMinute
ExponentialRolloutRate & WithBaseRatePerMinute(int value)
Definition: ExponentialRolloutRate.h:67
Aws::IoT::Model::ExponentialRolloutRate
Definition: ExponentialRolloutRate.h:33
Aws::IoT::Model::ExponentialRolloutRate::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::ExponentialRolloutRate::SetRateIncreaseCriteria
void SetRateIncreaseCriteria(RateIncreaseCriteria &&value)
Definition: ExponentialRolloutRate.h:117
Aws::IoT::Model::ExponentialRolloutRate::GetBaseRatePerMinute
int GetBaseRatePerMinute() const
Definition: ExponentialRolloutRate.h:46
Aws::IoT::Model::ExponentialRolloutRate::BaseRatePerMinuteHasBeenSet
bool BaseRatePerMinuteHasBeenSet() const
Definition: ExponentialRolloutRate.h:53
Aws::IoT::Model::ExponentialRolloutRate::RateIncreaseCriteriaHasBeenSet
bool RateIncreaseCriteriaHasBeenSet() const
Definition: ExponentialRolloutRate.h:107
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::ExponentialRolloutRate::IncrementFactorHasBeenSet
bool IncrementFactorHasBeenSet() const
Definition: ExponentialRolloutRate.h:82
Aws::IoT::Model::RateIncreaseCriteria
Definition: RateIncreaseCriteria.h:31
Aws::IoT::Model::ExponentialRolloutRate::ExponentialRolloutRate
ExponentialRolloutRate()
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ExponentialRolloutRate::GetRateIncreaseCriteria
const RateIncreaseCriteria & GetRateIncreaseCriteria() const
Definition: ExponentialRolloutRate.h:102
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::ExponentialRolloutRate::WithRateIncreaseCriteria
ExponentialRolloutRate & WithRateIncreaseCriteria(RateIncreaseCriteria &&value)
Definition: ExponentialRolloutRate.h:127
Aws::IoT::Model::ExponentialRolloutRate::WithRateIncreaseCriteria
ExponentialRolloutRate & WithRateIncreaseCriteria(const RateIncreaseCriteria &value)
Definition: ExponentialRolloutRate.h:122
IoT_EXPORTS.h