AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GatingRule.h
1
6#pragma once
7#include <aws/route53-recovery-control-config/Route53RecoveryControlConfig_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/route53-recovery-control-config/model/RuleConfig.h>
11#include <aws/route53-recovery-control-config/model/Status.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Route53RecoveryControlConfig
25{
26namespace Model
27{
28
43 {
44 public:
45 AWS_ROUTE53RECOVERYCONTROLCONFIG_API GatingRule();
46 AWS_ROUTE53RECOVERYCONTROLCONFIG_API GatingRule(Aws::Utils::Json::JsonView jsonValue);
47 AWS_ROUTE53RECOVERYCONTROLCONFIG_API GatingRule& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_ROUTE53RECOVERYCONTROLCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const;
49
50
52
55 inline const Aws::String& GetControlPanelArn() const{ return m_controlPanelArn; }
56 inline bool ControlPanelArnHasBeenSet() const { return m_controlPanelArnHasBeenSet; }
57 inline void SetControlPanelArn(const Aws::String& value) { m_controlPanelArnHasBeenSet = true; m_controlPanelArn = value; }
58 inline void SetControlPanelArn(Aws::String&& value) { m_controlPanelArnHasBeenSet = true; m_controlPanelArn = std::move(value); }
59 inline void SetControlPanelArn(const char* value) { m_controlPanelArnHasBeenSet = true; m_controlPanelArn.assign(value); }
60 inline GatingRule& WithControlPanelArn(const Aws::String& value) { SetControlPanelArn(value); return *this;}
61 inline GatingRule& WithControlPanelArn(Aws::String&& value) { SetControlPanelArn(std::move(value)); return *this;}
62 inline GatingRule& WithControlPanelArn(const char* value) { SetControlPanelArn(value); return *this;}
64
66
72 inline const Aws::Vector<Aws::String>& GetGatingControls() const{ return m_gatingControls; }
73 inline bool GatingControlsHasBeenSet() const { return m_gatingControlsHasBeenSet; }
74 inline void SetGatingControls(const Aws::Vector<Aws::String>& value) { m_gatingControlsHasBeenSet = true; m_gatingControls = value; }
75 inline void SetGatingControls(Aws::Vector<Aws::String>&& value) { m_gatingControlsHasBeenSet = true; m_gatingControls = std::move(value); }
76 inline GatingRule& WithGatingControls(const Aws::Vector<Aws::String>& value) { SetGatingControls(value); return *this;}
77 inline GatingRule& WithGatingControls(Aws::Vector<Aws::String>&& value) { SetGatingControls(std::move(value)); return *this;}
78 inline GatingRule& AddGatingControls(const Aws::String& value) { m_gatingControlsHasBeenSet = true; m_gatingControls.push_back(value); return *this; }
79 inline GatingRule& AddGatingControls(Aws::String&& value) { m_gatingControlsHasBeenSet = true; m_gatingControls.push_back(std::move(value)); return *this; }
80 inline GatingRule& AddGatingControls(const char* value) { m_gatingControlsHasBeenSet = true; m_gatingControls.push_back(value); return *this; }
82
84
88 inline const Aws::String& GetName() const{ return m_name; }
89 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
90 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
91 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
92 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
93 inline GatingRule& WithName(const Aws::String& value) { SetName(value); return *this;}
94 inline GatingRule& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
95 inline GatingRule& WithName(const char* value) { SetName(value); return *this;}
97
99
104 inline const RuleConfig& GetRuleConfig() const{ return m_ruleConfig; }
105 inline bool RuleConfigHasBeenSet() const { return m_ruleConfigHasBeenSet; }
106 inline void SetRuleConfig(const RuleConfig& value) { m_ruleConfigHasBeenSet = true; m_ruleConfig = value; }
107 inline void SetRuleConfig(RuleConfig&& value) { m_ruleConfigHasBeenSet = true; m_ruleConfig = std::move(value); }
108 inline GatingRule& WithRuleConfig(const RuleConfig& value) { SetRuleConfig(value); return *this;}
109 inline GatingRule& WithRuleConfig(RuleConfig&& value) { SetRuleConfig(std::move(value)); return *this;}
111
113
116 inline const Aws::String& GetSafetyRuleArn() const{ return m_safetyRuleArn; }
117 inline bool SafetyRuleArnHasBeenSet() const { return m_safetyRuleArnHasBeenSet; }
118 inline void SetSafetyRuleArn(const Aws::String& value) { m_safetyRuleArnHasBeenSet = true; m_safetyRuleArn = value; }
119 inline void SetSafetyRuleArn(Aws::String&& value) { m_safetyRuleArnHasBeenSet = true; m_safetyRuleArn = std::move(value); }
120 inline void SetSafetyRuleArn(const char* value) { m_safetyRuleArnHasBeenSet = true; m_safetyRuleArn.assign(value); }
121 inline GatingRule& WithSafetyRuleArn(const Aws::String& value) { SetSafetyRuleArn(value); return *this;}
122 inline GatingRule& WithSafetyRuleArn(Aws::String&& value) { SetSafetyRuleArn(std::move(value)); return *this;}
123 inline GatingRule& WithSafetyRuleArn(const char* value) { SetSafetyRuleArn(value); return *this;}
125
127
131 inline const Status& GetStatus() const{ return m_status; }
132 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
133 inline void SetStatus(const Status& value) { m_statusHasBeenSet = true; m_status = value; }
134 inline void SetStatus(Status&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
135 inline GatingRule& WithStatus(const Status& value) { SetStatus(value); return *this;}
136 inline GatingRule& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;}
138
140
148 inline const Aws::Vector<Aws::String>& GetTargetControls() const{ return m_targetControls; }
149 inline bool TargetControlsHasBeenSet() const { return m_targetControlsHasBeenSet; }
150 inline void SetTargetControls(const Aws::Vector<Aws::String>& value) { m_targetControlsHasBeenSet = true; m_targetControls = value; }
151 inline void SetTargetControls(Aws::Vector<Aws::String>&& value) { m_targetControlsHasBeenSet = true; m_targetControls = std::move(value); }
152 inline GatingRule& WithTargetControls(const Aws::Vector<Aws::String>& value) { SetTargetControls(value); return *this;}
153 inline GatingRule& WithTargetControls(Aws::Vector<Aws::String>&& value) { SetTargetControls(std::move(value)); return *this;}
154 inline GatingRule& AddTargetControls(const Aws::String& value) { m_targetControlsHasBeenSet = true; m_targetControls.push_back(value); return *this; }
155 inline GatingRule& AddTargetControls(Aws::String&& value) { m_targetControlsHasBeenSet = true; m_targetControls.push_back(std::move(value)); return *this; }
156 inline GatingRule& AddTargetControls(const char* value) { m_targetControlsHasBeenSet = true; m_targetControls.push_back(value); return *this; }
158
160
165 inline int GetWaitPeriodMs() const{ return m_waitPeriodMs; }
166 inline bool WaitPeriodMsHasBeenSet() const { return m_waitPeriodMsHasBeenSet; }
167 inline void SetWaitPeriodMs(int value) { m_waitPeriodMsHasBeenSet = true; m_waitPeriodMs = value; }
168 inline GatingRule& WithWaitPeriodMs(int value) { SetWaitPeriodMs(value); return *this;}
170
172
175 inline const Aws::String& GetOwner() const{ return m_owner; }
176 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
177 inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; }
178 inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
179 inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); }
180 inline GatingRule& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
181 inline GatingRule& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;}
182 inline GatingRule& WithOwner(const char* value) { SetOwner(value); return *this;}
184 private:
185
186 Aws::String m_controlPanelArn;
187 bool m_controlPanelArnHasBeenSet = false;
188
189 Aws::Vector<Aws::String> m_gatingControls;
190 bool m_gatingControlsHasBeenSet = false;
191
192 Aws::String m_name;
193 bool m_nameHasBeenSet = false;
194
195 RuleConfig m_ruleConfig;
196 bool m_ruleConfigHasBeenSet = false;
197
198 Aws::String m_safetyRuleArn;
199 bool m_safetyRuleArnHasBeenSet = false;
200
201 Status m_status;
202 bool m_statusHasBeenSet = false;
203
204 Aws::Vector<Aws::String> m_targetControls;
205 bool m_targetControlsHasBeenSet = false;
206
207 int m_waitPeriodMs;
208 bool m_waitPeriodMsHasBeenSet = false;
209
210 Aws::String m_owner;
211 bool m_ownerHasBeenSet = false;
212 };
213
214} // namespace Model
215} // namespace Route53RecoveryControlConfig
216} // namespace Aws
GatingRule & AddTargetControls(const char *value)
Definition GatingRule.h:156
void SetSafetyRuleArn(const Aws::String &value)
Definition GatingRule.h:118
void SetTargetControls(Aws::Vector< Aws::String > &&value)
Definition GatingRule.h:151
GatingRule & WithControlPanelArn(Aws::String &&value)
Definition GatingRule.h:61
GatingRule & WithSafetyRuleArn(Aws::String &&value)
Definition GatingRule.h:122
const Aws::Vector< Aws::String > & GetGatingControls() const
Definition GatingRule.h:72
void SetGatingControls(const Aws::Vector< Aws::String > &value)
Definition GatingRule.h:74
AWS_ROUTE53RECOVERYCONTROLCONFIG_API GatingRule()
AWS_ROUTE53RECOVERYCONTROLCONFIG_API GatingRule(Aws::Utils::Json::JsonView jsonValue)
GatingRule & AddTargetControls(Aws::String &&value)
Definition GatingRule.h:155
void SetGatingControls(Aws::Vector< Aws::String > &&value)
Definition GatingRule.h:75
GatingRule & AddTargetControls(const Aws::String &value)
Definition GatingRule.h:154
GatingRule & AddGatingControls(const Aws::String &value)
Definition GatingRule.h:78
GatingRule & WithControlPanelArn(const char *value)
Definition GatingRule.h:62
void SetTargetControls(const Aws::Vector< Aws::String > &value)
Definition GatingRule.h:150
void SetControlPanelArn(const Aws::String &value)
Definition GatingRule.h:57
AWS_ROUTE53RECOVERYCONTROLCONFIG_API GatingRule & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetTargetControls() const
Definition GatingRule.h:148
GatingRule & WithSafetyRuleArn(const char *value)
Definition GatingRule.h:123
GatingRule & AddGatingControls(const char *value)
Definition GatingRule.h:80
GatingRule & WithGatingControls(const Aws::Vector< Aws::String > &value)
Definition GatingRule.h:76
GatingRule & WithStatus(const Status &value)
Definition GatingRule.h:135
AWS_ROUTE53RECOVERYCONTROLCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const
GatingRule & WithControlPanelArn(const Aws::String &value)
Definition GatingRule.h:60
GatingRule & WithRuleConfig(const RuleConfig &value)
Definition GatingRule.h:108
GatingRule & WithTargetControls(Aws::Vector< Aws::String > &&value)
Definition GatingRule.h:153
GatingRule & WithTargetControls(const Aws::Vector< Aws::String > &value)
Definition GatingRule.h:152
GatingRule & WithName(const Aws::String &value)
Definition GatingRule.h:93
GatingRule & WithOwner(Aws::String &&value)
Definition GatingRule.h:181
GatingRule & WithRuleConfig(RuleConfig &&value)
Definition GatingRule.h:109
GatingRule & WithSafetyRuleArn(const Aws::String &value)
Definition GatingRule.h:121
GatingRule & WithGatingControls(Aws::Vector< Aws::String > &&value)
Definition GatingRule.h:77
GatingRule & WithOwner(const Aws::String &value)
Definition GatingRule.h:180
GatingRule & WithName(Aws::String &&value)
Definition GatingRule.h:94
GatingRule & AddGatingControls(Aws::String &&value)
Definition GatingRule.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue