AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename AssertedControlsT = Aws::Vector<Aws::String>>
58 void SetAssertedControls(AssertedControlsT&& value) { m_assertedControlsHasBeenSet = true; m_assertedControls = std::forward<AssertedControlsT>(value); }
59 template<typename AssertedControlsT = Aws::Vector<Aws::String>>
60 AssertionRule& WithAssertedControls(AssertedControlsT&& value) { SetAssertedControls(std::forward<AssertedControlsT>(value)); return *this;}
61 template<typename AssertedControlsT = Aws::String>
62 AssertionRule& AddAssertedControls(AssertedControlsT&& value) { m_assertedControlsHasBeenSet = true; m_assertedControls.emplace_back(std::forward<AssertedControlsT>(value)); return *this; }
64
66
69 inline const Aws::String& GetControlPanelArn() const { return m_controlPanelArn; }
70 inline bool ControlPanelArnHasBeenSet() const { return m_controlPanelArnHasBeenSet; }
71 template<typename ControlPanelArnT = Aws::String>
72 void SetControlPanelArn(ControlPanelArnT&& value) { m_controlPanelArnHasBeenSet = true; m_controlPanelArn = std::forward<ControlPanelArnT>(value); }
73 template<typename ControlPanelArnT = Aws::String>
74 AssertionRule& WithControlPanelArn(ControlPanelArnT&& value) { SetControlPanelArn(std::forward<ControlPanelArnT>(value)); return *this;}
76
78
82 inline const Aws::String& GetName() const { return m_name; }
83 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
84 template<typename NameT = Aws::String>
85 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
86 template<typename NameT = Aws::String>
87 AssertionRule& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
89
91
99 inline const RuleConfig& GetRuleConfig() const { return m_ruleConfig; }
100 inline bool RuleConfigHasBeenSet() const { return m_ruleConfigHasBeenSet; }
101 template<typename RuleConfigT = RuleConfig>
102 void SetRuleConfig(RuleConfigT&& value) { m_ruleConfigHasBeenSet = true; m_ruleConfig = std::forward<RuleConfigT>(value); }
103 template<typename RuleConfigT = RuleConfig>
104 AssertionRule& WithRuleConfig(RuleConfigT&& value) { SetRuleConfig(std::forward<RuleConfigT>(value)); return *this;}
106
108
111 inline const Aws::String& GetSafetyRuleArn() const { return m_safetyRuleArn; }
112 inline bool SafetyRuleArnHasBeenSet() const { return m_safetyRuleArnHasBeenSet; }
113 template<typename SafetyRuleArnT = Aws::String>
114 void SetSafetyRuleArn(SafetyRuleArnT&& value) { m_safetyRuleArnHasBeenSet = true; m_safetyRuleArn = std::forward<SafetyRuleArnT>(value); }
115 template<typename SafetyRuleArnT = Aws::String>
116 AssertionRule& WithSafetyRuleArn(SafetyRuleArnT&& value) { SetSafetyRuleArn(std::forward<SafetyRuleArnT>(value)); return *this;}
118
120
124 inline Status GetStatus() const { return m_status; }
125 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
126 inline void SetStatus(Status value) { m_statusHasBeenSet = true; m_status = value; }
127 inline AssertionRule& WithStatus(Status value) { SetStatus(value); return *this;}
129
131
136 inline int GetWaitPeriodMs() const { return m_waitPeriodMs; }
137 inline bool WaitPeriodMsHasBeenSet() const { return m_waitPeriodMsHasBeenSet; }
138 inline void SetWaitPeriodMs(int value) { m_waitPeriodMsHasBeenSet = true; m_waitPeriodMs = value; }
139 inline AssertionRule& WithWaitPeriodMs(int value) { SetWaitPeriodMs(value); return *this;}
141
143
146 inline const Aws::String& GetOwner() const { return m_owner; }
147 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
148 template<typename OwnerT = Aws::String>
149 void SetOwner(OwnerT&& value) { m_ownerHasBeenSet = true; m_owner = std::forward<OwnerT>(value); }
150 template<typename OwnerT = Aws::String>
151 AssertionRule& WithOwner(OwnerT&& value) { SetOwner(std::forward<OwnerT>(value)); return *this;}
153 private:
154
155 Aws::Vector<Aws::String> m_assertedControls;
156 bool m_assertedControlsHasBeenSet = false;
157
158 Aws::String m_controlPanelArn;
159 bool m_controlPanelArnHasBeenSet = false;
160
161 Aws::String m_name;
162 bool m_nameHasBeenSet = false;
163
164 RuleConfig m_ruleConfig;
165 bool m_ruleConfigHasBeenSet = false;
166
167 Aws::String m_safetyRuleArn;
168 bool m_safetyRuleArnHasBeenSet = false;
169
170 Status m_status{Status::NOT_SET};
171 bool m_statusHasBeenSet = false;
172
173 int m_waitPeriodMs{0};
174 bool m_waitPeriodMsHasBeenSet = false;
175
176 Aws::String m_owner;
177 bool m_ownerHasBeenSet = false;
178 };
179
180} // namespace Model
181} // namespace Route53RecoveryControlConfig
182} // namespace Aws
AWS_ROUTE53RECOVERYCONTROLCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ROUTE53RECOVERYCONTROLCONFIG_API AssertionRule(Aws::Utils::Json::JsonView jsonValue)
AssertionRule & WithAssertedControls(AssertedControlsT &&value)
AssertionRule & WithRuleConfig(RuleConfigT &&value)
const Aws::Vector< Aws::String > & GetAssertedControls() const
AssertionRule & WithControlPanelArn(ControlPanelArnT &&value)
AssertionRule & AddAssertedControls(AssertedControlsT &&value)
AWS_ROUTE53RECOVERYCONTROLCONFIG_API AssertionRule()=default
AWS_ROUTE53RECOVERYCONTROLCONFIG_API AssertionRule & operator=(Aws::Utils::Json::JsonView jsonValue)
AssertionRule & WithSafetyRuleArn(SafetyRuleArnT &&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