AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
AwsJobAbortCriteria.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/model/AwsJobAbortCriteriaAbortAction.h>
9#include <aws/iot/model/AwsJobAbortCriteriaFailureType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoT {
21namespace Model {
22
30 public:
31 AWS_IOT_API AwsJobAbortCriteria() = default;
35
37
40 inline AwsJobAbortCriteriaFailureType GetFailureType() const { return m_failureType; }
41 inline bool FailureTypeHasBeenSet() const { return m_failureTypeHasBeenSet; }
43 m_failureTypeHasBeenSet = true;
44 m_failureType = value;
45 }
47 SetFailureType(value);
48 return *this;
49 }
51
53
56 inline AwsJobAbortCriteriaAbortAction GetAction() const { return m_action; }
57 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
59 m_actionHasBeenSet = true;
60 m_action = value;
61 }
63 SetAction(value);
64 return *this;
65 }
67
69
74 inline double GetThresholdPercentage() const { return m_thresholdPercentage; }
75 inline bool ThresholdPercentageHasBeenSet() const { return m_thresholdPercentageHasBeenSet; }
76 inline void SetThresholdPercentage(double value) {
77 m_thresholdPercentageHasBeenSet = true;
78 m_thresholdPercentage = value;
79 }
82 return *this;
83 }
85
87
91 inline int GetMinNumberOfExecutedThings() const { return m_minNumberOfExecutedThings; }
92 inline bool MinNumberOfExecutedThingsHasBeenSet() const { return m_minNumberOfExecutedThingsHasBeenSet; }
93 inline void SetMinNumberOfExecutedThings(int value) {
94 m_minNumberOfExecutedThingsHasBeenSet = true;
95 m_minNumberOfExecutedThings = value;
96 }
99 return *this;
100 }
102 private:
104
106
107 double m_thresholdPercentage{0.0};
108
109 int m_minNumberOfExecutedThings{0};
110 bool m_failureTypeHasBeenSet = false;
111 bool m_actionHasBeenSet = false;
112 bool m_thresholdPercentageHasBeenSet = false;
113 bool m_minNumberOfExecutedThingsHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace IoT
118} // namespace Aws
AwsJobAbortCriteria & WithFailureType(AwsJobAbortCriteriaFailureType value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAction(AwsJobAbortCriteriaAbortAction value)
AWS_IOT_API AwsJobAbortCriteria()=default
AWS_IOT_API AwsJobAbortCriteria(Aws::Utils::Json::JsonView jsonValue)
AwsJobAbortCriteria & WithThresholdPercentage(double value)
AWS_IOT_API AwsJobAbortCriteria & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsJobAbortCriteria & WithAction(AwsJobAbortCriteriaAbortAction value)
void SetFailureType(AwsJobAbortCriteriaFailureType value)
AwsJobAbortCriteriaAbortAction GetAction() const
AwsJobAbortCriteria & WithMinNumberOfExecutedThings(int value)
AwsJobAbortCriteriaFailureType GetFailureType() const
Aws::Utils::Json::JsonValue JsonValue