AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateControlRequest.h
1
6#pragma once
7#include <aws/auditmanager/AuditManagerRequest.h>
8#include <aws/auditmanager/AuditManager_EXPORTS.h>
9#include <aws/auditmanager/model/CreateControlMappingSource.h>
10#include <aws/core/utils/memory/stl/AWSMap.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 AuditManager {
18namespace Model {
19
23 public:
24 AWS_AUDITMANAGER_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_AUDITMANAGER_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetDescription() const { return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 template <typename DescriptionT = Aws::String>
59 void SetDescription(DescriptionT&& value) {
60 m_descriptionHasBeenSet = true;
61 m_description = std::forward<DescriptionT>(value);
62 }
63 template <typename DescriptionT = Aws::String>
64 CreateControlRequest& WithDescription(DescriptionT&& value) {
65 SetDescription(std::forward<DescriptionT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetTestingInformation() const { return m_testingInformation; }
75 inline bool TestingInformationHasBeenSet() const { return m_testingInformationHasBeenSet; }
76 template <typename TestingInformationT = Aws::String>
77 void SetTestingInformation(TestingInformationT&& value) {
78 m_testingInformationHasBeenSet = true;
79 m_testingInformation = std::forward<TestingInformationT>(value);
80 }
81 template <typename TestingInformationT = Aws::String>
82 CreateControlRequest& WithTestingInformation(TestingInformationT&& value) {
83 SetTestingInformation(std::forward<TestingInformationT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetActionPlanTitle() const { return m_actionPlanTitle; }
93 inline bool ActionPlanTitleHasBeenSet() const { return m_actionPlanTitleHasBeenSet; }
94 template <typename ActionPlanTitleT = Aws::String>
95 void SetActionPlanTitle(ActionPlanTitleT&& value) {
96 m_actionPlanTitleHasBeenSet = true;
97 m_actionPlanTitle = std::forward<ActionPlanTitleT>(value);
98 }
99 template <typename ActionPlanTitleT = Aws::String>
100 CreateControlRequest& WithActionPlanTitle(ActionPlanTitleT&& value) {
101 SetActionPlanTitle(std::forward<ActionPlanTitleT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetActionPlanInstructions() const { return m_actionPlanInstructions; }
111 inline bool ActionPlanInstructionsHasBeenSet() const { return m_actionPlanInstructionsHasBeenSet; }
112 template <typename ActionPlanInstructionsT = Aws::String>
113 void SetActionPlanInstructions(ActionPlanInstructionsT&& value) {
114 m_actionPlanInstructionsHasBeenSet = true;
115 m_actionPlanInstructions = std::forward<ActionPlanInstructionsT>(value);
116 }
117 template <typename ActionPlanInstructionsT = Aws::String>
118 CreateControlRequest& WithActionPlanInstructions(ActionPlanInstructionsT&& value) {
119 SetActionPlanInstructions(std::forward<ActionPlanInstructionsT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::Vector<CreateControlMappingSource>& GetControlMappingSources() const { return m_controlMappingSources; }
129 inline bool ControlMappingSourcesHasBeenSet() const { return m_controlMappingSourcesHasBeenSet; }
130 template <typename ControlMappingSourcesT = Aws::Vector<CreateControlMappingSource>>
131 void SetControlMappingSources(ControlMappingSourcesT&& value) {
132 m_controlMappingSourcesHasBeenSet = true;
133 m_controlMappingSources = std::forward<ControlMappingSourcesT>(value);
134 }
135 template <typename ControlMappingSourcesT = Aws::Vector<CreateControlMappingSource>>
136 CreateControlRequest& WithControlMappingSources(ControlMappingSourcesT&& value) {
137 SetControlMappingSources(std::forward<ControlMappingSourcesT>(value));
138 return *this;
139 }
140 template <typename ControlMappingSourcesT = CreateControlMappingSource>
141 CreateControlRequest& AddControlMappingSources(ControlMappingSourcesT&& value) {
142 m_controlMappingSourcesHasBeenSet = true;
143 m_controlMappingSources.emplace_back(std::forward<ControlMappingSourcesT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
153 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
154 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
155 void SetTags(TagsT&& value) {
156 m_tagsHasBeenSet = true;
157 m_tags = std::forward<TagsT>(value);
158 }
159 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
161 SetTags(std::forward<TagsT>(value));
162 return *this;
163 }
164 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
165 CreateControlRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
166 m_tagsHasBeenSet = true;
167 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
168 return *this;
169 }
171 private:
172 Aws::String m_name;
173
174 Aws::String m_description;
175
176 Aws::String m_testingInformation;
177
178 Aws::String m_actionPlanTitle;
179
180 Aws::String m_actionPlanInstructions;
181
182 Aws::Vector<CreateControlMappingSource> m_controlMappingSources;
183
185 bool m_nameHasBeenSet = false;
186 bool m_descriptionHasBeenSet = false;
187 bool m_testingInformationHasBeenSet = false;
188 bool m_actionPlanTitleHasBeenSet = false;
189 bool m_actionPlanInstructionsHasBeenSet = false;
190 bool m_controlMappingSourcesHasBeenSet = false;
191 bool m_tagsHasBeenSet = false;
192};
193
194} // namespace Model
195} // namespace AuditManager
196} // namespace Aws
AWS_AUDITMANAGER_API CreateControlRequest()=default
CreateControlRequest & WithTestingInformation(TestingInformationT &&value)
void SetActionPlanInstructions(ActionPlanInstructionsT &&value)
AWS_AUDITMANAGER_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateControlRequest & WithDescription(DescriptionT &&value)
CreateControlRequest & WithActionPlanInstructions(ActionPlanInstructionsT &&value)
CreateControlRequest & AddControlMappingSources(ControlMappingSourcesT &&value)
CreateControlRequest & WithName(NameT &&value)
CreateControlRequest & WithTags(TagsT &&value)
CreateControlRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Vector< CreateControlMappingSource > & GetControlMappingSources() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetControlMappingSources(ControlMappingSourcesT &&value)
CreateControlRequest & WithActionPlanTitle(ActionPlanTitleT &&value)
CreateControlRequest & WithControlMappingSources(ControlMappingSourcesT &&value)
void SetTestingInformation(TestingInformationT &&value)
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