AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const IoTJobExecutionFailureType& GetFailureType() const{ return m_failureType; }
51 inline bool FailureTypeHasBeenSet() const { return m_failureTypeHasBeenSet; }
52 inline void SetFailureType(const IoTJobExecutionFailureType& value) { m_failureTypeHasBeenSet = true; m_failureType = value; }
53 inline void SetFailureType(IoTJobExecutionFailureType&& value) { m_failureTypeHasBeenSet = true; m_failureType = std::move(value); }
55 inline IoTJobAbortCriteria& WithFailureType(IoTJobExecutionFailureType&& value) { SetFailureType(std::move(value)); return *this;}
57
59
62 inline const IoTJobAbortAction& GetAction() const{ return m_action; }
63 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
64 inline void SetAction(const IoTJobAbortAction& value) { m_actionHasBeenSet = true; m_action = value; }
65 inline void SetAction(IoTJobAbortAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
66 inline IoTJobAbortCriteria& WithAction(const IoTJobAbortAction& value) { SetAction(value); return *this;}
67 inline IoTJobAbortCriteria& WithAction(IoTJobAbortAction&& value) { SetAction(std::move(value)); return *this;}
69
71
77 inline double GetThresholdPercentage() const{ return m_thresholdPercentage; }
78 inline bool ThresholdPercentageHasBeenSet() const { return m_thresholdPercentageHasBeenSet; }
79 inline void SetThresholdPercentage(double value) { m_thresholdPercentageHasBeenSet = true; m_thresholdPercentage = value; }
80 inline IoTJobAbortCriteria& WithThresholdPercentage(double value) { SetThresholdPercentage(value); return *this;}
82
84
88 inline int GetMinNumberOfExecutedThings() const{ return m_minNumberOfExecutedThings; }
89 inline bool MinNumberOfExecutedThingsHasBeenSet() const { return m_minNumberOfExecutedThingsHasBeenSet; }
90 inline void SetMinNumberOfExecutedThings(int value) { m_minNumberOfExecutedThingsHasBeenSet = true; m_minNumberOfExecutedThings = value; }
93 private:
94
95 IoTJobExecutionFailureType m_failureType;
96 bool m_failureTypeHasBeenSet = false;
97
98 IoTJobAbortAction m_action;
99 bool m_actionHasBeenSet = false;
100
101 double m_thresholdPercentage;
102 bool m_thresholdPercentageHasBeenSet = false;
103
104 int m_minNumberOfExecutedThings;
105 bool m_minNumberOfExecutedThingsHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace GreengrassV2
110} // namespace Aws
const IoTJobAbortAction & GetAction() const
AWS_GREENGRASSV2_API IoTJobAbortCriteria & operator=(Aws::Utils::Json::JsonView jsonValue)
IoTJobAbortCriteria & WithAction(const IoTJobAbortAction &value)
void SetAction(const IoTJobAbortAction &value)
IoTJobAbortCriteria & WithMinNumberOfExecutedThings(int value)
IoTJobAbortCriteria & WithFailureType(const IoTJobExecutionFailureType &value)
IoTJobAbortCriteria & WithAction(IoTJobAbortAction &&value)
IoTJobAbortCriteria & WithThresholdPercentage(double value)
void SetFailureType(const IoTJobExecutionFailureType &value)
void SetFailureType(IoTJobExecutionFailureType &&value)
IoTJobAbortCriteria & WithFailureType(IoTJobExecutionFailureType &&value)
const IoTJobExecutionFailureType & GetFailureType() const
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GREENGRASSV2_API IoTJobAbortCriteria(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue