AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Control.h
1
6#pragma once
7#include <aws/auditmanager/AuditManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/auditmanager/model/ControlType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/auditmanager/model/ControlState.h>
14#include <aws/auditmanager/model/ControlMappingSource.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace AuditManager
28{
29namespace Model
30{
31
37 class Control
38 {
39 public:
40 AWS_AUDITMANAGER_API Control() = default;
41 AWS_AUDITMANAGER_API Control(Aws::Utils::Json::JsonView jsonValue);
42 AWS_AUDITMANAGER_API Control& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetArn() const { return m_arn; }
51 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
52 template<typename ArnT = Aws::String>
53 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
54 template<typename ArnT = Aws::String>
55 Control& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
66 template<typename IdT = Aws::String>
67 Control& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
69
71
74 inline ControlType GetType() const { return m_type; }
75 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
76 inline void SetType(ControlType value) { m_typeHasBeenSet = true; m_type = value; }
77 inline Control& WithType(ControlType value) { SetType(value); return *this;}
79
81
84 inline const Aws::String& GetName() const { return m_name; }
85 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
86 template<typename NameT = Aws::String>
87 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
88 template<typename NameT = Aws::String>
89 Control& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
91
93
96 inline const Aws::String& GetDescription() const { return m_description; }
97 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
98 template<typename DescriptionT = Aws::String>
99 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
100 template<typename DescriptionT = Aws::String>
101 Control& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
103
105
109 inline const Aws::String& GetTestingInformation() const { return m_testingInformation; }
110 inline bool TestingInformationHasBeenSet() const { return m_testingInformationHasBeenSet; }
111 template<typename TestingInformationT = Aws::String>
112 void SetTestingInformation(TestingInformationT&& value) { m_testingInformationHasBeenSet = true; m_testingInformation = std::forward<TestingInformationT>(value); }
113 template<typename TestingInformationT = Aws::String>
114 Control& WithTestingInformation(TestingInformationT&& value) { SetTestingInformation(std::forward<TestingInformationT>(value)); return *this;}
116
118
121 inline const Aws::String& GetActionPlanTitle() const { return m_actionPlanTitle; }
122 inline bool ActionPlanTitleHasBeenSet() const { return m_actionPlanTitleHasBeenSet; }
123 template<typename ActionPlanTitleT = Aws::String>
124 void SetActionPlanTitle(ActionPlanTitleT&& value) { m_actionPlanTitleHasBeenSet = true; m_actionPlanTitle = std::forward<ActionPlanTitleT>(value); }
125 template<typename ActionPlanTitleT = Aws::String>
126 Control& WithActionPlanTitle(ActionPlanTitleT&& value) { SetActionPlanTitle(std::forward<ActionPlanTitleT>(value)); return *this;}
128
130
133 inline const Aws::String& GetActionPlanInstructions() const { return m_actionPlanInstructions; }
134 inline bool ActionPlanInstructionsHasBeenSet() const { return m_actionPlanInstructionsHasBeenSet; }
135 template<typename ActionPlanInstructionsT = Aws::String>
136 void SetActionPlanInstructions(ActionPlanInstructionsT&& value) { m_actionPlanInstructionsHasBeenSet = true; m_actionPlanInstructions = std::forward<ActionPlanInstructionsT>(value); }
137 template<typename ActionPlanInstructionsT = Aws::String>
138 Control& WithActionPlanInstructions(ActionPlanInstructionsT&& value) { SetActionPlanInstructions(std::forward<ActionPlanInstructionsT>(value)); return *this;}
140
142
146 inline const Aws::String& GetControlSources() const { return m_controlSources; }
147 inline bool ControlSourcesHasBeenSet() const { return m_controlSourcesHasBeenSet; }
148 template<typename ControlSourcesT = Aws::String>
149 void SetControlSources(ControlSourcesT&& value) { m_controlSourcesHasBeenSet = true; m_controlSources = std::forward<ControlSourcesT>(value); }
150 template<typename ControlSourcesT = Aws::String>
151 Control& WithControlSources(ControlSourcesT&& value) { SetControlSources(std::forward<ControlSourcesT>(value)); return *this;}
153
155
158 inline const Aws::Vector<ControlMappingSource>& GetControlMappingSources() const { return m_controlMappingSources; }
159 inline bool ControlMappingSourcesHasBeenSet() const { return m_controlMappingSourcesHasBeenSet; }
160 template<typename ControlMappingSourcesT = Aws::Vector<ControlMappingSource>>
161 void SetControlMappingSources(ControlMappingSourcesT&& value) { m_controlMappingSourcesHasBeenSet = true; m_controlMappingSources = std::forward<ControlMappingSourcesT>(value); }
162 template<typename ControlMappingSourcesT = Aws::Vector<ControlMappingSource>>
163 Control& WithControlMappingSources(ControlMappingSourcesT&& value) { SetControlMappingSources(std::forward<ControlMappingSourcesT>(value)); return *this;}
164 template<typename ControlMappingSourcesT = ControlMappingSource>
165 Control& AddControlMappingSources(ControlMappingSourcesT&& value) { m_controlMappingSourcesHasBeenSet = true; m_controlMappingSources.emplace_back(std::forward<ControlMappingSourcesT>(value)); return *this; }
167
169
172 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
173 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
174 template<typename CreatedAtT = Aws::Utils::DateTime>
175 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
176 template<typename CreatedAtT = Aws::Utils::DateTime>
177 Control& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
179
181
184 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
185 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
186 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
187 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
188 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
189 Control& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
191
193
196 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
197 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
198 template<typename CreatedByT = Aws::String>
199 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
200 template<typename CreatedByT = Aws::String>
201 Control& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
203
205
208 inline const Aws::String& GetLastUpdatedBy() const { return m_lastUpdatedBy; }
209 inline bool LastUpdatedByHasBeenSet() const { return m_lastUpdatedByHasBeenSet; }
210 template<typename LastUpdatedByT = Aws::String>
211 void SetLastUpdatedBy(LastUpdatedByT&& value) { m_lastUpdatedByHasBeenSet = true; m_lastUpdatedBy = std::forward<LastUpdatedByT>(value); }
212 template<typename LastUpdatedByT = Aws::String>
213 Control& WithLastUpdatedBy(LastUpdatedByT&& value) { SetLastUpdatedBy(std::forward<LastUpdatedByT>(value)); return *this;}
215
217
220 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
221 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
222 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
223 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
224 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
225 Control& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
226 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
227 Control& AddTags(TagsKeyT&& key, TagsValueT&& value) {
228 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
229 }
231
233
239 inline ControlState GetState() const { return m_state; }
240 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
241 inline void SetState(ControlState value) { m_stateHasBeenSet = true; m_state = value; }
242 inline Control& WithState(ControlState value) { SetState(value); return *this;}
244 private:
245
246 Aws::String m_arn;
247 bool m_arnHasBeenSet = false;
248
249 Aws::String m_id;
250 bool m_idHasBeenSet = false;
251
253 bool m_typeHasBeenSet = false;
254
255 Aws::String m_name;
256 bool m_nameHasBeenSet = false;
257
258 Aws::String m_description;
259 bool m_descriptionHasBeenSet = false;
260
261 Aws::String m_testingInformation;
262 bool m_testingInformationHasBeenSet = false;
263
264 Aws::String m_actionPlanTitle;
265 bool m_actionPlanTitleHasBeenSet = false;
266
267 Aws::String m_actionPlanInstructions;
268 bool m_actionPlanInstructionsHasBeenSet = false;
269
270 Aws::String m_controlSources;
271 bool m_controlSourcesHasBeenSet = false;
272
273 Aws::Vector<ControlMappingSource> m_controlMappingSources;
274 bool m_controlMappingSourcesHasBeenSet = false;
275
276 Aws::Utils::DateTime m_createdAt{};
277 bool m_createdAtHasBeenSet = false;
278
279 Aws::Utils::DateTime m_lastUpdatedAt{};
280 bool m_lastUpdatedAtHasBeenSet = false;
281
282 Aws::String m_createdBy;
283 bool m_createdByHasBeenSet = false;
284
285 Aws::String m_lastUpdatedBy;
286 bool m_lastUpdatedByHasBeenSet = false;
287
289 bool m_tagsHasBeenSet = false;
290
292 bool m_stateHasBeenSet = false;
293 };
294
295} // namespace Model
296} // namespace AuditManager
297} // namespace Aws
const Aws::String & GetCreatedBy() const
Definition Control.h:196
void SetCreatedBy(CreatedByT &&value)
Definition Control.h:199
const Aws::String & GetName() const
Definition Control.h:84
void SetName(NameT &&value)
Definition Control.h:87
void SetLastUpdatedBy(LastUpdatedByT &&value)
Definition Control.h:211
Control & WithTags(TagsT &&value)
Definition Control.h:225
void SetLastUpdatedAt(LastUpdatedAtT &&value)
Definition Control.h:187
Control & WithDescription(DescriptionT &&value)
Definition Control.h:101
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Control.h:220
Control & WithId(IdT &&value)
Definition Control.h:67
Control & WithArn(ArnT &&value)
Definition Control.h:55
Control & WithLastUpdatedAt(LastUpdatedAtT &&value)
Definition Control.h:189
ControlType GetType() const
Definition Control.h:74
const Aws::String & GetDescription() const
Definition Control.h:96
void SetActionPlanInstructions(ActionPlanInstructionsT &&value)
Definition Control.h:136
Control & WithName(NameT &&value)
Definition Control.h:89
const Aws::Vector< ControlMappingSource > & GetControlMappingSources() const
Definition Control.h:158
const Aws::String & GetControlSources() const
Definition Control.h:146
void SetControlSources(ControlSourcesT &&value)
Definition Control.h:149
AWS_AUDITMANAGER_API Control & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(DescriptionT &&value)
Definition Control.h:99
Control & WithTestingInformation(TestingInformationT &&value)
Definition Control.h:114
void SetTags(TagsT &&value)
Definition Control.h:223
bool TestingInformationHasBeenSet() const
Definition Control.h:110
void SetState(ControlState value)
Definition Control.h:241
bool ControlSourcesHasBeenSet() const
Definition Control.h:147
void SetTestingInformation(TestingInformationT &&value)
Definition Control.h:112
void SetControlMappingSources(ControlMappingSourcesT &&value)
Definition Control.h:161
Control & WithControlSources(ControlSourcesT &&value)
Definition Control.h:151
void SetActionPlanTitle(ActionPlanTitleT &&value)
Definition Control.h:124
const Aws::String & GetActionPlanTitle() const
Definition Control.h:121
void SetType(ControlType value)
Definition Control.h:76
void SetArn(ArnT &&value)
Definition Control.h:53
const Aws::String & GetId() const
Definition Control.h:62
bool ControlMappingSourcesHasBeenSet() const
Definition Control.h:159
Control & WithType(ControlType value)
Definition Control.h:77
const Aws::String & GetLastUpdatedBy() const
Definition Control.h:208
void SetCreatedAt(CreatedAtT &&value)
Definition Control.h:175
const Aws::Utils::DateTime & GetLastUpdatedAt() const
Definition Control.h:184
Control & WithCreatedBy(CreatedByT &&value)
Definition Control.h:201
Control & WithControlMappingSources(ControlMappingSourcesT &&value)
Definition Control.h:163
const Aws::String & GetTestingInformation() const
Definition Control.h:109
const Aws::String & GetArn() const
Definition Control.h:50
const Aws::String & GetActionPlanInstructions() const
Definition Control.h:133
AWS_AUDITMANAGER_API Control(Aws::Utils::Json::JsonView jsonValue)
Control & WithState(ControlState value)
Definition Control.h:242
Control & WithActionPlanInstructions(ActionPlanInstructionsT &&value)
Definition Control.h:138
Control & WithActionPlanTitle(ActionPlanTitleT &&value)
Definition Control.h:126
AWS_AUDITMANAGER_API Control()=default
Control & WithCreatedAt(CreatedAtT &&value)
Definition Control.h:177
AWS_AUDITMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
bool ActionPlanTitleHasBeenSet() const
Definition Control.h:122
Control & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Control.h:227
Control & AddControlMappingSources(ControlMappingSourcesT &&value)
Definition Control.h:165
Control & WithLastUpdatedBy(LastUpdatedByT &&value)
Definition Control.h:213
ControlState GetState() const
Definition Control.h:239
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Control.h:172
bool ActionPlanInstructionsHasBeenSet() const
Definition Control.h:134
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