AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsJobAbortCriteria.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/model/AwsJobAbortCriteriaFailureType.h>
9#include <aws/iot/model/AwsJobAbortCriteriaAbortAction.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 AwsJobAbortCriteria();
40
41
43
46 inline const AwsJobAbortCriteriaFailureType& GetFailureType() const{ return m_failureType; }
47 inline bool FailureTypeHasBeenSet() const { return m_failureTypeHasBeenSet; }
48 inline void SetFailureType(const AwsJobAbortCriteriaFailureType& value) { m_failureTypeHasBeenSet = true; m_failureType = value; }
49 inline void SetFailureType(AwsJobAbortCriteriaFailureType&& value) { m_failureTypeHasBeenSet = true; m_failureType = std::move(value); }
51 inline AwsJobAbortCriteria& WithFailureType(AwsJobAbortCriteriaFailureType&& value) { SetFailureType(std::move(value)); return *this;}
53
55
58 inline const AwsJobAbortCriteriaAbortAction& GetAction() const{ return m_action; }
59 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
60 inline void SetAction(const AwsJobAbortCriteriaAbortAction& value) { m_actionHasBeenSet = true; m_action = value; }
61 inline void SetAction(AwsJobAbortCriteriaAbortAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
62 inline AwsJobAbortCriteria& WithAction(const AwsJobAbortCriteriaAbortAction& value) { SetAction(value); return *this;}
63 inline AwsJobAbortCriteria& WithAction(AwsJobAbortCriteriaAbortAction&& value) { SetAction(std::move(value)); return *this;}
65
67
72 inline double GetThresholdPercentage() const{ return m_thresholdPercentage; }
73 inline bool ThresholdPercentageHasBeenSet() const { return m_thresholdPercentageHasBeenSet; }
74 inline void SetThresholdPercentage(double value) { m_thresholdPercentageHasBeenSet = true; m_thresholdPercentage = value; }
75 inline AwsJobAbortCriteria& WithThresholdPercentage(double value) { SetThresholdPercentage(value); return *this;}
77
79
83 inline int GetMinNumberOfExecutedThings() const{ return m_minNumberOfExecutedThings; }
84 inline bool MinNumberOfExecutedThingsHasBeenSet() const { return m_minNumberOfExecutedThingsHasBeenSet; }
85 inline void SetMinNumberOfExecutedThings(int value) { m_minNumberOfExecutedThingsHasBeenSet = true; m_minNumberOfExecutedThings = value; }
88 private:
89
91 bool m_failureTypeHasBeenSet = false;
92
94 bool m_actionHasBeenSet = false;
95
96 double m_thresholdPercentage;
97 bool m_thresholdPercentageHasBeenSet = false;
98
99 int m_minNumberOfExecutedThings;
100 bool m_minNumberOfExecutedThingsHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace IoT
105} // namespace Aws
const AwsJobAbortCriteriaFailureType & GetFailureType() const
AwsJobAbortCriteria & WithAction(const AwsJobAbortCriteriaAbortAction &value)
AwsJobAbortCriteria & WithFailureType(AwsJobAbortCriteriaFailureType &&value)
void SetAction(const AwsJobAbortCriteriaAbortAction &value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
const AwsJobAbortCriteriaAbortAction & GetAction() const
AWS_IOT_API AwsJobAbortCriteria(Aws::Utils::Json::JsonView jsonValue)
AwsJobAbortCriteria & WithFailureType(const AwsJobAbortCriteriaFailureType &value)
void SetFailureType(const AwsJobAbortCriteriaFailureType &value)
AwsJobAbortCriteria & WithThresholdPercentage(double value)
void SetFailureType(AwsJobAbortCriteriaFailureType &&value)
AWS_IOT_API AwsJobAbortCriteria & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAction(AwsJobAbortCriteriaAbortAction &&value)
AwsJobAbortCriteria & WithMinNumberOfExecutedThings(int value)
AwsJobAbortCriteria & WithAction(AwsJobAbortCriteriaAbortAction &&value)
Aws::Utils::Json::JsonValue JsonValue