AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
40
41
43
46 inline const JobExecutionFailureType& GetFailureType() const{ return m_failureType; }
47 inline bool FailureTypeHasBeenSet() const { return m_failureTypeHasBeenSet; }
48 inline void SetFailureType(const JobExecutionFailureType& value) { m_failureTypeHasBeenSet = true; m_failureType = value; }
49 inline void SetFailureType(JobExecutionFailureType&& value) { m_failureTypeHasBeenSet = true; m_failureType = std::move(value); }
50 inline AbortCriteria& WithFailureType(const JobExecutionFailureType& value) { SetFailureType(value); return *this;}
51 inline AbortCriteria& WithFailureType(JobExecutionFailureType&& value) { SetFailureType(std::move(value)); return *this;}
53
55
58 inline const AbortAction& GetAction() const{ return m_action; }
59 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
60 inline void SetAction(const AbortAction& value) { m_actionHasBeenSet = true; m_action = value; }
61 inline void SetAction(AbortAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
62 inline AbortCriteria& WithAction(const AbortAction& value) { SetAction(value); return *this;}
63 inline AbortCriteria& WithAction(AbortAction&& 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 AbortCriteria& 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
90 JobExecutionFailureType m_failureType;
91 bool m_failureTypeHasBeenSet = false;
92
93 AbortAction m_action;
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
void SetFailureType(JobExecutionFailureType &&value)
const AbortAction & GetAction() const
double GetThresholdPercentage() const
void SetThresholdPercentage(double value)
const JobExecutionFailureType & GetFailureType() const
AbortCriteria & WithMinNumberOfExecutedThings(int value)
void SetMinNumberOfExecutedThings(int value)
AWS_IOT_API AbortCriteria(Aws::Utils::Json::JsonView jsonValue)
AbortCriteria & WithAction(AbortAction &&value)
void SetFailureType(const JobExecutionFailureType &value)
void SetAction(const AbortAction &value)
AbortCriteria & WithFailureType(const JobExecutionFailureType &value)
bool MinNumberOfExecutedThingsHasBeenSet() const
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
bool ThresholdPercentageHasBeenSet() const
AWS_IOT_API AbortCriteria & operator=(Aws::Utils::Json::JsonView jsonValue)
AbortCriteria & WithThresholdPercentage(double value)
AbortCriteria & WithAction(const AbortAction &value)
AbortCriteria & WithFailureType(JobExecutionFailureType &&value)
void SetAction(AbortAction &&value)
Aws::Utils::Json::JsonValue JsonValue