AWS SDK for C++

AWS SDK for C++ Version 1.11.613

Loading...
Searching...
No Matches
AbortConfigCriteria.h
1
6#pragma once
7#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
8#include <aws/iot-managed-integrations/model/AbortCriteriaAction.h>
9#include <aws/iot-managed-integrations/model/AbortCriteriaFailureType.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 IoTManagedIntegrations
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IOTMANAGEDINTEGRATIONS_API AbortConfigCriteria() = default;
37 AWS_IOTMANAGEDINTEGRATIONS_API AbortConfigCriteria(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IOTMANAGEDINTEGRATIONS_API AbortConfigCriteria& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTMANAGEDINTEGRATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline AbortCriteriaAction GetAction() const { return m_action; }
47 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
48 inline void SetAction(AbortCriteriaAction value) { m_actionHasBeenSet = true; m_action = value; }
49 inline AbortConfigCriteria& WithAction(AbortCriteriaAction value) { SetAction(value); return *this;}
51
53
56 inline AbortCriteriaFailureType GetFailureType() const { return m_failureType; }
57 inline bool FailureTypeHasBeenSet() const { return m_failureTypeHasBeenSet; }
58 inline void SetFailureType(AbortCriteriaFailureType value) { m_failureTypeHasBeenSet = true; m_failureType = value; }
61
63
67 inline int GetMinNumberOfExecutedThings() const { return m_minNumberOfExecutedThings; }
68 inline bool MinNumberOfExecutedThingsHasBeenSet() const { return m_minNumberOfExecutedThingsHasBeenSet; }
69 inline void SetMinNumberOfExecutedThings(int value) { m_minNumberOfExecutedThingsHasBeenSet = true; m_minNumberOfExecutedThings = value; }
72
74
78 inline double GetThresholdPercentage() const { return m_thresholdPercentage; }
79 inline bool ThresholdPercentageHasBeenSet() const { return m_thresholdPercentageHasBeenSet; }
80 inline void SetThresholdPercentage(double value) { m_thresholdPercentageHasBeenSet = true; m_thresholdPercentage = value; }
81 inline AbortConfigCriteria& WithThresholdPercentage(double value) { SetThresholdPercentage(value); return *this;}
83 private:
84
86 bool m_actionHasBeenSet = false;
87
89 bool m_failureTypeHasBeenSet = false;
90
91 int m_minNumberOfExecutedThings{0};
92 bool m_minNumberOfExecutedThingsHasBeenSet = false;
93
94 double m_thresholdPercentage{0.0};
95 bool m_thresholdPercentageHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace IoTManagedIntegrations
100} // namespace Aws
AWS_IOTMANAGEDINTEGRATIONS_API AbortConfigCriteria(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTMANAGEDINTEGRATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTMANAGEDINTEGRATIONS_API AbortConfigCriteria & operator=(Aws::Utils::Json::JsonView jsonValue)
AbortConfigCriteria & WithFailureType(AbortCriteriaFailureType value)
AbortConfigCriteria & WithThresholdPercentage(double value)
AbortConfigCriteria & WithAction(AbortCriteriaAction value)
AWS_IOTMANAGEDINTEGRATIONS_API AbortConfigCriteria()=default
Aws::Utils::Json::JsonValue JsonValue