AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
IoTJobAbortCriteria.h
1
6#pragma once
7#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
8#include <aws/greengrassv2/model/IoTJobExecutionFailureType.h>
9#include <aws/greengrassv2/model/IoTJobAbortAction.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 GreengrassV2
23{
24namespace Model
25{
26
38 {
39 public:
40 AWS_GREENGRASSV2_API IoTJobAbortCriteria() = default;
41 AWS_GREENGRASSV2_API IoTJobAbortCriteria(Aws::Utils::Json::JsonView jsonValue);
43 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline IoTJobExecutionFailureType GetFailureType() const { return m_failureType; }
51 inline bool FailureTypeHasBeenSet() const { return m_failureTypeHasBeenSet; }
52 inline void SetFailureType(IoTJobExecutionFailureType value) { m_failureTypeHasBeenSet = true; m_failureType = value; }
55
57
60 inline IoTJobAbortAction GetAction() const { return m_action; }
61 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
62 inline void SetAction(IoTJobAbortAction value) { m_actionHasBeenSet = true; m_action = value; }
63 inline IoTJobAbortCriteria& WithAction(IoTJobAbortAction value) { SetAction(value); return *this;}
65
67
73 inline double GetThresholdPercentage() const { return m_thresholdPercentage; }
74 inline bool ThresholdPercentageHasBeenSet() const { return m_thresholdPercentageHasBeenSet; }
75 inline void SetThresholdPercentage(double value) { m_thresholdPercentageHasBeenSet = true; m_thresholdPercentage = value; }
76 inline IoTJobAbortCriteria& WithThresholdPercentage(double value) { SetThresholdPercentage(value); return *this;}
78
80
84 inline int GetMinNumberOfExecutedThings() const { return m_minNumberOfExecutedThings; }
85 inline bool MinNumberOfExecutedThingsHasBeenSet() const { return m_minNumberOfExecutedThingsHasBeenSet; }
86 inline void SetMinNumberOfExecutedThings(int value) { m_minNumberOfExecutedThingsHasBeenSet = true; m_minNumberOfExecutedThings = value; }
89 private:
90
92 bool m_failureTypeHasBeenSet = false;
93
95 bool m_actionHasBeenSet = false;
96
97 double m_thresholdPercentage{0.0};
98 bool m_thresholdPercentageHasBeenSet = false;
99
100 int m_minNumberOfExecutedThings{0};
101 bool m_minNumberOfExecutedThingsHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace GreengrassV2
106} // namespace Aws
AWS_GREENGRASSV2_API IoTJobAbortCriteria & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetFailureType(IoTJobExecutionFailureType value)
IoTJobAbortCriteria & WithMinNumberOfExecutedThings(int value)
IoTJobAbortCriteria & WithThresholdPercentage(double value)
IoTJobAbortCriteria & WithFailureType(IoTJobExecutionFailureType value)
AWS_GREENGRASSV2_API IoTJobAbortCriteria()=default
IoTJobAbortCriteria & WithAction(IoTJobAbortAction value)
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
IoTJobExecutionFailureType GetFailureType() const
AWS_GREENGRASSV2_API IoTJobAbortCriteria(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue