AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
UpdateControlRequest.h
1
6#pragma once
7#include <aws/auditmanager/AuditManagerRequest.h>
8#include <aws/auditmanager/AuditManager_EXPORTS.h>
9#include <aws/auditmanager/model/ControlMappingSource.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace AuditManager {
17namespace Model {
18
22 public:
23 AWS_AUDITMANAGER_API UpdateControlRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateControl"; }
30
31 AWS_AUDITMANAGER_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetControlId() const { return m_controlId; }
38 inline bool ControlIdHasBeenSet() const { return m_controlIdHasBeenSet; }
39 template <typename ControlIdT = Aws::String>
40 void SetControlId(ControlIdT&& value) {
41 m_controlIdHasBeenSet = true;
42 m_controlId = std::forward<ControlIdT>(value);
43 }
44 template <typename ControlIdT = Aws::String>
45 UpdateControlRequest& WithControlId(ControlIdT&& value) {
46 SetControlId(std::forward<ControlIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetName() const { return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 template <typename NameT = Aws::String>
58 void SetName(NameT&& value) {
59 m_nameHasBeenSet = true;
60 m_name = std::forward<NameT>(value);
61 }
62 template <typename NameT = Aws::String>
64 SetName(std::forward<NameT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetDescription() const { return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 template <typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) {
77 m_descriptionHasBeenSet = true;
78 m_description = std::forward<DescriptionT>(value);
79 }
80 template <typename DescriptionT = Aws::String>
81 UpdateControlRequest& WithDescription(DescriptionT&& value) {
82 SetDescription(std::forward<DescriptionT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetTestingInformation() const { return m_testingInformation; }
92 inline bool TestingInformationHasBeenSet() const { return m_testingInformationHasBeenSet; }
93 template <typename TestingInformationT = Aws::String>
94 void SetTestingInformation(TestingInformationT&& value) {
95 m_testingInformationHasBeenSet = true;
96 m_testingInformation = std::forward<TestingInformationT>(value);
97 }
98 template <typename TestingInformationT = Aws::String>
99 UpdateControlRequest& WithTestingInformation(TestingInformationT&& value) {
100 SetTestingInformation(std::forward<TestingInformationT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetActionPlanTitle() const { return m_actionPlanTitle; }
110 inline bool ActionPlanTitleHasBeenSet() const { return m_actionPlanTitleHasBeenSet; }
111 template <typename ActionPlanTitleT = Aws::String>
112 void SetActionPlanTitle(ActionPlanTitleT&& value) {
113 m_actionPlanTitleHasBeenSet = true;
114 m_actionPlanTitle = std::forward<ActionPlanTitleT>(value);
115 }
116 template <typename ActionPlanTitleT = Aws::String>
117 UpdateControlRequest& WithActionPlanTitle(ActionPlanTitleT&& value) {
118 SetActionPlanTitle(std::forward<ActionPlanTitleT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::String& GetActionPlanInstructions() const { return m_actionPlanInstructions; }
128 inline bool ActionPlanInstructionsHasBeenSet() const { return m_actionPlanInstructionsHasBeenSet; }
129 template <typename ActionPlanInstructionsT = Aws::String>
130 void SetActionPlanInstructions(ActionPlanInstructionsT&& value) {
131 m_actionPlanInstructionsHasBeenSet = true;
132 m_actionPlanInstructions = std::forward<ActionPlanInstructionsT>(value);
133 }
134 template <typename ActionPlanInstructionsT = Aws::String>
135 UpdateControlRequest& WithActionPlanInstructions(ActionPlanInstructionsT&& value) {
136 SetActionPlanInstructions(std::forward<ActionPlanInstructionsT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::Vector<ControlMappingSource>& GetControlMappingSources() const { return m_controlMappingSources; }
146 inline bool ControlMappingSourcesHasBeenSet() const { return m_controlMappingSourcesHasBeenSet; }
147 template <typename ControlMappingSourcesT = Aws::Vector<ControlMappingSource>>
148 void SetControlMappingSources(ControlMappingSourcesT&& value) {
149 m_controlMappingSourcesHasBeenSet = true;
150 m_controlMappingSources = std::forward<ControlMappingSourcesT>(value);
151 }
152 template <typename ControlMappingSourcesT = Aws::Vector<ControlMappingSource>>
153 UpdateControlRequest& WithControlMappingSources(ControlMappingSourcesT&& value) {
154 SetControlMappingSources(std::forward<ControlMappingSourcesT>(value));
155 return *this;
156 }
157 template <typename ControlMappingSourcesT = ControlMappingSource>
158 UpdateControlRequest& AddControlMappingSources(ControlMappingSourcesT&& value) {
159 m_controlMappingSourcesHasBeenSet = true;
160 m_controlMappingSources.emplace_back(std::forward<ControlMappingSourcesT>(value));
161 return *this;
162 }
164 private:
165 Aws::String m_controlId;
166
167 Aws::String m_name;
168
169 Aws::String m_description;
170
171 Aws::String m_testingInformation;
172
173 Aws::String m_actionPlanTitle;
174
175 Aws::String m_actionPlanInstructions;
176
177 Aws::Vector<ControlMappingSource> m_controlMappingSources;
178 bool m_controlIdHasBeenSet = false;
179 bool m_nameHasBeenSet = false;
180 bool m_descriptionHasBeenSet = false;
181 bool m_testingInformationHasBeenSet = false;
182 bool m_actionPlanTitleHasBeenSet = false;
183 bool m_actionPlanInstructionsHasBeenSet = false;
184 bool m_controlMappingSourcesHasBeenSet = false;
185};
186
187} // namespace Model
188} // namespace AuditManager
189} // namespace Aws
UpdateControlRequest & WithTestingInformation(TestingInformationT &&value)
void SetTestingInformation(TestingInformationT &&value)
UpdateControlRequest & WithDescription(DescriptionT &&value)
UpdateControlRequest & WithControlId(ControlIdT &&value)
void SetControlMappingSources(ControlMappingSourcesT &&value)
AWS_AUDITMANAGER_API UpdateControlRequest()=default
UpdateControlRequest & WithControlMappingSources(ControlMappingSourcesT &&value)
UpdateControlRequest & WithActionPlanInstructions(ActionPlanInstructionsT &&value)
UpdateControlRequest & WithName(NameT &&value)
UpdateControlRequest & AddControlMappingSources(ControlMappingSourcesT &&value)
AWS_AUDITMANAGER_API Aws::String SerializePayload() const override
void SetActionPlanInstructions(ActionPlanInstructionsT &&value)
const Aws::Vector< ControlMappingSource > & GetControlMappingSources() const
UpdateControlRequest & WithActionPlanTitle(ActionPlanTitleT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector