AWS SDK for C++  1.9.132
AWS SDK for C++
AbortCriteria.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 JobExecutionFailureType& GetFailureType() const{ return m_failureType; }
46 
50  inline bool FailureTypeHasBeenSet() const { return m_failureTypeHasBeenSet; }
51 
55  inline void SetFailureType(const JobExecutionFailureType& value) { m_failureTypeHasBeenSet = true; m_failureType = value; }
56 
60  inline void SetFailureType(JobExecutionFailureType&& value) { m_failureTypeHasBeenSet = true; m_failureType = std::move(value); }
61 
65  inline AbortCriteria& WithFailureType(const JobExecutionFailureType& value) { SetFailureType(value); return *this;}
66 
70  inline AbortCriteria& WithFailureType(JobExecutionFailureType&& value) { SetFailureType(std::move(value)); return *this;}
71 
72 
76  inline const AbortAction& GetAction() const{ return m_action; }
77 
81  inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
82 
86  inline void SetAction(const AbortAction& value) { m_actionHasBeenSet = true; m_action = value; }
87 
91  inline void SetAction(AbortAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
92 
96  inline AbortCriteria& WithAction(const AbortAction& value) { SetAction(value); return *this;}
97 
101  inline AbortCriteria& WithAction(AbortAction&& 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 AbortCriteria& 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 AbortCriteria& WithMinNumberOfExecutedThings(int value) { SetMinNumberOfExecutedThings(value); return *this;}
156 
157  private:
158 
159  JobExecutionFailureType m_failureType;
160  bool m_failureTypeHasBeenSet;
161 
162  AbortAction m_action;
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::AbortCriteria::SetMinNumberOfExecutedThings
void SetMinNumberOfExecutedThings(int value)
Definition: AbortCriteria.h:149
Aws::IoT::Model::AbortCriteria::AbortCriteria
AbortCriteria()
JobExecutionFailureType.h
Aws::IoT::Model::AbortCriteria::GetMinNumberOfExecutedThings
int GetMinNumberOfExecutedThings() const
Definition: AbortCriteria.h:137
Aws::IoT::Model::AbortCriteria::WithFailureType
AbortCriteria & WithFailureType(const JobExecutionFailureType &value)
Definition: AbortCriteria.h:65
Aws::IoT::Model::AbortCriteria::SetThresholdPercentage
void SetThresholdPercentage(double value)
Definition: AbortCriteria.h:123
Aws::IoT::Model::AbortCriteria::GetAction
const AbortAction & GetAction() const
Definition: AbortCriteria.h:76
Aws::IoT::Model::AbortCriteria::FailureTypeHasBeenSet
bool FailureTypeHasBeenSet() const
Definition: AbortCriteria.h:50
Aws::IoT::Model::AbortCriteria::MinNumberOfExecutedThingsHasBeenSet
bool MinNumberOfExecutedThingsHasBeenSet() const
Definition: AbortCriteria.h:143
Aws::IoT::Model::JobExecutionFailureType
JobExecutionFailureType
Definition: JobExecutionFailureType.h:17
Aws::IoT::Model::AbortCriteria::SetFailureType
void SetFailureType(const JobExecutionFailureType &value)
Definition: AbortCriteria.h:55
Aws::IoT::Model::AbortCriteria::WithAction
AbortCriteria & WithAction(const AbortAction &value)
Definition: AbortCriteria.h:96
Aws::IoT::Model::AbortCriteria::SetAction
void SetAction(AbortAction &&value)
Definition: AbortCriteria.h:91
Aws::IoT::Model::AbortCriteria::GetFailureType
const JobExecutionFailureType & GetFailureType() const
Definition: AbortCriteria.h:45
Aws::IoT::Model::AbortCriteria::GetThresholdPercentage
double GetThresholdPercentage() const
Definition: AbortCriteria.h:109
Aws::IoT::Model::AbortCriteria::WithFailureType
AbortCriteria & WithFailureType(JobExecutionFailureType &&value)
Definition: AbortCriteria.h:70
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::IoT::Model::AbortCriteria::WithMinNumberOfExecutedThings
AbortCriteria & WithMinNumberOfExecutedThings(int value)
Definition: AbortCriteria.h:155
Aws::IoT::Model::AbortCriteria::WithThresholdPercentage
AbortCriteria & WithThresholdPercentage(double value)
Definition: AbortCriteria.h:130
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::AbortCriteria::SetFailureType
void SetFailureType(JobExecutionFailureType &&value)
Definition: AbortCriteria.h:60
Aws::IoT::Model::AbortCriteria::ThresholdPercentageHasBeenSet
bool ThresholdPercentageHasBeenSet() const
Definition: AbortCriteria.h:116
Aws::IoT::Model::AbortCriteria::AbortCriteria
AbortCriteria(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::AbortCriteria::WithAction
AbortCriteria & WithAction(AbortAction &&value)
Definition: AbortCriteria.h:101
Aws::IoT::Model::AbortCriteria::ActionHasBeenSet
bool ActionHasBeenSet() const
Definition: AbortCriteria.h:81
Aws::IoT::Model::AbortCriteria
Definition: AbortCriteria.h:34
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::AbortCriteria::SetAction
void SetAction(const AbortAction &value)
Definition: AbortCriteria.h:86
AbortAction.h
Aws::IoT::Model::AbortAction
AbortAction
Definition: AbortAction.h:17
Aws::IoT::Model::AbortCriteria::operator=
AbortCriteria & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::AbortCriteria::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
IoT_EXPORTS.h