AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
NewAssertionRule.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 <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Route53RecoveryControlConfig
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_ROUTE53RECOVERYCONTROLCONFIG_API NewAssertionRule() = default;
37 AWS_ROUTE53RECOVERYCONTROLCONFIG_API NewAssertionRule(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ROUTE53RECOVERYCONTROLCONFIG_API NewAssertionRule& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ROUTE53RECOVERYCONTROLCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
49 inline const Aws::Vector<Aws::String>& GetAssertedControls() const { return m_assertedControls; }
50 inline bool AssertedControlsHasBeenSet() const { return m_assertedControlsHasBeenSet; }
51 template<typename AssertedControlsT = Aws::Vector<Aws::String>>
52 void SetAssertedControls(AssertedControlsT&& value) { m_assertedControlsHasBeenSet = true; m_assertedControls = std::forward<AssertedControlsT>(value); }
53 template<typename AssertedControlsT = Aws::Vector<Aws::String>>
54 NewAssertionRule& WithAssertedControls(AssertedControlsT&& value) { SetAssertedControls(std::forward<AssertedControlsT>(value)); return *this;}
55 template<typename AssertedControlsT = Aws::String>
56 NewAssertionRule& AddAssertedControls(AssertedControlsT&& value) { m_assertedControlsHasBeenSet = true; m_assertedControls.emplace_back(std::forward<AssertedControlsT>(value)); return *this; }
58
60
63 inline const Aws::String& GetControlPanelArn() const { return m_controlPanelArn; }
64 inline bool ControlPanelArnHasBeenSet() const { return m_controlPanelArnHasBeenSet; }
65 template<typename ControlPanelArnT = Aws::String>
66 void SetControlPanelArn(ControlPanelArnT&& value) { m_controlPanelArnHasBeenSet = true; m_controlPanelArn = std::forward<ControlPanelArnT>(value); }
67 template<typename ControlPanelArnT = Aws::String>
68 NewAssertionRule& WithControlPanelArn(ControlPanelArnT&& value) { SetControlPanelArn(std::forward<ControlPanelArnT>(value)); return *this;}
70
72
76 inline const Aws::String& GetName() const { return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 template<typename NameT = Aws::String>
79 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
80 template<typename NameT = Aws::String>
81 NewAssertionRule& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
83
85
93 inline const RuleConfig& GetRuleConfig() const { return m_ruleConfig; }
94 inline bool RuleConfigHasBeenSet() const { return m_ruleConfigHasBeenSet; }
95 template<typename RuleConfigT = RuleConfig>
96 void SetRuleConfig(RuleConfigT&& value) { m_ruleConfigHasBeenSet = true; m_ruleConfig = std::forward<RuleConfigT>(value); }
97 template<typename RuleConfigT = RuleConfig>
98 NewAssertionRule& WithRuleConfig(RuleConfigT&& value) { SetRuleConfig(std::forward<RuleConfigT>(value)); return *this;}
100
102
107 inline int GetWaitPeriodMs() const { return m_waitPeriodMs; }
108 inline bool WaitPeriodMsHasBeenSet() const { return m_waitPeriodMsHasBeenSet; }
109 inline void SetWaitPeriodMs(int value) { m_waitPeriodMsHasBeenSet = true; m_waitPeriodMs = value; }
110 inline NewAssertionRule& WithWaitPeriodMs(int value) { SetWaitPeriodMs(value); return *this;}
112 private:
113
114 Aws::Vector<Aws::String> m_assertedControls;
115 bool m_assertedControlsHasBeenSet = false;
116
117 Aws::String m_controlPanelArn;
118 bool m_controlPanelArnHasBeenSet = false;
119
120 Aws::String m_name;
121 bool m_nameHasBeenSet = false;
122
123 RuleConfig m_ruleConfig;
124 bool m_ruleConfigHasBeenSet = false;
125
126 int m_waitPeriodMs{0};
127 bool m_waitPeriodMsHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace Route53RecoveryControlConfig
132} // namespace Aws
NewAssertionRule & WithControlPanelArn(ControlPanelArnT &&value)
NewAssertionRule & WithAssertedControls(AssertedControlsT &&value)
const Aws::Vector< Aws::String > & GetAssertedControls() const
AWS_ROUTE53RECOVERYCONTROLCONFIG_API NewAssertionRule(Aws::Utils::Json::JsonView jsonValue)
AWS_ROUTE53RECOVERYCONTROLCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ROUTE53RECOVERYCONTROLCONFIG_API NewAssertionRule & operator=(Aws::Utils::Json::JsonView jsonValue)
NewAssertionRule & AddAssertedControls(AssertedControlsT &&value)
NewAssertionRule & WithRuleConfig(RuleConfigT &&value)
AWS_ROUTE53RECOVERYCONTROLCONFIG_API NewAssertionRule()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue