AWS SDK for C++  1.9.129
AWS SDK for C++
IoTJobAbortCriteria.h
Go to the documentation of this file.
1 
6 #pragma once
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 GreengrassV2
23 {
24 namespace Model
25 {
26 
38  {
39  public:
44 
45 
49  inline const IoTJobExecutionFailureType& GetFailureType() const{ return m_failureType; }
50 
54  inline bool FailureTypeHasBeenSet() const { return m_failureTypeHasBeenSet; }
55 
59  inline void SetFailureType(const IoTJobExecutionFailureType& value) { m_failureTypeHasBeenSet = true; m_failureType = value; }
60 
64  inline void SetFailureType(IoTJobExecutionFailureType&& value) { m_failureTypeHasBeenSet = true; m_failureType = std::move(value); }
65 
69  inline IoTJobAbortCriteria& WithFailureType(const IoTJobExecutionFailureType& value) { SetFailureType(value); return *this;}
70 
74  inline IoTJobAbortCriteria& WithFailureType(IoTJobExecutionFailureType&& value) { SetFailureType(std::move(value)); return *this;}
75 
76 
80  inline const IoTJobAbortAction& GetAction() const{ return m_action; }
81 
85  inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
86 
90  inline void SetAction(const IoTJobAbortAction& value) { m_actionHasBeenSet = true; m_action = value; }
91 
95  inline void SetAction(IoTJobAbortAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
96 
100  inline IoTJobAbortCriteria& WithAction(const IoTJobAbortAction& value) { SetAction(value); return *this;}
101 
105  inline IoTJobAbortCriteria& WithAction(IoTJobAbortAction&& value) { SetAction(std::move(value)); return *this;}
106 
107 
114  inline double GetThresholdPercentage() const{ return m_thresholdPercentage; }
115 
122  inline bool ThresholdPercentageHasBeenSet() const { return m_thresholdPercentageHasBeenSet; }
123 
130  inline void SetThresholdPercentage(double value) { m_thresholdPercentageHasBeenSet = true; m_thresholdPercentage = value; }
131 
138  inline IoTJobAbortCriteria& WithThresholdPercentage(double value) { SetThresholdPercentage(value); return *this;}
139 
140 
145  inline int GetMinNumberOfExecutedThings() const{ return m_minNumberOfExecutedThings; }
146 
151  inline bool MinNumberOfExecutedThingsHasBeenSet() const { return m_minNumberOfExecutedThingsHasBeenSet; }
152 
157  inline void SetMinNumberOfExecutedThings(int value) { m_minNumberOfExecutedThingsHasBeenSet = true; m_minNumberOfExecutedThings = value; }
158 
163  inline IoTJobAbortCriteria& WithMinNumberOfExecutedThings(int value) { SetMinNumberOfExecutedThings(value); return *this;}
164 
165  private:
166 
167  IoTJobExecutionFailureType m_failureType;
168  bool m_failureTypeHasBeenSet;
169 
170  IoTJobAbortAction m_action;
171  bool m_actionHasBeenSet;
172 
173  double m_thresholdPercentage;
174  bool m_thresholdPercentageHasBeenSet;
175 
176  int m_minNumberOfExecutedThings;
177  bool m_minNumberOfExecutedThingsHasBeenSet;
178  };
179 
180 } // namespace Model
181 } // namespace GreengrassV2
182 } // namespace Aws
Aws::GreengrassV2::Model::IoTJobAbortCriteria::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GreengrassV2::Model::IoTJobAbortCriteria::WithFailureType
IoTJobAbortCriteria & WithFailureType(IoTJobExecutionFailureType &&value)
Definition: IoTJobAbortCriteria.h:74
Aws::GreengrassV2::Model::IoTJobAbortCriteria::SetMinNumberOfExecutedThings
void SetMinNumberOfExecutedThings(int value)
Definition: IoTJobAbortCriteria.h:157
Aws::GreengrassV2::Model::IoTJobAbortCriteria::GetMinNumberOfExecutedThings
int GetMinNumberOfExecutedThings() const
Definition: IoTJobAbortCriteria.h:145
Aws::GreengrassV2::Model::IoTJobAbortCriteria::GetFailureType
const IoTJobExecutionFailureType & GetFailureType() const
Definition: IoTJobAbortCriteria.h:49
GreengrassV2_EXPORTS.h
Aws::GreengrassV2::Model::IoTJobAbortCriteria::IoTJobAbortCriteria
IoTJobAbortCriteria(Aws::Utils::Json::JsonView jsonValue)
IoTJobExecutionFailureType.h
Aws::GreengrassV2::Model::IoTJobExecutionFailureType
IoTJobExecutionFailureType
Definition: IoTJobExecutionFailureType.h:17
AWS_GREENGRASSV2_API
#define AWS_GREENGRASSV2_API
Definition: GreengrassV2_EXPORTS.h:28
Aws::GreengrassV2::Model::IoTJobAbortAction
IoTJobAbortAction
Definition: IoTJobAbortAction.h:17
Aws::GreengrassV2::Model::IoTJobAbortCriteria::SetThresholdPercentage
void SetThresholdPercentage(double value)
Definition: IoTJobAbortCriteria.h:130
Aws::GreengrassV2::Model::IoTJobAbortCriteria::IoTJobAbortCriteria
IoTJobAbortCriteria()
Aws::GreengrassV2::Model::IoTJobAbortCriteria
Definition: IoTJobAbortCriteria.h:38
Aws::GreengrassV2::Model::IoTJobAbortCriteria::WithThresholdPercentage
IoTJobAbortCriteria & WithThresholdPercentage(double value)
Definition: IoTJobAbortCriteria.h:138
Aws::GreengrassV2::Model::IoTJobAbortCriteria::MinNumberOfExecutedThingsHasBeenSet
bool MinNumberOfExecutedThingsHasBeenSet() const
Definition: IoTJobAbortCriteria.h:151
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::GreengrassV2::Model::IoTJobAbortCriteria::SetFailureType
void SetFailureType(IoTJobExecutionFailureType &&value)
Definition: IoTJobAbortCriteria.h:64
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GreengrassV2::Model::IoTJobAbortCriteria::SetAction
void SetAction(const IoTJobAbortAction &value)
Definition: IoTJobAbortCriteria.h:90
Aws::GreengrassV2::Model::IoTJobAbortCriteria::WithAction
IoTJobAbortCriteria & WithAction(IoTJobAbortAction &&value)
Definition: IoTJobAbortCriteria.h:105
Aws::GreengrassV2::Model::IoTJobAbortCriteria::SetAction
void SetAction(IoTJobAbortAction &&value)
Definition: IoTJobAbortCriteria.h:95
Aws::GreengrassV2::Model::IoTJobAbortCriteria::SetFailureType
void SetFailureType(const IoTJobExecutionFailureType &value)
Definition: IoTJobAbortCriteria.h:59
Aws::GreengrassV2::Model::IoTJobAbortCriteria::GetThresholdPercentage
double GetThresholdPercentage() const
Definition: IoTJobAbortCriteria.h:114
Aws::GreengrassV2::Model::IoTJobAbortCriteria::WithAction
IoTJobAbortCriteria & WithAction(const IoTJobAbortAction &value)
Definition: IoTJobAbortCriteria.h:100
Aws::GreengrassV2::Model::IoTJobAbortCriteria::WithMinNumberOfExecutedThings
IoTJobAbortCriteria & WithMinNumberOfExecutedThings(int value)
Definition: IoTJobAbortCriteria.h:163
Aws
Definition: AccessManagementClient.h:15
IoTJobAbortAction.h
Aws::GreengrassV2::Model::IoTJobAbortCriteria::operator=
IoTJobAbortCriteria & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GreengrassV2::Model::IoTJobAbortCriteria::GetAction
const IoTJobAbortAction & GetAction() const
Definition: IoTJobAbortCriteria.h:80
Aws::GreengrassV2::Model::IoTJobAbortCriteria::FailureTypeHasBeenSet
bool FailureTypeHasBeenSet() const
Definition: IoTJobAbortCriteria.h:54
Aws::GreengrassV2::Model::IoTJobAbortCriteria::ThresholdPercentageHasBeenSet
bool ThresholdPercentageHasBeenSet() const
Definition: IoTJobAbortCriteria.h:122
Aws::GreengrassV2::Model::IoTJobAbortCriteria::WithFailureType
IoTJobAbortCriteria & WithFailureType(const IoTJobExecutionFailureType &value)
Definition: IoTJobAbortCriteria.h:69
Aws::GreengrassV2::Model::IoTJobAbortCriteria::ActionHasBeenSet
bool ActionHasBeenSet() const
Definition: IoTJobAbortCriteria.h:85