AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
UpdateControlRequest.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 UpdateControlRequest() = 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 "UpdateControl"; }
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 UpdateControlRequest& 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 UpdateControlRequest& 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 UpdateControlRequest& 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 UpdateControlRequest& 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 UpdateControlRequest& 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 UpdateControlRequest& WithDescription(DescriptionT&& value) {
158 SetDescription(std::forward<DescriptionT>(value));
159 return *this;
160 }
162
164
168 inline const Aws::Vector<Requirement>& GetRequirements() const { return m_requirements; }
169 inline bool RequirementsHasBeenSet() const { return m_requirementsHasBeenSet; }
170 template <typename RequirementsT = Aws::Vector<Requirement>>
171 void SetRequirements(RequirementsT&& value) {
172 m_requirementsHasBeenSet = true;
173 m_requirements = std::forward<RequirementsT>(value);
174 }
175 template <typename RequirementsT = Aws::Vector<Requirement>>
176 UpdateControlRequest& WithRequirements(RequirementsT&& value) {
177 SetRequirements(std::forward<RequirementsT>(value));
178 return *this;
179 }
180 template <typename RequirementsT = Requirement>
181 UpdateControlRequest& AddRequirements(RequirementsT&& value) {
182 m_requirementsHasBeenSet = true;
183 m_requirements.emplace_back(std::forward<RequirementsT>(value));
184 return *this;
185 }
187
189
193 inline int GetDisplayOrder() const { return m_displayOrder; }
194 inline bool DisplayOrderHasBeenSet() const { return m_displayOrderHasBeenSet; }
195 inline void SetDisplayOrder(int value) {
196 m_displayOrderHasBeenSet = true;
197 m_displayOrder = value;
198 }
200 SetDisplayOrder(value);
201 return *this;
202 }
204
206
211 inline const Aws::Vector<Aws::String>& GetControlIntents() const { return m_controlIntents; }
212 inline bool ControlIntentsHasBeenSet() const { return m_controlIntentsHasBeenSet; }
213 template <typename ControlIntentsT = Aws::Vector<Aws::String>>
214 void SetControlIntents(ControlIntentsT&& value) {
215 m_controlIntentsHasBeenSet = true;
216 m_controlIntents = std::forward<ControlIntentsT>(value);
217 }
218 template <typename ControlIntentsT = Aws::Vector<Aws::String>>
219 UpdateControlRequest& WithControlIntents(ControlIntentsT&& value) {
220 SetControlIntents(std::forward<ControlIntentsT>(value));
221 return *this;
222 }
223 template <typename ControlIntentsT = Aws::String>
224 UpdateControlRequest& AddControlIntents(ControlIntentsT&& value) {
225 m_controlIntentsHasBeenSet = true;
226 m_controlIntents.emplace_back(std::forward<ControlIntentsT>(value));
227 return *this;
228 }
230
232
236 inline WorkflowType GetWorkflowType() const { return m_workflowType; }
237 inline bool WorkflowTypeHasBeenSet() const { return m_workflowTypeHasBeenSet; }
238 inline void SetWorkflowType(WorkflowType value) {
239 m_workflowTypeHasBeenSet = true;
240 m_workflowType = value;
241 }
243 SetWorkflowType(value);
244 return *this;
245 }
247 private:
248 Aws::String m_environmentArn;
249
250 Aws::String m_framework;
251
252 Aws::String m_frameworkVersion;
253
254 Aws::String m_controlId;
255
256 Aws::String m_parentControlId;
257
258 Aws::String m_title;
259
260 Aws::String m_description;
261
262 Aws::Vector<Requirement> m_requirements;
263
264 int m_displayOrder{0};
265
266 Aws::Vector<Aws::String> m_controlIntents;
267
268 WorkflowType m_workflowType{WorkflowType::NOT_SET};
269 bool m_environmentArnHasBeenSet = false;
270 bool m_frameworkHasBeenSet = false;
271 bool m_frameworkVersionHasBeenSet = false;
272 bool m_controlIdHasBeenSet = false;
273 bool m_parentControlIdHasBeenSet = false;
274 bool m_titleHasBeenSet = false;
275 bool m_descriptionHasBeenSet = false;
276 bool m_requirementsHasBeenSet = false;
277 bool m_displayOrderHasBeenSet = false;
278 bool m_controlIntentsHasBeenSet = false;
279 bool m_workflowTypeHasBeenSet = false;
280};
281
282} // namespace Model
283} // namespace Assurance
284} // namespace Aws
UpdateControlRequest & AddRequirements(RequirementsT &&value)
UpdateControlRequest & AddControlIntents(ControlIntentsT &&value)
const Aws::Vector< Aws::String > & GetControlIntents() const
void SetEnvironmentArn(EnvironmentArnT &&value)
AWS_ASSURANCE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_ASSURANCE_API UpdateControlRequest()=default
UpdateControlRequest & WithDisplayOrder(int value)
AWS_ASSURANCE_API Aws::String SerializePayload() const override
UpdateControlRequest & WithFrameworkVersion(FrameworkVersionT &&value)
UpdateControlRequest & WithRequirements(RequirementsT &&value)
UpdateControlRequest & WithParentControlId(ParentControlIdT &&value)
void SetFrameworkVersion(FrameworkVersionT &&value)
UpdateControlRequest & WithControlId(ControlIdT &&value)
UpdateControlRequest & WithWorkflowType(WorkflowType value)
void SetParentControlId(ParentControlIdT &&value)
UpdateControlRequest & WithFramework(FrameworkT &&value)
UpdateControlRequest & WithDescription(DescriptionT &&value)
UpdateControlRequest & WithEnvironmentArn(EnvironmentArnT &&value)
const Aws::Vector< Requirement > & GetRequirements() const
UpdateControlRequest & WithTitle(TitleT &&value)
virtual const char * GetServiceRequestName() const override
UpdateControlRequest & 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