AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
EnabledControlDetails.h
1
6#pragma once
7#include <aws/controltower/ControlTower_EXPORTS.h>
8#include <aws/controltower/model/DriftStatusSummary.h>
9#include <aws/controltower/model/EnabledControlParameterSummary.h>
10#include <aws/controltower/model/EnablementStatusSummary.h>
11#include <aws/controltower/model/Region.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ControlTower {
25namespace Model {
26
33 public:
34 AWS_CONTROLTOWER_API EnabledControlDetails() = default;
35 AWS_CONTROLTOWER_API EnabledControlDetails(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONTROLTOWER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetArn() const { return m_arn; }
44 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
45 template <typename ArnT = Aws::String>
46 void SetArn(ArnT&& value) {
47 m_arnHasBeenSet = true;
48 m_arn = std::forward<ArnT>(value);
49 }
50 template <typename ArnT = Aws::String>
52 SetArn(std::forward<ArnT>(value));
53 return *this;
54 }
56
58
64 inline const Aws::String& GetControlIdentifier() const { return m_controlIdentifier; }
65 inline bool ControlIdentifierHasBeenSet() const { return m_controlIdentifierHasBeenSet; }
66 template <typename ControlIdentifierT = Aws::String>
67 void SetControlIdentifier(ControlIdentifierT&& value) {
68 m_controlIdentifierHasBeenSet = true;
69 m_controlIdentifier = std::forward<ControlIdentifierT>(value);
70 }
71 template <typename ControlIdentifierT = Aws::String>
72 EnabledControlDetails& WithControlIdentifier(ControlIdentifierT&& value) {
73 SetControlIdentifier(std::forward<ControlIdentifierT>(value));
74 return *this;
75 }
77
79
85 inline const Aws::String& GetTargetIdentifier() const { return m_targetIdentifier; }
86 inline bool TargetIdentifierHasBeenSet() const { return m_targetIdentifierHasBeenSet; }
87 template <typename TargetIdentifierT = Aws::String>
88 void SetTargetIdentifier(TargetIdentifierT&& value) {
89 m_targetIdentifierHasBeenSet = true;
90 m_targetIdentifier = std::forward<TargetIdentifierT>(value);
91 }
92 template <typename TargetIdentifierT = Aws::String>
93 EnabledControlDetails& WithTargetIdentifier(TargetIdentifierT&& value) {
94 SetTargetIdentifier(std::forward<TargetIdentifierT>(value));
95 return *this;
96 }
98
100
103 inline const EnablementStatusSummary& GetStatusSummary() const { return m_statusSummary; }
104 inline bool StatusSummaryHasBeenSet() const { return m_statusSummaryHasBeenSet; }
105 template <typename StatusSummaryT = EnablementStatusSummary>
106 void SetStatusSummary(StatusSummaryT&& value) {
107 m_statusSummaryHasBeenSet = true;
108 m_statusSummary = std::forward<StatusSummaryT>(value);
109 }
110 template <typename StatusSummaryT = EnablementStatusSummary>
111 EnabledControlDetails& WithStatusSummary(StatusSummaryT&& value) {
112 SetStatusSummary(std::forward<StatusSummaryT>(value));
113 return *this;
114 }
116
118
121 inline const DriftStatusSummary& GetDriftStatusSummary() const { return m_driftStatusSummary; }
122 inline bool DriftStatusSummaryHasBeenSet() const { return m_driftStatusSummaryHasBeenSet; }
123 template <typename DriftStatusSummaryT = DriftStatusSummary>
124 void SetDriftStatusSummary(DriftStatusSummaryT&& value) {
125 m_driftStatusSummaryHasBeenSet = true;
126 m_driftStatusSummary = std::forward<DriftStatusSummaryT>(value);
127 }
128 template <typename DriftStatusSummaryT = DriftStatusSummary>
129 EnabledControlDetails& WithDriftStatusSummary(DriftStatusSummaryT&& value) {
130 SetDriftStatusSummary(std::forward<DriftStatusSummaryT>(value));
131 return *this;
132 }
134
136
140 inline const Aws::String& GetParentIdentifier() const { return m_parentIdentifier; }
141 inline bool ParentIdentifierHasBeenSet() const { return m_parentIdentifierHasBeenSet; }
142 template <typename ParentIdentifierT = Aws::String>
143 void SetParentIdentifier(ParentIdentifierT&& value) {
144 m_parentIdentifierHasBeenSet = true;
145 m_parentIdentifier = std::forward<ParentIdentifierT>(value);
146 }
147 template <typename ParentIdentifierT = Aws::String>
148 EnabledControlDetails& WithParentIdentifier(ParentIdentifierT&& value) {
149 SetParentIdentifier(std::forward<ParentIdentifierT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::Vector<Region>& GetTargetRegions() const { return m_targetRegions; }
159 inline bool TargetRegionsHasBeenSet() const { return m_targetRegionsHasBeenSet; }
160 template <typename TargetRegionsT = Aws::Vector<Region>>
161 void SetTargetRegions(TargetRegionsT&& value) {
162 m_targetRegionsHasBeenSet = true;
163 m_targetRegions = std::forward<TargetRegionsT>(value);
164 }
165 template <typename TargetRegionsT = Aws::Vector<Region>>
166 EnabledControlDetails& WithTargetRegions(TargetRegionsT&& value) {
167 SetTargetRegions(std::forward<TargetRegionsT>(value));
168 return *this;
169 }
170 template <typename TargetRegionsT = Region>
171 EnabledControlDetails& AddTargetRegions(TargetRegionsT&& value) {
172 m_targetRegionsHasBeenSet = true;
173 m_targetRegions.emplace_back(std::forward<TargetRegionsT>(value));
174 return *this;
175 }
177
179
182 inline const Aws::Vector<EnabledControlParameterSummary>& GetParameters() const { return m_parameters; }
183 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
184 template <typename ParametersT = Aws::Vector<EnabledControlParameterSummary>>
185 void SetParameters(ParametersT&& value) {
186 m_parametersHasBeenSet = true;
187 m_parameters = std::forward<ParametersT>(value);
188 }
189 template <typename ParametersT = Aws::Vector<EnabledControlParameterSummary>>
190 EnabledControlDetails& WithParameters(ParametersT&& value) {
191 SetParameters(std::forward<ParametersT>(value));
192 return *this;
193 }
194 template <typename ParametersT = EnabledControlParameterSummary>
195 EnabledControlDetails& AddParameters(ParametersT&& value) {
196 m_parametersHasBeenSet = true;
197 m_parameters.emplace_back(std::forward<ParametersT>(value));
198 return *this;
199 }
201 private:
202 Aws::String m_arn;
203
204 Aws::String m_controlIdentifier;
205
206 Aws::String m_targetIdentifier;
207
208 EnablementStatusSummary m_statusSummary;
209
210 DriftStatusSummary m_driftStatusSummary;
211
212 Aws::String m_parentIdentifier;
213
214 Aws::Vector<Region> m_targetRegions;
215
217 bool m_arnHasBeenSet = false;
218 bool m_controlIdentifierHasBeenSet = false;
219 bool m_targetIdentifierHasBeenSet = false;
220 bool m_statusSummaryHasBeenSet = false;
221 bool m_driftStatusSummaryHasBeenSet = false;
222 bool m_parentIdentifierHasBeenSet = false;
223 bool m_targetRegionsHasBeenSet = false;
224 bool m_parametersHasBeenSet = false;
225};
226
227} // namespace Model
228} // namespace ControlTower
229} // namespace Aws
AWS_CONTROLTOWER_API EnabledControlDetails(Aws::Utils::Json::JsonView jsonValue)
EnabledControlDetails & WithDriftStatusSummary(DriftStatusSummaryT &&value)
EnabledControlDetails & AddTargetRegions(TargetRegionsT &&value)
EnabledControlDetails & WithArn(ArnT &&value)
EnabledControlDetails & WithParentIdentifier(ParentIdentifierT &&value)
AWS_CONTROLTOWER_API EnabledControlDetails()=default
const Aws::Vector< EnabledControlParameterSummary > & GetParameters() const
void SetDriftStatusSummary(DriftStatusSummaryT &&value)
EnabledControlDetails & WithTargetIdentifier(TargetIdentifierT &&value)
EnabledControlDetails & WithParameters(ParametersT &&value)
void SetControlIdentifier(ControlIdentifierT &&value)
EnabledControlDetails & WithTargetRegions(TargetRegionsT &&value)
const EnablementStatusSummary & GetStatusSummary() const
EnabledControlDetails & WithStatusSummary(StatusSummaryT &&value)
const DriftStatusSummary & GetDriftStatusSummary() const
AWS_CONTROLTOWER_API Aws::Utils::Json::JsonValue Jsonize() const
EnabledControlDetails & WithControlIdentifier(ControlIdentifierT &&value)
EnabledControlDetails & AddParameters(ParametersT &&value)
AWS_CONTROLTOWER_API EnabledControlDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Region > & GetTargetRegions() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue