AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
CreateControlRequest.h
1
6#pragma once
7#include <aws/assurance/AssuranceRequest.h>
8#include <aws/assurance/Assurance_EXPORTS.h>
9#include <aws/assurance/model/Requirement.h>
10#include <aws/assurance/model/WorkflowType.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Assurance {
18namespace Model {
19
23 public:
24 AWS_ASSURANCE_API CreateControlRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateControl"; }
31
32 AWS_ASSURANCE_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetEnvironmentArn() const { return m_environmentArn; }
41 inline bool EnvironmentArnHasBeenSet() const { return m_environmentArnHasBeenSet; }
42 template <typename EnvironmentArnT = Aws::String>
43 void SetEnvironmentArn(EnvironmentArnT&& value) {
44 m_environmentArnHasBeenSet = true;
45 m_environmentArn = std::forward<EnvironmentArnT>(value);
46 }
47 template <typename EnvironmentArnT = Aws::String>
48 CreateControlRequest& WithEnvironmentArn(EnvironmentArnT&& value) {
49 SetEnvironmentArn(std::forward<EnvironmentArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetFramework() const { return m_framework; }
59 inline bool FrameworkHasBeenSet() const { return m_frameworkHasBeenSet; }
60 template <typename FrameworkT = Aws::String>
61 void SetFramework(FrameworkT&& value) {
62 m_frameworkHasBeenSet = true;
63 m_framework = std::forward<FrameworkT>(value);
64 }
65 template <typename FrameworkT = Aws::String>
66 CreateControlRequest& WithFramework(FrameworkT&& value) {
67 SetFramework(std::forward<FrameworkT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetFrameworkVersion() const { return m_frameworkVersion; }
77 inline bool FrameworkVersionHasBeenSet() const { return m_frameworkVersionHasBeenSet; }
78 template <typename FrameworkVersionT = Aws::String>
79 void SetFrameworkVersion(FrameworkVersionT&& value) {
80 m_frameworkVersionHasBeenSet = true;
81 m_frameworkVersion = std::forward<FrameworkVersionT>(value);
82 }
83 template <typename FrameworkVersionT = Aws::String>
84 CreateControlRequest& WithFrameworkVersion(FrameworkVersionT&& value) {
85 SetFrameworkVersion(std::forward<FrameworkVersionT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetControlId() const { return m_controlId; }
96 inline bool ControlIdHasBeenSet() const { return m_controlIdHasBeenSet; }
97 template <typename ControlIdT = Aws::String>
98 void SetControlId(ControlIdT&& value) {
99 m_controlIdHasBeenSet = true;
100 m_controlId = std::forward<ControlIdT>(value);
101 }
102 template <typename ControlIdT = Aws::String>
103 CreateControlRequest& WithControlId(ControlIdT&& value) {
104 SetControlId(std::forward<ControlIdT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetParentControlId() const { return m_parentControlId; }
114 inline bool ParentControlIdHasBeenSet() const { return m_parentControlIdHasBeenSet; }
115 template <typename ParentControlIdT = Aws::String>
116 void SetParentControlId(ParentControlIdT&& value) {
117 m_parentControlIdHasBeenSet = true;
118 m_parentControlId = std::forward<ParentControlIdT>(value);
119 }
120 template <typename ParentControlIdT = Aws::String>
121 CreateControlRequest& WithParentControlId(ParentControlIdT&& value) {
122 SetParentControlId(std::forward<ParentControlIdT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetTitle() const { return m_title; }
132 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
133 template <typename TitleT = Aws::String>
134 void SetTitle(TitleT&& value) {
135 m_titleHasBeenSet = true;
136 m_title = std::forward<TitleT>(value);
137 }
138 template <typename TitleT = Aws::String>
140 SetTitle(std::forward<TitleT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::String& GetDescription() const { return m_description; }
150 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
151 template <typename DescriptionT = Aws::String>
152 void SetDescription(DescriptionT&& value) {
153 m_descriptionHasBeenSet = true;
154 m_description = std::forward<DescriptionT>(value);
155 }
156 template <typename DescriptionT = Aws::String>
157 CreateControlRequest& WithDescription(DescriptionT&& value) {
158 SetDescription(std::forward<DescriptionT>(value));
159 return *this;
160 }
162
164
169 inline const Aws::Vector<Requirement>& GetRequirements() const { return m_requirements; }
170 inline bool RequirementsHasBeenSet() const { return m_requirementsHasBeenSet; }
171 template <typename RequirementsT = Aws::Vector<Requirement>>
172 void SetRequirements(RequirementsT&& value) {
173 m_requirementsHasBeenSet = true;
174 m_requirements = std::forward<RequirementsT>(value);
175 }
176 template <typename RequirementsT = Aws::Vector<Requirement>>
177 CreateControlRequest& WithRequirements(RequirementsT&& value) {
178 SetRequirements(std::forward<RequirementsT>(value));
179 return *this;
180 }
181 template <typename RequirementsT = Requirement>
182 CreateControlRequest& AddRequirements(RequirementsT&& value) {
183 m_requirementsHasBeenSet = true;
184 m_requirements.emplace_back(std::forward<RequirementsT>(value));
185 return *this;
186 }
188
190
194 inline int GetDisplayOrder() const { return m_displayOrder; }
195 inline bool DisplayOrderHasBeenSet() const { return m_displayOrderHasBeenSet; }
196 inline void SetDisplayOrder(int value) {
197 m_displayOrderHasBeenSet = true;
198 m_displayOrder = value;
199 }
201 SetDisplayOrder(value);
202 return *this;
203 }
205
207
212 inline const Aws::Vector<Aws::String>& GetControlIntents() const { return m_controlIntents; }
213 inline bool ControlIntentsHasBeenSet() const { return m_controlIntentsHasBeenSet; }
214 template <typename ControlIntentsT = Aws::Vector<Aws::String>>
215 void SetControlIntents(ControlIntentsT&& value) {
216 m_controlIntentsHasBeenSet = true;
217 m_controlIntents = std::forward<ControlIntentsT>(value);
218 }
219 template <typename ControlIntentsT = Aws::Vector<Aws::String>>
220 CreateControlRequest& WithControlIntents(ControlIntentsT&& value) {
221 SetControlIntents(std::forward<ControlIntentsT>(value));
222 return *this;
223 }
224 template <typename ControlIntentsT = Aws::String>
225 CreateControlRequest& AddControlIntents(ControlIntentsT&& value) {
226 m_controlIntentsHasBeenSet = true;
227 m_controlIntents.emplace_back(std::forward<ControlIntentsT>(value));
228 return *this;
229 }
231
233
237 inline WorkflowType GetWorkflowType() const { return m_workflowType; }
238 inline bool WorkflowTypeHasBeenSet() const { return m_workflowTypeHasBeenSet; }
239 inline void SetWorkflowType(WorkflowType value) {
240 m_workflowTypeHasBeenSet = true;
241 m_workflowType = value;
242 }
244 SetWorkflowType(value);
245 return *this;
246 }
248 private:
249 Aws::String m_environmentArn;
250
251 Aws::String m_framework;
252
253 Aws::String m_frameworkVersion;
254
255 Aws::String m_controlId;
256
257 Aws::String m_parentControlId;
258
259 Aws::String m_title;
260
261 Aws::String m_description;
262
263 Aws::Vector<Requirement> m_requirements;
264
265 int m_displayOrder{0};
266
267 Aws::Vector<Aws::String> m_controlIntents;
268
269 WorkflowType m_workflowType{WorkflowType::NOT_SET};
270 bool m_environmentArnHasBeenSet = false;
271 bool m_frameworkHasBeenSet = false;
272 bool m_frameworkVersionHasBeenSet = false;
273 bool m_controlIdHasBeenSet = false;
274 bool m_parentControlIdHasBeenSet = false;
275 bool m_titleHasBeenSet = false;
276 bool m_descriptionHasBeenSet = false;
277 bool m_requirementsHasBeenSet = false;
278 bool m_displayOrderHasBeenSet = false;
279 bool m_controlIntentsHasBeenSet = false;
280 bool m_workflowTypeHasBeenSet = false;
281};
282
283} // namespace Model
284} // namespace Assurance
285} // namespace Aws
CreateControlRequest & WithParentControlId(ParentControlIdT &&value)
CreateControlRequest & AddControlIntents(ControlIntentsT &&value)
CreateControlRequest & WithFrameworkVersion(FrameworkVersionT &&value)
CreateControlRequest & WithRequirements(RequirementsT &&value)
AWS_ASSURANCE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateControlRequest & WithDescription(DescriptionT &&value)
void SetParentControlId(ParentControlIdT &&value)
CreateControlRequest & WithControlId(ControlIdT &&value)
CreateControlRequest & WithEnvironmentArn(EnvironmentArnT &&value)
CreateControlRequest & AddRequirements(RequirementsT &&value)
AWS_ASSURANCE_API CreateControlRequest()=default
CreateControlRequest & WithDisplayOrder(int value)
const Aws::Vector< Aws::String > & GetControlIntents() const
CreateControlRequest & WithFramework(FrameworkT &&value)
CreateControlRequest & WithWorkflowType(WorkflowType value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Requirement > & GetRequirements() const
void SetEnvironmentArn(EnvironmentArnT &&value)
AWS_ASSURANCE_API Aws::String SerializePayload() const override
void SetFrameworkVersion(FrameworkVersionT &&value)
CreateControlRequest & WithTitle(TitleT &&value)
CreateControlRequest & WithControlIntents(ControlIntentsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector