AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AbortCriteria.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/model/JobExecutionFailureType.h>
9#include <aws/iot/model/AbortAction.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoT
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IOT_API AbortCriteria() = default;
40
41
43
46 inline JobExecutionFailureType GetFailureType() const { return m_failureType; }
47 inline bool FailureTypeHasBeenSet() const { return m_failureTypeHasBeenSet; }
48 inline void SetFailureType(JobExecutionFailureType value) { m_failureTypeHasBeenSet = true; m_failureType = value; }
51
53
56 inline AbortAction GetAction() const { return m_action; }
57 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
58 inline void SetAction(AbortAction value) { m_actionHasBeenSet = true; m_action = value; }
59 inline AbortCriteria& WithAction(AbortAction value) { SetAction(value); return *this;}
61
63
68 inline double GetThresholdPercentage() const { return m_thresholdPercentage; }
69 inline bool ThresholdPercentageHasBeenSet() const { return m_thresholdPercentageHasBeenSet; }
70 inline void SetThresholdPercentage(double value) { m_thresholdPercentageHasBeenSet = true; m_thresholdPercentage = value; }
71 inline AbortCriteria& WithThresholdPercentage(double value) { SetThresholdPercentage(value); return *this;}
73
75
79 inline int GetMinNumberOfExecutedThings() const { return m_minNumberOfExecutedThings; }
80 inline bool MinNumberOfExecutedThingsHasBeenSet() const { return m_minNumberOfExecutedThingsHasBeenSet; }
81 inline void SetMinNumberOfExecutedThings(int value) { m_minNumberOfExecutedThingsHasBeenSet = true; m_minNumberOfExecutedThings = value; }
84 private:
85
87 bool m_failureTypeHasBeenSet = false;
88
90 bool m_actionHasBeenSet = false;
91
92 double m_thresholdPercentage{0.0};
93 bool m_thresholdPercentageHasBeenSet = false;
94
95 int m_minNumberOfExecutedThings{0};
96 bool m_minNumberOfExecutedThingsHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace IoT
101} // namespace Aws
AbortCriteria & WithFailureType(JobExecutionFailureType value)
double GetThresholdPercentage() const
void SetAction(AbortAction value)
AbortCriteria & WithAction(AbortAction value)
void SetThresholdPercentage(double value)
AWS_IOT_API AbortCriteria()=default
AbortCriteria & WithMinNumberOfExecutedThings(int value)
void SetMinNumberOfExecutedThings(int value)
AWS_IOT_API AbortCriteria(Aws::Utils::Json::JsonView jsonValue)
void SetFailureType(JobExecutionFailureType value)
JobExecutionFailureType GetFailureType() const
bool MinNumberOfExecutedThingsHasBeenSet() const
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
bool ThresholdPercentageHasBeenSet() const
AbortAction GetAction() const
AWS_IOT_API AbortCriteria & operator=(Aws::Utils::Json::JsonView jsonValue)
AbortCriteria & WithThresholdPercentage(double value)
Aws::Utils::Json::JsonValue JsonValue