AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssertionRule.h
1
6#pragma once
7#include <aws/route53-recovery-control-config/Route53RecoveryControlConfig_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.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
40 {
41 public:
42 AWS_ROUTE53RECOVERYCONTROLCONFIG_API AssertionRule();
43 AWS_ROUTE53RECOVERYCONTROLCONFIG_API AssertionRule(Aws::Utils::Json::JsonView jsonValue);
44 AWS_ROUTE53RECOVERYCONTROLCONFIG_API AssertionRule& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_ROUTE53RECOVERYCONTROLCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
55 inline const Aws::Vector<Aws::String>& GetAssertedControls() const{ return m_assertedControls; }
56 inline bool AssertedControlsHasBeenSet() const { return m_assertedControlsHasBeenSet; }
57 inline void SetAssertedControls(const Aws::Vector<Aws::String>& value) { m_assertedControlsHasBeenSet = true; m_assertedControls = value; }
58 inline void SetAssertedControls(Aws::Vector<Aws::String>&& value) { m_assertedControlsHasBeenSet = true; m_assertedControls = std::move(value); }
60 inline AssertionRule& WithAssertedControls(Aws::Vector<Aws::String>&& value) { SetAssertedControls(std::move(value)); return *this;}
61 inline AssertionRule& AddAssertedControls(const Aws::String& value) { m_assertedControlsHasBeenSet = true; m_assertedControls.push_back(value); return *this; }
62 inline AssertionRule& AddAssertedControls(Aws::String&& value) { m_assertedControlsHasBeenSet = true; m_assertedControls.push_back(std::move(value)); return *this; }
63 inline AssertionRule& AddAssertedControls(const char* value) { m_assertedControlsHasBeenSet = true; m_assertedControls.push_back(value); return *this; }
65
67
70 inline const Aws::String& GetControlPanelArn() const{ return m_controlPanelArn; }
71 inline bool ControlPanelArnHasBeenSet() const { return m_controlPanelArnHasBeenSet; }
72 inline void SetControlPanelArn(const Aws::String& value) { m_controlPanelArnHasBeenSet = true; m_controlPanelArn = value; }
73 inline void SetControlPanelArn(Aws::String&& value) { m_controlPanelArnHasBeenSet = true; m_controlPanelArn = std::move(value); }
74 inline void SetControlPanelArn(const char* value) { m_controlPanelArnHasBeenSet = true; m_controlPanelArn.assign(value); }
75 inline AssertionRule& WithControlPanelArn(const Aws::String& value) { SetControlPanelArn(value); return *this;}
76 inline AssertionRule& WithControlPanelArn(Aws::String&& value) { SetControlPanelArn(std::move(value)); return *this;}
77 inline AssertionRule& WithControlPanelArn(const char* value) { SetControlPanelArn(value); return *this;}
79
81
85 inline const Aws::String& GetName() const{ return m_name; }
86 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
87 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
88 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
89 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
90 inline AssertionRule& WithName(const Aws::String& value) { SetName(value); return *this;}
91 inline AssertionRule& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
92 inline AssertionRule& WithName(const char* value) { SetName(value); return *this;}
94
96
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 AssertionRule& WithRuleConfig(const RuleConfig& value) { SetRuleConfig(value); return *this;}
109 inline AssertionRule& 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 AssertionRule& WithSafetyRuleArn(const Aws::String& value) { SetSafetyRuleArn(value); return *this;}
122 inline AssertionRule& WithSafetyRuleArn(Aws::String&& value) { SetSafetyRuleArn(std::move(value)); return *this;}
123 inline AssertionRule& 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 AssertionRule& WithStatus(const Status& value) { SetStatus(value); return *this;}
136 inline AssertionRule& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;}
138
140
145 inline int GetWaitPeriodMs() const{ return m_waitPeriodMs; }
146 inline bool WaitPeriodMsHasBeenSet() const { return m_waitPeriodMsHasBeenSet; }
147 inline void SetWaitPeriodMs(int value) { m_waitPeriodMsHasBeenSet = true; m_waitPeriodMs = value; }
148 inline AssertionRule& WithWaitPeriodMs(int value) { SetWaitPeriodMs(value); return *this;}
150
152
155 inline const Aws::String& GetOwner() const{ return m_owner; }
156 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
157 inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; }
158 inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
159 inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); }
160 inline AssertionRule& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
161 inline AssertionRule& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;}
162 inline AssertionRule& WithOwner(const char* value) { SetOwner(value); return *this;}
164 private:
165
166 Aws::Vector<Aws::String> m_assertedControls;
167 bool m_assertedControlsHasBeenSet = false;
168
169 Aws::String m_controlPanelArn;
170 bool m_controlPanelArnHasBeenSet = false;
171
172 Aws::String m_name;
173 bool m_nameHasBeenSet = false;
174
175 RuleConfig m_ruleConfig;
176 bool m_ruleConfigHasBeenSet = false;
177
178 Aws::String m_safetyRuleArn;
179 bool m_safetyRuleArnHasBeenSet = false;
180
181 Status m_status;
182 bool m_statusHasBeenSet = false;
183
184 int m_waitPeriodMs;
185 bool m_waitPeriodMsHasBeenSet = false;
186
187 Aws::String m_owner;
188 bool m_ownerHasBeenSet = false;
189 };
190
191} // namespace Model
192} // namespace Route53RecoveryControlConfig
193} // namespace Aws
AssertionRule & WithControlPanelArn(const Aws::String &value)
AssertionRule & WithName(Aws::String &&value)
AWS_ROUTE53RECOVERYCONTROLCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAssertedControls(Aws::Vector< Aws::String > &&value)
AssertionRule & WithAssertedControls(const Aws::Vector< Aws::String > &value)
AWS_ROUTE53RECOVERYCONTROLCONFIG_API AssertionRule(Aws::Utils::Json::JsonView jsonValue)
AssertionRule & WithOwner(const Aws::String &value)
AssertionRule & WithName(const Aws::String &value)
AssertionRule & WithStatus(const Status &value)
AssertionRule & WithControlPanelArn(Aws::String &&value)
const Aws::Vector< Aws::String > & GetAssertedControls() const
AssertionRule & WithControlPanelArn(const char *value)
AssertionRule & WithSafetyRuleArn(Aws::String &&value)
AssertionRule & WithAssertedControls(Aws::Vector< Aws::String > &&value)
AssertionRule & AddAssertedControls(const char *value)
AssertionRule & AddAssertedControls(Aws::String &&value)
AssertionRule & WithSafetyRuleArn(const Aws::String &value)
AWS_ROUTE53RECOVERYCONTROLCONFIG_API AssertionRule()
AssertionRule & WithRuleConfig(const RuleConfig &value)
AssertionRule & WithSafetyRuleArn(const char *value)
AssertionRule & WithOwner(Aws::String &&value)
AWS_ROUTE53RECOVERYCONTROLCONFIG_API AssertionRule & operator=(Aws::Utils::Json::JsonView jsonValue)
AssertionRule & WithRuleConfig(RuleConfig &&value)
AssertionRule & AddAssertedControls(const Aws::String &value)
void SetAssertedControls(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue