AWS SDK for C++  1.9.129
AWS SDK for C++
AwsJobAbortCriteria.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace IoT
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const AwsJobAbortCriteriaFailureType& GetFailureType() const{ return m_failureType; }
46 
50  inline bool FailureTypeHasBeenSet() const { return m_failureTypeHasBeenSet; }
51 
55  inline void SetFailureType(const AwsJobAbortCriteriaFailureType& value) { m_failureTypeHasBeenSet = true; m_failureType = value; }
56 
60  inline void SetFailureType(AwsJobAbortCriteriaFailureType&& value) { m_failureTypeHasBeenSet = true; m_failureType = std::move(value); }
61 
65  inline AwsJobAbortCriteria& WithFailureType(const AwsJobAbortCriteriaFailureType& value) { SetFailureType(value); return *this;}
66 
70  inline AwsJobAbortCriteria& WithFailureType(AwsJobAbortCriteriaFailureType&& value) { SetFailureType(std::move(value)); return *this;}
71 
72 
76  inline const AwsJobAbortCriteriaAbortAction& GetAction() const{ return m_action; }
77 
81  inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
82 
86  inline void SetAction(const AwsJobAbortCriteriaAbortAction& value) { m_actionHasBeenSet = true; m_action = value; }
87 
91  inline void SetAction(AwsJobAbortCriteriaAbortAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
92 
96  inline AwsJobAbortCriteria& WithAction(const AwsJobAbortCriteriaAbortAction& value) { SetAction(value); return *this;}
97 
101  inline AwsJobAbortCriteria& WithAction(AwsJobAbortCriteriaAbortAction&& value) { SetAction(std::move(value)); return *this;}
102 
103 
109  inline double GetThresholdPercentage() const{ return m_thresholdPercentage; }
110 
116  inline bool ThresholdPercentageHasBeenSet() const { return m_thresholdPercentageHasBeenSet; }
117 
123  inline void SetThresholdPercentage(double value) { m_thresholdPercentageHasBeenSet = true; m_thresholdPercentage = value; }
124 
130  inline AwsJobAbortCriteria& WithThresholdPercentage(double value) { SetThresholdPercentage(value); return *this;}
131 
132 
137  inline int GetMinNumberOfExecutedThings() const{ return m_minNumberOfExecutedThings; }
138 
143  inline bool MinNumberOfExecutedThingsHasBeenSet() const { return m_minNumberOfExecutedThingsHasBeenSet; }
144 
149  inline void SetMinNumberOfExecutedThings(int value) { m_minNumberOfExecutedThingsHasBeenSet = true; m_minNumberOfExecutedThings = value; }
150 
155  inline AwsJobAbortCriteria& WithMinNumberOfExecutedThings(int value) { SetMinNumberOfExecutedThings(value); return *this;}
156 
157  private:
158 
159  AwsJobAbortCriteriaFailureType m_failureType;
160  bool m_failureTypeHasBeenSet;
161 
163  bool m_actionHasBeenSet;
164 
165  double m_thresholdPercentage;
166  bool m_thresholdPercentageHasBeenSet;
167 
168  int m_minNumberOfExecutedThings;
169  bool m_minNumberOfExecutedThingsHasBeenSet;
170  };
171 
172 } // namespace Model
173 } // namespace IoT
174 } // namespace Aws
Aws::IoT::Model::AwsJobAbortCriteria::FailureTypeHasBeenSet
bool FailureTypeHasBeenSet() const
Definition: AwsJobAbortCriteria.h:50
Aws::IoT::Model::AwsJobAbortCriteria::SetAction
void SetAction(const AwsJobAbortCriteriaAbortAction &value)
Definition: AwsJobAbortCriteria.h:86
Aws::IoT::Model::AwsJobAbortCriteria::SetFailureType
void SetFailureType(const AwsJobAbortCriteriaFailureType &value)
Definition: AwsJobAbortCriteria.h:55
Aws::IoT::Model::AwsJobAbortCriteria::WithThresholdPercentage
AwsJobAbortCriteria & WithThresholdPercentage(double value)
Definition: AwsJobAbortCriteria.h:130
Aws::IoT::Model::AwsJobAbortCriteria::AwsJobAbortCriteria
AwsJobAbortCriteria(Aws::Utils::Json::JsonView jsonValue)
AwsJobAbortCriteriaFailureType.h
Aws::IoT::Model::AwsJobAbortCriteria::MinNumberOfExecutedThingsHasBeenSet
bool MinNumberOfExecutedThingsHasBeenSet() const
Definition: AwsJobAbortCriteria.h:143
AwsJobAbortCriteriaAbortAction.h
Aws::IoT::Model::AwsJobAbortCriteria::SetFailureType
void SetFailureType(AwsJobAbortCriteriaFailureType &&value)
Definition: AwsJobAbortCriteria.h:60
Aws::IoT::Model::AwsJobAbortCriteria::GetMinNumberOfExecutedThings
int GetMinNumberOfExecutedThings() const
Definition: AwsJobAbortCriteria.h:137
Aws::IoT::Model::AwsJobAbortCriteria::AwsJobAbortCriteria
AwsJobAbortCriteria()
Aws::IoT::Model::AwsJobAbortCriteria::SetMinNumberOfExecutedThings
void SetMinNumberOfExecutedThings(int value)
Definition: AwsJobAbortCriteria.h:149
Aws::IoT::Model::AwsJobAbortCriteria::WithAction
AwsJobAbortCriteria & WithAction(const AwsJobAbortCriteriaAbortAction &value)
Definition: AwsJobAbortCriteria.h:96
Aws::IoT::Model::AwsJobAbortCriteriaAbortAction
AwsJobAbortCriteriaAbortAction
Definition: AwsJobAbortCriteriaAbortAction.h:17
Aws::IoT::Model::AwsJobAbortCriteria::ThresholdPercentageHasBeenSet
bool ThresholdPercentageHasBeenSet() const
Definition: AwsJobAbortCriteria.h:116
Aws::IoT::Model::AwsJobAbortCriteria::WithFailureType
AwsJobAbortCriteria & WithFailureType(AwsJobAbortCriteriaFailureType &&value)
Definition: AwsJobAbortCriteria.h:70
Aws::IoT::Model::AwsJobAbortCriteria::GetAction
const AwsJobAbortCriteriaAbortAction & GetAction() const
Definition: AwsJobAbortCriteria.h:76
Aws::IoT::Model::AwsJobAbortCriteria
Definition: AwsJobAbortCriteria.h:34
Aws::IoT::Model::AwsJobAbortCriteria::operator=
AwsJobAbortCriteria & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::AwsJobAbortCriteria::GetFailureType
const AwsJobAbortCriteriaFailureType & GetFailureType() const
Definition: AwsJobAbortCriteria.h:45
Aws::IoT::Model::AwsJobAbortCriteria::SetThresholdPercentage
void SetThresholdPercentage(double value)
Definition: AwsJobAbortCriteria.h:123
Aws::IoT::Model::AwsJobAbortCriteria::WithMinNumberOfExecutedThings
AwsJobAbortCriteria & WithMinNumberOfExecutedThings(int value)
Definition: AwsJobAbortCriteria.h:155
Aws::IoT::Model::AwsJobAbortCriteria::SetAction
void SetAction(AwsJobAbortCriteriaAbortAction &&value)
Definition: AwsJobAbortCriteria.h:91
Aws
Definition: AccessManagementClient.h:15
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::AwsJobAbortCriteria::GetThresholdPercentage
double GetThresholdPercentage() const
Definition: AwsJobAbortCriteria.h:109
Aws::IoT::Model::AwsJobAbortCriteria::ActionHasBeenSet
bool ActionHasBeenSet() const
Definition: AwsJobAbortCriteria.h:81
Aws::IoT::Model::AwsJobAbortCriteria::WithAction
AwsJobAbortCriteria & WithAction(AwsJobAbortCriteriaAbortAction &&value)
Definition: AwsJobAbortCriteria.h:101
Aws::IoT::Model::AwsJobAbortCriteria::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::AwsJobAbortCriteriaFailureType
AwsJobAbortCriteriaFailureType
Definition: AwsJobAbortCriteriaFailureType.h:17
Aws::IoT::Model::AwsJobAbortCriteria::WithFailureType
AwsJobAbortCriteria & WithFailureType(const AwsJobAbortCriteriaFailureType &value)
Definition: AwsJobAbortCriteria.h:65
IoT_EXPORTS.h