AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
Control.h
1
6#pragma once
7#include <aws/assurance/Assurance_EXPORTS.h>
8#include <aws/assurance/model/ControlType.h>
9#include <aws/assurance/model/ReleaseStatus.h>
10#include <aws/assurance/model/Requirement.h>
11#include <aws/assurance/model/WorkflowType.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/crt/cbor/Cbor.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Cbor {
22class CborValue;
23} // namespace Cbor
24} // namespace Utils
25namespace Assurance {
26namespace Model {
27
36class Control {
37 public:
38 AWS_ASSURANCE_API Control() = default;
39 AWS_ASSURANCE_API Control(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
40 AWS_ASSURANCE_API Control& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
41 AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
42
44
47 inline ControlType GetType() const { return m_type; }
48 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
49 inline void SetType(ControlType value) {
50 m_typeHasBeenSet = true;
51 m_type = value;
52 }
53 inline Control& WithType(ControlType value) {
54 SetType(value);
55 return *this;
56 }
58
60
63 inline const Aws::String& GetFramework() const { return m_framework; }
64 inline bool FrameworkHasBeenSet() const { return m_frameworkHasBeenSet; }
65 template <typename FrameworkT = Aws::String>
66 void SetFramework(FrameworkT&& value) {
67 m_frameworkHasBeenSet = true;
68 m_framework = std::forward<FrameworkT>(value);
69 }
70 template <typename FrameworkT = Aws::String>
71 Control& WithFramework(FrameworkT&& value) {
72 SetFramework(std::forward<FrameworkT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetControlId() const { return m_controlId; }
83 inline bool ControlIdHasBeenSet() const { return m_controlIdHasBeenSet; }
84 template <typename ControlIdT = Aws::String>
85 void SetControlId(ControlIdT&& value) {
86 m_controlIdHasBeenSet = true;
87 m_controlId = std::forward<ControlIdT>(value);
88 }
89 template <typename ControlIdT = Aws::String>
90 Control& WithControlId(ControlIdT&& value) {
91 SetControlId(std::forward<ControlIdT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetFrameworkVersion() const { return m_frameworkVersion; }
101 inline bool FrameworkVersionHasBeenSet() const { return m_frameworkVersionHasBeenSet; }
102 template <typename FrameworkVersionT = Aws::String>
103 void SetFrameworkVersion(FrameworkVersionT&& value) {
104 m_frameworkVersionHasBeenSet = true;
105 m_frameworkVersion = std::forward<FrameworkVersionT>(value);
106 }
107 template <typename FrameworkVersionT = Aws::String>
108 Control& WithFrameworkVersion(FrameworkVersionT&& value) {
109 SetFrameworkVersion(std::forward<FrameworkVersionT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetGroupId() const { return m_groupId; }
119 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
120 template <typename GroupIdT = Aws::String>
121 void SetGroupId(GroupIdT&& value) {
122 m_groupIdHasBeenSet = true;
123 m_groupId = std::forward<GroupIdT>(value);
124 }
125 template <typename GroupIdT = Aws::String>
126 Control& WithGroupId(GroupIdT&& value) {
127 SetGroupId(std::forward<GroupIdT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::String& GetTitle() const { return m_title; }
137 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
138 template <typename TitleT = Aws::String>
139 void SetTitle(TitleT&& value) {
140 m_titleHasBeenSet = true;
141 m_title = std::forward<TitleT>(value);
142 }
143 template <typename TitleT = Aws::String>
144 Control& WithTitle(TitleT&& value) {
145 SetTitle(std::forward<TitleT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::String& GetDescription() const { return m_description; }
155 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
156 template <typename DescriptionT = Aws::String>
157 void SetDescription(DescriptionT&& value) {
158 m_descriptionHasBeenSet = true;
159 m_description = std::forward<DescriptionT>(value);
160 }
161 template <typename DescriptionT = Aws::String>
162 Control& WithDescription(DescriptionT&& value) {
163 SetDescription(std::forward<DescriptionT>(value));
164 return *this;
165 }
167
169
173 inline const Aws::Vector<Requirement>& GetRequirements() const { return m_requirements; }
174 inline bool RequirementsHasBeenSet() const { return m_requirementsHasBeenSet; }
175 template <typename RequirementsT = Aws::Vector<Requirement>>
176 void SetRequirements(RequirementsT&& value) {
177 m_requirementsHasBeenSet = true;
178 m_requirements = std::forward<RequirementsT>(value);
179 }
180 template <typename RequirementsT = Aws::Vector<Requirement>>
181 Control& WithRequirements(RequirementsT&& value) {
182 SetRequirements(std::forward<RequirementsT>(value));
183 return *this;
184 }
185 template <typename RequirementsT = Requirement>
186 Control& AddRequirements(RequirementsT&& value) {
187 m_requirementsHasBeenSet = true;
188 m_requirements.emplace_back(std::forward<RequirementsT>(value));
189 return *this;
190 }
192
194
198 inline const Aws::Vector<Aws::String>& GetControlIntents() const { return m_controlIntents; }
199 inline bool ControlIntentsHasBeenSet() const { return m_controlIntentsHasBeenSet; }
200 template <typename ControlIntentsT = Aws::Vector<Aws::String>>
201 void SetControlIntents(ControlIntentsT&& value) {
202 m_controlIntentsHasBeenSet = true;
203 m_controlIntents = std::forward<ControlIntentsT>(value);
204 }
205 template <typename ControlIntentsT = Aws::Vector<Aws::String>>
206 Control& WithControlIntents(ControlIntentsT&& value) {
207 SetControlIntents(std::forward<ControlIntentsT>(value));
208 return *this;
209 }
210 template <typename ControlIntentsT = Aws::String>
211 Control& AddControlIntents(ControlIntentsT&& value) {
212 m_controlIntentsHasBeenSet = true;
213 m_controlIntents.emplace_back(std::forward<ControlIntentsT>(value));
214 return *this;
215 }
217
219
227 inline WorkflowType GetWorkflowType() const { return m_workflowType; }
228 inline bool WorkflowTypeHasBeenSet() const { return m_workflowTypeHasBeenSet; }
229 inline void SetWorkflowType(WorkflowType value) {
230 m_workflowTypeHasBeenSet = true;
231 m_workflowType = value;
232 }
234 SetWorkflowType(value);
235 return *this;
236 }
238
240
243 inline ReleaseStatus GetStatus() const { return m_status; }
244 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
245 inline void SetStatus(ReleaseStatus value) {
246 m_statusHasBeenSet = true;
247 m_status = value;
248 }
250 SetStatus(value);
251 return *this;
252 }
254
256
260 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
261 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
262 template <typename CreatedAtT = Aws::Utils::DateTime>
263 void SetCreatedAt(CreatedAtT&& value) {
264 m_createdAtHasBeenSet = true;
265 m_createdAt = std::forward<CreatedAtT>(value);
266 }
267 template <typename CreatedAtT = Aws::Utils::DateTime>
268 Control& WithCreatedAt(CreatedAtT&& value) {
269 SetCreatedAt(std::forward<CreatedAtT>(value));
270 return *this;
271 }
273
275
279 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
280 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
281 template <typename UpdatedAtT = Aws::Utils::DateTime>
282 void SetUpdatedAt(UpdatedAtT&& value) {
283 m_updatedAtHasBeenSet = true;
284 m_updatedAt = std::forward<UpdatedAtT>(value);
285 }
286 template <typename UpdatedAtT = Aws::Utils::DateTime>
287 Control& WithUpdatedAt(UpdatedAtT&& value) {
288 SetUpdatedAt(std::forward<UpdatedAtT>(value));
289 return *this;
290 }
292 private:
294
295 Aws::String m_framework;
296
297 Aws::String m_controlId;
298
299 Aws::String m_frameworkVersion;
300
301 Aws::String m_groupId;
302
303 Aws::String m_title;
304
305 Aws::String m_description;
306
307 Aws::Vector<Requirement> m_requirements;
308
309 Aws::Vector<Aws::String> m_controlIntents;
310
311 WorkflowType m_workflowType{WorkflowType::NOT_SET};
312
314
315 Aws::Utils::DateTime m_createdAt{};
316
317 Aws::Utils::DateTime m_updatedAt{};
318 bool m_typeHasBeenSet = false;
319 bool m_frameworkHasBeenSet = false;
320 bool m_controlIdHasBeenSet = false;
321 bool m_frameworkVersionHasBeenSet = false;
322 bool m_groupIdHasBeenSet = false;
323 bool m_titleHasBeenSet = false;
324 bool m_descriptionHasBeenSet = false;
325 bool m_requirementsHasBeenSet = false;
326 bool m_controlIntentsHasBeenSet = false;
327 bool m_workflowTypeHasBeenSet = false;
328 bool m_statusHasBeenSet = false;
329 bool m_createdAtHasBeenSet = false;
330 bool m_updatedAtHasBeenSet = false;
331};
332
333} // namespace Model
334} // namespace Assurance
335} // namespace Aws
void SetCreatedAt(CreatedAtT &&value)
Definition Control.h:263
Control & WithTitle(TitleT &&value)
Definition Control.h:144
const Aws::String & GetFramework() const
Definition Control.h:63
ControlType GetType() const
Definition Control.h:47
const Aws::String & GetDescription() const
Definition Control.h:154
const Aws::String & GetTitle() const
Definition Control.h:136
Control & WithFrameworkVersion(FrameworkVersionT &&value)
Definition Control.h:108
AWS_ASSURANCE_API Control & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetGroupId() const
Definition Control.h:118
bool RequirementsHasBeenSet() const
Definition Control.h:174
void SetFrameworkVersion(FrameworkVersionT &&value)
Definition Control.h:103
void SetControlId(ControlIdT &&value)
Definition Control.h:85
const Aws::Vector< Requirement > & GetRequirements() const
Definition Control.h:173
Control & WithFramework(FrameworkT &&value)
Definition Control.h:71
bool ControlIdHasBeenSet() const
Definition Control.h:83
Control & WithCreatedAt(CreatedAtT &&value)
Definition Control.h:268
Control & WithRequirements(RequirementsT &&value)
Definition Control.h:181
Control & WithWorkflowType(WorkflowType value)
Definition Control.h:233
const Aws::String & GetControlId() const
Definition Control.h:82
void SetDescription(DescriptionT &&value)
Definition Control.h:157
void SetUpdatedAt(UpdatedAtT &&value)
Definition Control.h:282
Control & WithUpdatedAt(UpdatedAtT &&value)
Definition Control.h:287
ReleaseStatus GetStatus() const
Definition Control.h:243
Control & WithControlIntents(ControlIntentsT &&value)
Definition Control.h:206
bool FrameworkHasBeenSet() const
Definition Control.h:64
AWS_ASSURANCE_API Control(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool UpdatedAtHasBeenSet() const
Definition Control.h:280
Control & AddRequirements(RequirementsT &&value)
Definition Control.h:186
bool WorkflowTypeHasBeenSet() const
Definition Control.h:228
void SetStatus(ReleaseStatus value)
Definition Control.h:245
AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_ASSURANCE_API Control()=default
void SetWorkflowType(WorkflowType value)
Definition Control.h:229
Control & AddControlIntents(ControlIntentsT &&value)
Definition Control.h:211
Control & WithStatus(ReleaseStatus value)
Definition Control.h:249
void SetControlIntents(ControlIntentsT &&value)
Definition Control.h:201
void SetTitle(TitleT &&value)
Definition Control.h:139
Control & WithType(ControlType value)
Definition Control.h:53
bool DescriptionHasBeenSet() const
Definition Control.h:155
void SetFramework(FrameworkT &&value)
Definition Control.h:66
const Aws::String & GetFrameworkVersion() const
Definition Control.h:100
WorkflowType GetWorkflowType() const
Definition Control.h:227
const Aws::Vector< Aws::String > & GetControlIntents() const
Definition Control.h:198
void SetGroupId(GroupIdT &&value)
Definition Control.h:121
bool FrameworkVersionHasBeenSet() const
Definition Control.h:101
void SetRequirements(RequirementsT &&value)
Definition Control.h:176
bool CreatedAtHasBeenSet() const
Definition Control.h:261
Control & WithGroupId(GroupIdT &&value)
Definition Control.h:126
Control & WithDescription(DescriptionT &&value)
Definition Control.h:162
Control & WithControlId(ControlIdT &&value)
Definition Control.h:90
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Control.h:260
void SetType(ControlType value)
Definition Control.h:49
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Control.h:279
bool ControlIntentsHasBeenSet() const
Definition Control.h:199
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector