AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAssertedControls(const Aws::Vector<Aws::String>& value) { m_assertedControlsHasBeenSet = true; m_assertedControls = value; }
52 inline void SetAssertedControls(Aws::Vector<Aws::String>&& value) { m_assertedControlsHasBeenSet = true; m_assertedControls = std::move(value); }
54 inline NewAssertionRule& WithAssertedControls(Aws::Vector<Aws::String>&& value) { SetAssertedControls(std::move(value)); return *this;}
55 inline NewAssertionRule& AddAssertedControls(const Aws::String& value) { m_assertedControlsHasBeenSet = true; m_assertedControls.push_back(value); return *this; }
56 inline NewAssertionRule& AddAssertedControls(Aws::String&& value) { m_assertedControlsHasBeenSet = true; m_assertedControls.push_back(std::move(value)); return *this; }
57 inline NewAssertionRule& AddAssertedControls(const char* value) { m_assertedControlsHasBeenSet = true; m_assertedControls.push_back(value); return *this; }
59
61
64 inline const Aws::String& GetControlPanelArn() const{ return m_controlPanelArn; }
65 inline bool ControlPanelArnHasBeenSet() const { return m_controlPanelArnHasBeenSet; }
66 inline void SetControlPanelArn(const Aws::String& value) { m_controlPanelArnHasBeenSet = true; m_controlPanelArn = value; }
67 inline void SetControlPanelArn(Aws::String&& value) { m_controlPanelArnHasBeenSet = true; m_controlPanelArn = std::move(value); }
68 inline void SetControlPanelArn(const char* value) { m_controlPanelArnHasBeenSet = true; m_controlPanelArn.assign(value); }
69 inline NewAssertionRule& WithControlPanelArn(const Aws::String& value) { SetControlPanelArn(value); return *this;}
70 inline NewAssertionRule& WithControlPanelArn(Aws::String&& value) { SetControlPanelArn(std::move(value)); return *this;}
71 inline NewAssertionRule& WithControlPanelArn(const char* value) { SetControlPanelArn(value); return *this;}
73
75
79 inline const Aws::String& GetName() const{ return m_name; }
80 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
81 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
82 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
83 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
84 inline NewAssertionRule& WithName(const Aws::String& value) { SetName(value); return *this;}
85 inline NewAssertionRule& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
86 inline NewAssertionRule& WithName(const char* value) { SetName(value); return *this;}
88
90
98 inline const RuleConfig& GetRuleConfig() const{ return m_ruleConfig; }
99 inline bool RuleConfigHasBeenSet() const { return m_ruleConfigHasBeenSet; }
100 inline void SetRuleConfig(const RuleConfig& value) { m_ruleConfigHasBeenSet = true; m_ruleConfig = value; }
101 inline void SetRuleConfig(RuleConfig&& value) { m_ruleConfigHasBeenSet = true; m_ruleConfig = std::move(value); }
102 inline NewAssertionRule& WithRuleConfig(const RuleConfig& value) { SetRuleConfig(value); return *this;}
103 inline NewAssertionRule& WithRuleConfig(RuleConfig&& value) { SetRuleConfig(std::move(value)); return *this;}
105
107
112 inline int GetWaitPeriodMs() const{ return m_waitPeriodMs; }
113 inline bool WaitPeriodMsHasBeenSet() const { return m_waitPeriodMsHasBeenSet; }
114 inline void SetWaitPeriodMs(int value) { m_waitPeriodMsHasBeenSet = true; m_waitPeriodMs = value; }
115 inline NewAssertionRule& WithWaitPeriodMs(int value) { SetWaitPeriodMs(value); return *this;}
117 private:
118
119 Aws::Vector<Aws::String> m_assertedControls;
120 bool m_assertedControlsHasBeenSet = false;
121
122 Aws::String m_controlPanelArn;
123 bool m_controlPanelArnHasBeenSet = false;
124
125 Aws::String m_name;
126 bool m_nameHasBeenSet = false;
127
128 RuleConfig m_ruleConfig;
129 bool m_ruleConfigHasBeenSet = false;
130
131 int m_waitPeriodMs;
132 bool m_waitPeriodMsHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace Route53RecoveryControlConfig
137} // namespace Aws
NewAssertionRule & WithAssertedControls(const Aws::Vector< Aws::String > &value)
NewAssertionRule & WithControlPanelArn(const char *value)
NewAssertionRule & WithControlPanelArn(Aws::String &&value)
NewAssertionRule & AddAssertedControls(const Aws::String &value)
const Aws::Vector< Aws::String > & GetAssertedControls() const
NewAssertionRule & WithControlPanelArn(const Aws::String &value)
NewAssertionRule & WithAssertedControls(Aws::Vector< Aws::String > &&value)
NewAssertionRule & WithName(const Aws::String &value)
AWS_ROUTE53RECOVERYCONTROLCONFIG_API NewAssertionRule(Aws::Utils::Json::JsonView jsonValue)
NewAssertionRule & AddAssertedControls(const char *value)
void SetAssertedControls(Aws::Vector< Aws::String > &&value)
AWS_ROUTE53RECOVERYCONTROLCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ROUTE53RECOVERYCONTROLCONFIG_API NewAssertionRule & operator=(Aws::Utils::Json::JsonView jsonValue)
NewAssertionRule & WithRuleConfig(RuleConfig &&value)
NewAssertionRule & WithRuleConfig(const RuleConfig &value)
NewAssertionRule & AddAssertedControls(Aws::String &&value)
void SetAssertedControls(const Aws::Vector< Aws::String > &value)
AWS_ROUTE53RECOVERYCONTROLCONFIG_API NewAssertionRule()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue