AWS SDK for C++

AWS SDK for C++ Version 1.11.868

Loading...
Searching...
No Matches
TestRunPolicySnapshot.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
9#include <aws/resiliencehubv2/model/AvailabilitySlo.h>
10#include <aws/resiliencehubv2/model/DataRecoveryTargets.h>
11#include <aws/resiliencehubv2/model/MultiAzTargets.h>
12#include <aws/resiliencehubv2/model/MultiRegionTargets.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace resiliencehubv2 {
24namespace Model {
25
33 public:
34 AWS_RESILIENCEHUBV2_API TestRunPolicySnapshot() = default;
35 AWS_RESILIENCEHUBV2_API TestRunPolicySnapshot(Aws::Utils::Json::JsonView jsonValue);
36 AWS_RESILIENCEHUBV2_API TestRunPolicySnapshot& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
44 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
45 template <typename PolicyArnT = Aws::String>
46 void SetPolicyArn(PolicyArnT&& value) {
47 m_policyArnHasBeenSet = true;
48 m_policyArn = std::forward<PolicyArnT>(value);
49 }
50 template <typename PolicyArnT = Aws::String>
51 TestRunPolicySnapshot& WithPolicyArn(PolicyArnT&& value) {
52 SetPolicyArn(std::forward<PolicyArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
79 inline const AvailabilitySlo& GetAvailabilitySlo() const { return m_availabilitySlo; }
80 inline bool AvailabilitySloHasBeenSet() const { return m_availabilitySloHasBeenSet; }
81 template <typename AvailabilitySloT = AvailabilitySlo>
82 void SetAvailabilitySlo(AvailabilitySloT&& value) {
83 m_availabilitySloHasBeenSet = true;
84 m_availabilitySlo = std::forward<AvailabilitySloT>(value);
85 }
86 template <typename AvailabilitySloT = AvailabilitySlo>
87 TestRunPolicySnapshot& WithAvailabilitySlo(AvailabilitySloT&& value) {
88 SetAvailabilitySlo(std::forward<AvailabilitySloT>(value));
89 return *this;
90 }
92
94
97 inline const MultiAzTargets& GetMultiAz() const { return m_multiAz; }
98 inline bool MultiAzHasBeenSet() const { return m_multiAzHasBeenSet; }
99 template <typename MultiAzT = MultiAzTargets>
100 void SetMultiAz(MultiAzT&& value) {
101 m_multiAzHasBeenSet = true;
102 m_multiAz = std::forward<MultiAzT>(value);
103 }
104 template <typename MultiAzT = MultiAzTargets>
106 SetMultiAz(std::forward<MultiAzT>(value));
107 return *this;
108 }
110
112
115 inline const MultiRegionTargets& GetMultiRegion() const { return m_multiRegion; }
116 inline bool MultiRegionHasBeenSet() const { return m_multiRegionHasBeenSet; }
117 template <typename MultiRegionT = MultiRegionTargets>
118 void SetMultiRegion(MultiRegionT&& value) {
119 m_multiRegionHasBeenSet = true;
120 m_multiRegion = std::forward<MultiRegionT>(value);
121 }
122 template <typename MultiRegionT = MultiRegionTargets>
123 TestRunPolicySnapshot& WithMultiRegion(MultiRegionT&& value) {
124 SetMultiRegion(std::forward<MultiRegionT>(value));
125 return *this;
126 }
128
130
133 inline const DataRecoveryTargets& GetDataRecovery() const { return m_dataRecovery; }
134 inline bool DataRecoveryHasBeenSet() const { return m_dataRecoveryHasBeenSet; }
135 template <typename DataRecoveryT = DataRecoveryTargets>
136 void SetDataRecovery(DataRecoveryT&& value) {
137 m_dataRecoveryHasBeenSet = true;
138 m_dataRecovery = std::forward<DataRecoveryT>(value);
139 }
140 template <typename DataRecoveryT = DataRecoveryTargets>
141 TestRunPolicySnapshot& WithDataRecovery(DataRecoveryT&& value) {
142 SetDataRecovery(std::forward<DataRecoveryT>(value));
143 return *this;
144 }
146 private:
147 Aws::String m_policyArn;
148
149 Aws::String m_name;
150
151 AvailabilitySlo m_availabilitySlo;
152
153 MultiAzTargets m_multiAz;
154
155 MultiRegionTargets m_multiRegion;
156
157 DataRecoveryTargets m_dataRecovery;
158 bool m_policyArnHasBeenSet = false;
159 bool m_nameHasBeenSet = false;
160 bool m_availabilitySloHasBeenSet = false;
161 bool m_multiAzHasBeenSet = false;
162 bool m_multiRegionHasBeenSet = false;
163 bool m_dataRecoveryHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace resiliencehubv2
168} // namespace Aws
TestRunPolicySnapshot & WithPolicyArn(PolicyArnT &&value)
AWS_RESILIENCEHUBV2_API TestRunPolicySnapshot & operator=(Aws::Utils::Json::JsonView jsonValue)
TestRunPolicySnapshot & WithMultiAz(MultiAzT &&value)
TestRunPolicySnapshot & WithMultiRegion(MultiRegionT &&value)
AWS_RESILIENCEHUBV2_API TestRunPolicySnapshot()=default
TestRunPolicySnapshot & WithDataRecovery(DataRecoveryT &&value)
TestRunPolicySnapshot & WithName(NameT &&value)
AWS_RESILIENCEHUBV2_API TestRunPolicySnapshot(Aws::Utils::Json::JsonView jsonValue)
TestRunPolicySnapshot & WithAvailabilitySlo(AvailabilitySloT &&value)
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue