AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Control.h
1
6#pragma once
7#include <aws/auditmanager/AuditManager_EXPORTS.h>
8#include <aws/auditmanager/model/ControlMappingSource.h>
9#include <aws/auditmanager/model/ControlState.h>
10#include <aws/auditmanager/model/ControlType.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace AuditManager {
26namespace Model {
27
33class Control {
34 public:
35 AWS_AUDITMANAGER_API Control() = default;
36 AWS_AUDITMANAGER_API Control(Aws::Utils::Json::JsonView jsonValue);
37 AWS_AUDITMANAGER_API Control& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetArn() const { return m_arn; }
45 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
46 template <typename ArnT = Aws::String>
47 void SetArn(ArnT&& value) {
48 m_arnHasBeenSet = true;
49 m_arn = std::forward<ArnT>(value);
50 }
51 template <typename ArnT = Aws::String>
52 Control& WithArn(ArnT&& value) {
53 SetArn(std::forward<ArnT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetId() const { return m_id; }
63 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
64 template <typename IdT = Aws::String>
65 void SetId(IdT&& value) {
66 m_idHasBeenSet = true;
67 m_id = std::forward<IdT>(value);
68 }
69 template <typename IdT = Aws::String>
70 Control& WithId(IdT&& value) {
71 SetId(std::forward<IdT>(value));
72 return *this;
73 }
75
77
80 inline ControlType GetType() const { return m_type; }
81 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
82 inline void SetType(ControlType value) {
83 m_typeHasBeenSet = true;
84 m_type = value;
85 }
86 inline Control& WithType(ControlType value) {
87 SetType(value);
88 return *this;
89 }
91
93
96 inline const Aws::String& GetName() const { return m_name; }
97 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
98 template <typename NameT = Aws::String>
99 void SetName(NameT&& value) {
100 m_nameHasBeenSet = true;
101 m_name = std::forward<NameT>(value);
102 }
103 template <typename NameT = Aws::String>
104 Control& WithName(NameT&& value) {
105 SetName(std::forward<NameT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetDescription() const { return m_description; }
115 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
116 template <typename DescriptionT = Aws::String>
117 void SetDescription(DescriptionT&& value) {
118 m_descriptionHasBeenSet = true;
119 m_description = std::forward<DescriptionT>(value);
120 }
121 template <typename DescriptionT = Aws::String>
122 Control& WithDescription(DescriptionT&& value) {
123 SetDescription(std::forward<DescriptionT>(value));
124 return *this;
125 }
127
129
133 inline const Aws::String& GetTestingInformation() const { return m_testingInformation; }
134 inline bool TestingInformationHasBeenSet() const { return m_testingInformationHasBeenSet; }
135 template <typename TestingInformationT = Aws::String>
136 void SetTestingInformation(TestingInformationT&& value) {
137 m_testingInformationHasBeenSet = true;
138 m_testingInformation = std::forward<TestingInformationT>(value);
139 }
140 template <typename TestingInformationT = Aws::String>
141 Control& WithTestingInformation(TestingInformationT&& value) {
142 SetTestingInformation(std::forward<TestingInformationT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::String& GetActionPlanTitle() const { return m_actionPlanTitle; }
152 inline bool ActionPlanTitleHasBeenSet() const { return m_actionPlanTitleHasBeenSet; }
153 template <typename ActionPlanTitleT = Aws::String>
154 void SetActionPlanTitle(ActionPlanTitleT&& value) {
155 m_actionPlanTitleHasBeenSet = true;
156 m_actionPlanTitle = std::forward<ActionPlanTitleT>(value);
157 }
158 template <typename ActionPlanTitleT = Aws::String>
159 Control& WithActionPlanTitle(ActionPlanTitleT&& value) {
160 SetActionPlanTitle(std::forward<ActionPlanTitleT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::String& GetActionPlanInstructions() const { return m_actionPlanInstructions; }
170 inline bool ActionPlanInstructionsHasBeenSet() const { return m_actionPlanInstructionsHasBeenSet; }
171 template <typename ActionPlanInstructionsT = Aws::String>
172 void SetActionPlanInstructions(ActionPlanInstructionsT&& value) {
173 m_actionPlanInstructionsHasBeenSet = true;
174 m_actionPlanInstructions = std::forward<ActionPlanInstructionsT>(value);
175 }
176 template <typename ActionPlanInstructionsT = Aws::String>
177 Control& WithActionPlanInstructions(ActionPlanInstructionsT&& value) {
178 SetActionPlanInstructions(std::forward<ActionPlanInstructionsT>(value));
179 return *this;
180 }
182
184
188 inline const Aws::String& GetControlSources() const { return m_controlSources; }
189 inline bool ControlSourcesHasBeenSet() const { return m_controlSourcesHasBeenSet; }
190 template <typename ControlSourcesT = Aws::String>
191 void SetControlSources(ControlSourcesT&& value) {
192 m_controlSourcesHasBeenSet = true;
193 m_controlSources = std::forward<ControlSourcesT>(value);
194 }
195 template <typename ControlSourcesT = Aws::String>
196 Control& WithControlSources(ControlSourcesT&& value) {
197 SetControlSources(std::forward<ControlSourcesT>(value));
198 return *this;
199 }
201
203
206 inline const Aws::Vector<ControlMappingSource>& GetControlMappingSources() const { return m_controlMappingSources; }
207 inline bool ControlMappingSourcesHasBeenSet() const { return m_controlMappingSourcesHasBeenSet; }
208 template <typename ControlMappingSourcesT = Aws::Vector<ControlMappingSource>>
209 void SetControlMappingSources(ControlMappingSourcesT&& value) {
210 m_controlMappingSourcesHasBeenSet = true;
211 m_controlMappingSources = std::forward<ControlMappingSourcesT>(value);
212 }
213 template <typename ControlMappingSourcesT = Aws::Vector<ControlMappingSource>>
214 Control& WithControlMappingSources(ControlMappingSourcesT&& value) {
215 SetControlMappingSources(std::forward<ControlMappingSourcesT>(value));
216 return *this;
217 }
218 template <typename ControlMappingSourcesT = ControlMappingSource>
219 Control& AddControlMappingSources(ControlMappingSourcesT&& value) {
220 m_controlMappingSourcesHasBeenSet = true;
221 m_controlMappingSources.emplace_back(std::forward<ControlMappingSourcesT>(value));
222 return *this;
223 }
225
227
230 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
231 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
232 template <typename CreatedAtT = Aws::Utils::DateTime>
233 void SetCreatedAt(CreatedAtT&& value) {
234 m_createdAtHasBeenSet = true;
235 m_createdAt = std::forward<CreatedAtT>(value);
236 }
237 template <typename CreatedAtT = Aws::Utils::DateTime>
238 Control& WithCreatedAt(CreatedAtT&& value) {
239 SetCreatedAt(std::forward<CreatedAtT>(value));
240 return *this;
241 }
243
245
248 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
249 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
250 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
251 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
252 m_lastUpdatedAtHasBeenSet = true;
253 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
254 }
255 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
256 Control& WithLastUpdatedAt(LastUpdatedAtT&& value) {
257 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
258 return *this;
259 }
261
263
266 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
267 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
268 template <typename CreatedByT = Aws::String>
269 void SetCreatedBy(CreatedByT&& value) {
270 m_createdByHasBeenSet = true;
271 m_createdBy = std::forward<CreatedByT>(value);
272 }
273 template <typename CreatedByT = Aws::String>
274 Control& WithCreatedBy(CreatedByT&& value) {
275 SetCreatedBy(std::forward<CreatedByT>(value));
276 return *this;
277 }
279
281
284 inline const Aws::String& GetLastUpdatedBy() const { return m_lastUpdatedBy; }
285 inline bool LastUpdatedByHasBeenSet() const { return m_lastUpdatedByHasBeenSet; }
286 template <typename LastUpdatedByT = Aws::String>
287 void SetLastUpdatedBy(LastUpdatedByT&& value) {
288 m_lastUpdatedByHasBeenSet = true;
289 m_lastUpdatedBy = std::forward<LastUpdatedByT>(value);
290 }
291 template <typename LastUpdatedByT = Aws::String>
292 Control& WithLastUpdatedBy(LastUpdatedByT&& value) {
293 SetLastUpdatedBy(std::forward<LastUpdatedByT>(value));
294 return *this;
295 }
297
299
302 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
303 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
304 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
305 void SetTags(TagsT&& value) {
306 m_tagsHasBeenSet = true;
307 m_tags = std::forward<TagsT>(value);
308 }
309 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
310 Control& WithTags(TagsT&& value) {
311 SetTags(std::forward<TagsT>(value));
312 return *this;
313 }
314 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
315 Control& AddTags(TagsKeyT&& key, TagsValueT&& value) {
316 m_tagsHasBeenSet = true;
317 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
318 return *this;
319 }
321
323
329 inline ControlState GetState() const { return m_state; }
330 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
331 inline void SetState(ControlState value) {
332 m_stateHasBeenSet = true;
333 m_state = value;
334 }
336 SetState(value);
337 return *this;
338 }
340 private:
341 Aws::String m_arn;
342
343 Aws::String m_id;
344
346
347 Aws::String m_name;
348
349 Aws::String m_description;
350
351 Aws::String m_testingInformation;
352
353 Aws::String m_actionPlanTitle;
354
355 Aws::String m_actionPlanInstructions;
356
357 Aws::String m_controlSources;
358
359 Aws::Vector<ControlMappingSource> m_controlMappingSources;
360
361 Aws::Utils::DateTime m_createdAt{};
362
363 Aws::Utils::DateTime m_lastUpdatedAt{};
364
365 Aws::String m_createdBy;
366
367 Aws::String m_lastUpdatedBy;
368
370
372 bool m_arnHasBeenSet = false;
373 bool m_idHasBeenSet = false;
374 bool m_typeHasBeenSet = false;
375 bool m_nameHasBeenSet = false;
376 bool m_descriptionHasBeenSet = false;
377 bool m_testingInformationHasBeenSet = false;
378 bool m_actionPlanTitleHasBeenSet = false;
379 bool m_actionPlanInstructionsHasBeenSet = false;
380 bool m_controlSourcesHasBeenSet = false;
381 bool m_controlMappingSourcesHasBeenSet = false;
382 bool m_createdAtHasBeenSet = false;
383 bool m_lastUpdatedAtHasBeenSet = false;
384 bool m_createdByHasBeenSet = false;
385 bool m_lastUpdatedByHasBeenSet = false;
386 bool m_tagsHasBeenSet = false;
387 bool m_stateHasBeenSet = false;
388};
389
390} // namespace Model
391} // namespace AuditManager
392} // namespace Aws
const Aws::String & GetCreatedBy() const
Definition Control.h:266
void SetCreatedBy(CreatedByT &&value)
Definition Control.h:269
const Aws::String & GetName() const
Definition Control.h:96
void SetName(NameT &&value)
Definition Control.h:99
void SetLastUpdatedBy(LastUpdatedByT &&value)
Definition Control.h:287
Control & WithTags(TagsT &&value)
Definition Control.h:310
void SetLastUpdatedAt(LastUpdatedAtT &&value)
Definition Control.h:251
Control & WithDescription(DescriptionT &&value)
Definition Control.h:122
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Control.h:302
Control & WithId(IdT &&value)
Definition Control.h:70
Control & WithArn(ArnT &&value)
Definition Control.h:52
Control & WithLastUpdatedAt(LastUpdatedAtT &&value)
Definition Control.h:256
ControlType GetType() const
Definition Control.h:80
const Aws::String & GetDescription() const
Definition Control.h:114
void SetActionPlanInstructions(ActionPlanInstructionsT &&value)
Definition Control.h:172
Control & WithName(NameT &&value)
Definition Control.h:104
const Aws::Vector< ControlMappingSource > & GetControlMappingSources() const
Definition Control.h:206
const Aws::String & GetControlSources() const
Definition Control.h:188
void SetControlSources(ControlSourcesT &&value)
Definition Control.h:191
AWS_AUDITMANAGER_API Control & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(DescriptionT &&value)
Definition Control.h:117
Control & WithTestingInformation(TestingInformationT &&value)
Definition Control.h:141
void SetTags(TagsT &&value)
Definition Control.h:305
bool TestingInformationHasBeenSet() const
Definition Control.h:134
void SetState(ControlState value)
Definition Control.h:331
bool ControlSourcesHasBeenSet() const
Definition Control.h:189
void SetTestingInformation(TestingInformationT &&value)
Definition Control.h:136
void SetControlMappingSources(ControlMappingSourcesT &&value)
Definition Control.h:209
Control & WithControlSources(ControlSourcesT &&value)
Definition Control.h:196
void SetActionPlanTitle(ActionPlanTitleT &&value)
Definition Control.h:154
const Aws::String & GetActionPlanTitle() const
Definition Control.h:151
void SetType(ControlType value)
Definition Control.h:82
void SetArn(ArnT &&value)
Definition Control.h:47
const Aws::String & GetId() const
Definition Control.h:62
bool ControlMappingSourcesHasBeenSet() const
Definition Control.h:207
Control & WithType(ControlType value)
Definition Control.h:86
const Aws::String & GetLastUpdatedBy() const
Definition Control.h:284
void SetCreatedAt(CreatedAtT &&value)
Definition Control.h:233
const Aws::Utils::DateTime & GetLastUpdatedAt() const
Definition Control.h:248
Control & WithCreatedBy(CreatedByT &&value)
Definition Control.h:274
Control & WithControlMappingSources(ControlMappingSourcesT &&value)
Definition Control.h:214
const Aws::String & GetTestingInformation() const
Definition Control.h:133
const Aws::String & GetArn() const
Definition Control.h:44
const Aws::String & GetActionPlanInstructions() const
Definition Control.h:169
AWS_AUDITMANAGER_API Control(Aws::Utils::Json::JsonView jsonValue)
Control & WithState(ControlState value)
Definition Control.h:335
Control & WithActionPlanInstructions(ActionPlanInstructionsT &&value)
Definition Control.h:177
Control & WithActionPlanTitle(ActionPlanTitleT &&value)
Definition Control.h:159
AWS_AUDITMANAGER_API Control()=default
Control & WithCreatedAt(CreatedAtT &&value)
Definition Control.h:238
AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
bool ActionPlanTitleHasBeenSet() const
Definition Control.h:152
Control & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Control.h:315
Control & AddControlMappingSources(ControlMappingSourcesT &&value)
Definition Control.h:219
Control & WithLastUpdatedBy(LastUpdatedByT &&value)
Definition Control.h:292
ControlState GetState() const
Definition Control.h:329
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Control.h:230
bool ActionPlanInstructionsHasBeenSet() const
Definition Control.h:170
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue