AWS SDK for C++

AWS SDK for C++ Version 1.11.908

Loading...
Searching...
No Matches
CreateAgentProfileRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/wellarchitected/WellArchitectedRequest.h>
11#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
12#include <aws/wellarchitected/model/AggregationConfiguration.h>
13#include <aws/wellarchitected/model/Pillar.h>
14#include <aws/wellarchitected/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace WellArchitected {
20namespace Model {
21
25 public:
26 AWS_WELLARCHITECTED_API CreateAgentProfileRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateAgentProfile"; }
33
34 AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override;
35
39 AWS_WELLARCHITECTED_API EndpointParameters GetEndpointContextParams() const override;
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template <typename NameT = Aws::String>
48 void SetName(NameT&& value) {
49 m_nameHasBeenSet = true;
50 m_name = std::forward<NameT>(value);
51 }
52 template <typename NameT = Aws::String>
54 SetName(std::forward<NameT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetDisplayName() const { return m_displayName; }
64 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
65 template <typename DisplayNameT = Aws::String>
66 void SetDisplayName(DisplayNameT&& value) {
67 m_displayNameHasBeenSet = true;
68 m_displayName = std::forward<DisplayNameT>(value);
69 }
70 template <typename DisplayNameT = Aws::String>
72 SetDisplayName(std::forward<DisplayNameT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetDescription() const { return m_description; }
82 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
83 template <typename DescriptionT = Aws::String>
84 void SetDescription(DescriptionT&& value) {
85 m_descriptionHasBeenSet = true;
86 m_description = std::forward<DescriptionT>(value);
87 }
88 template <typename DescriptionT = Aws::String>
90 SetDescription(std::forward<DescriptionT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetBusinessOverview() const { return m_businessOverview; }
100 inline bool BusinessOverviewHasBeenSet() const { return m_businessOverviewHasBeenSet; }
101 template <typename BusinessOverviewT = Aws::String>
102 void SetBusinessOverview(BusinessOverviewT&& value) {
103 m_businessOverviewHasBeenSet = true;
104 m_businessOverview = std::forward<BusinessOverviewT>(value);
105 }
106 template <typename BusinessOverviewT = Aws::String>
108 SetBusinessOverview(std::forward<BusinessOverviewT>(value));
109 return *this;
110 }
112
114
118 inline const Aws::Vector<Pillar>& GetPillars() const { return m_pillars; }
119 inline bool PillarsHasBeenSet() const { return m_pillarsHasBeenSet; }
120 template <typename PillarsT = Aws::Vector<Pillar>>
121 void SetPillars(PillarsT&& value) {
122 m_pillarsHasBeenSet = true;
123 m_pillars = std::forward<PillarsT>(value);
124 }
125 template <typename PillarsT = Aws::Vector<Pillar>>
127 SetPillars(std::forward<PillarsT>(value));
128 return *this;
129 }
131 m_pillarsHasBeenSet = true;
132 m_pillars.push_back(value);
133 return *this;
134 }
136
138
141 inline bool GetDeletionProtection() const { return m_deletionProtection; }
142 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
143 inline void SetDeletionProtection(bool value) {
144 m_deletionProtectionHasBeenSet = true;
145 m_deletionProtection = value;
146 }
149 return *this;
150 }
152
154
157 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
158 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
159 template <typename ExecutionRoleArnT = Aws::String>
160 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
161 m_executionRoleArnHasBeenSet = true;
162 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
163 }
164 template <typename ExecutionRoleArnT = Aws::String>
166 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
167 return *this;
168 }
170
172
176 inline const Aws::Vector<AggregationConfiguration>& GetAggregationConfiguration() const { return m_aggregationConfiguration; }
177 inline bool AggregationConfigurationHasBeenSet() const { return m_aggregationConfigurationHasBeenSet; }
178 template <typename AggregationConfigurationT = Aws::Vector<AggregationConfiguration>>
179 void SetAggregationConfiguration(AggregationConfigurationT&& value) {
180 m_aggregationConfigurationHasBeenSet = true;
181 m_aggregationConfiguration = std::forward<AggregationConfigurationT>(value);
182 }
183 template <typename AggregationConfigurationT = Aws::Vector<AggregationConfiguration>>
184 CreateAgentProfileRequest& WithAggregationConfiguration(AggregationConfigurationT&& value) {
185 SetAggregationConfiguration(std::forward<AggregationConfigurationT>(value));
186 return *this;
187 }
188 template <typename AggregationConfigurationT = AggregationConfiguration>
189 CreateAgentProfileRequest& AddAggregationConfiguration(AggregationConfigurationT&& value) {
190 m_aggregationConfigurationHasBeenSet = true;
191 m_aggregationConfiguration.emplace_back(std::forward<AggregationConfigurationT>(value));
192 return *this;
193 }
195
197
201 inline const Aws::String& GetClientToken() const { return m_clientToken; }
202 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
203 template <typename ClientTokenT = Aws::String>
204 void SetClientToken(ClientTokenT&& value) {
205 m_clientTokenHasBeenSet = true;
206 m_clientToken = std::forward<ClientTokenT>(value);
207 }
208 template <typename ClientTokenT = Aws::String>
210 SetClientToken(std::forward<ClientTokenT>(value));
211 return *this;
212 }
214
216
219 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
220 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
221 template <typename TagsT = Aws::Vector<Tag>>
222 void SetTags(TagsT&& value) {
223 m_tagsHasBeenSet = true;
224 m_tags = std::forward<TagsT>(value);
225 }
226 template <typename TagsT = Aws::Vector<Tag>>
228 SetTags(std::forward<TagsT>(value));
229 return *this;
230 }
231 template <typename TagsT = Tag>
233 m_tagsHasBeenSet = true;
234 m_tags.emplace_back(std::forward<TagsT>(value));
235 return *this;
236 }
238 private:
239 Aws::String m_name;
240
241 Aws::String m_displayName;
242
243 Aws::String m_description;
244
245 Aws::String m_businessOverview;
246
247 Aws::Vector<Pillar> m_pillars;
248
249 bool m_deletionProtection{false};
250
251 Aws::String m_executionRoleArn;
252
253 Aws::Vector<AggregationConfiguration> m_aggregationConfiguration;
254
256
257 Aws::Vector<Tag> m_tags;
258 bool m_nameHasBeenSet = false;
259 bool m_displayNameHasBeenSet = false;
260 bool m_descriptionHasBeenSet = false;
261 bool m_businessOverviewHasBeenSet = false;
262 bool m_pillarsHasBeenSet = false;
263 bool m_deletionProtectionHasBeenSet = false;
264 bool m_executionRoleArnHasBeenSet = false;
265 bool m_aggregationConfigurationHasBeenSet = false;
266 bool m_clientTokenHasBeenSet = true;
267 bool m_tagsHasBeenSet = false;
268};
269
270} // namespace Model
271} // namespace WellArchitected
272} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
CreateAgentProfileRequest & WithDisplayName(DisplayNameT &&value)
CreateAgentProfileRequest & WithExecutionRoleArn(ExecutionRoleArnT &&value)
void SetAggregationConfiguration(AggregationConfigurationT &&value)
AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override
CreateAgentProfileRequest & WithDescription(DescriptionT &&value)
CreateAgentProfileRequest & WithClientToken(ClientTokenT &&value)
CreateAgentProfileRequest & AddAggregationConfiguration(AggregationConfigurationT &&value)
AWS_WELLARCHITECTED_API EndpointParameters GetEndpointContextParams() const override
AWS_WELLARCHITECTED_API CreateAgentProfileRequest()=default
CreateAgentProfileRequest & WithBusinessOverview(BusinessOverviewT &&value)
CreateAgentProfileRequest & WithDeletionProtection(bool value)
CreateAgentProfileRequest & WithAggregationConfiguration(AggregationConfigurationT &&value)
CreateAgentProfileRequest & WithPillars(PillarsT &&value)
const Aws::Vector< AggregationConfiguration > & GetAggregationConfiguration() const
Aws::Endpoint::EndpointParameters EndpointParameters
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector