AWS SDK for C++

AWS SDK for C++ Version 1.11.868

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
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDisplayName() const { return m_displayName; }
59 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
60 template <typename DisplayNameT = Aws::String>
61 void SetDisplayName(DisplayNameT&& value) {
62 m_displayNameHasBeenSet = true;
63 m_displayName = std::forward<DisplayNameT>(value);
64 }
65 template <typename DisplayNameT = Aws::String>
67 SetDisplayName(std::forward<DisplayNameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template <typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) {
80 m_descriptionHasBeenSet = true;
81 m_description = std::forward<DescriptionT>(value);
82 }
83 template <typename DescriptionT = Aws::String>
85 SetDescription(std::forward<DescriptionT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetBusinessOverview() const { return m_businessOverview; }
95 inline bool BusinessOverviewHasBeenSet() const { return m_businessOverviewHasBeenSet; }
96 template <typename BusinessOverviewT = Aws::String>
97 void SetBusinessOverview(BusinessOverviewT&& value) {
98 m_businessOverviewHasBeenSet = true;
99 m_businessOverview = std::forward<BusinessOverviewT>(value);
100 }
101 template <typename BusinessOverviewT = Aws::String>
103 SetBusinessOverview(std::forward<BusinessOverviewT>(value));
104 return *this;
105 }
107
109
113 inline const Aws::Vector<Pillar>& GetPillars() const { return m_pillars; }
114 inline bool PillarsHasBeenSet() const { return m_pillarsHasBeenSet; }
115 template <typename PillarsT = Aws::Vector<Pillar>>
116 void SetPillars(PillarsT&& value) {
117 m_pillarsHasBeenSet = true;
118 m_pillars = std::forward<PillarsT>(value);
119 }
120 template <typename PillarsT = Aws::Vector<Pillar>>
122 SetPillars(std::forward<PillarsT>(value));
123 return *this;
124 }
126 m_pillarsHasBeenSet = true;
127 m_pillars.push_back(value);
128 return *this;
129 }
131
133
136 inline bool GetDeletionProtection() const { return m_deletionProtection; }
137 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
138 inline void SetDeletionProtection(bool value) {
139 m_deletionProtectionHasBeenSet = true;
140 m_deletionProtection = value;
141 }
144 return *this;
145 }
147
149
152 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
153 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
154 template <typename ExecutionRoleArnT = Aws::String>
155 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
156 m_executionRoleArnHasBeenSet = true;
157 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
158 }
159 template <typename ExecutionRoleArnT = Aws::String>
161 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
162 return *this;
163 }
165
167
171 inline const Aws::Vector<AggregationConfiguration>& GetAggregationConfiguration() const { return m_aggregationConfiguration; }
172 inline bool AggregationConfigurationHasBeenSet() const { return m_aggregationConfigurationHasBeenSet; }
173 template <typename AggregationConfigurationT = Aws::Vector<AggregationConfiguration>>
174 void SetAggregationConfiguration(AggregationConfigurationT&& value) {
175 m_aggregationConfigurationHasBeenSet = true;
176 m_aggregationConfiguration = std::forward<AggregationConfigurationT>(value);
177 }
178 template <typename AggregationConfigurationT = Aws::Vector<AggregationConfiguration>>
179 CreateAgentProfileRequest& WithAggregationConfiguration(AggregationConfigurationT&& value) {
180 SetAggregationConfiguration(std::forward<AggregationConfigurationT>(value));
181 return *this;
182 }
183 template <typename AggregationConfigurationT = AggregationConfiguration>
184 CreateAgentProfileRequest& AddAggregationConfiguration(AggregationConfigurationT&& value) {
185 m_aggregationConfigurationHasBeenSet = true;
186 m_aggregationConfiguration.emplace_back(std::forward<AggregationConfigurationT>(value));
187 return *this;
188 }
190
192
196 inline const Aws::String& GetClientToken() const { return m_clientToken; }
197 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
198 template <typename ClientTokenT = Aws::String>
199 void SetClientToken(ClientTokenT&& value) {
200 m_clientTokenHasBeenSet = true;
201 m_clientToken = std::forward<ClientTokenT>(value);
202 }
203 template <typename ClientTokenT = Aws::String>
205 SetClientToken(std::forward<ClientTokenT>(value));
206 return *this;
207 }
209
211
214 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
215 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
216 template <typename TagsT = Aws::Vector<Tag>>
217 void SetTags(TagsT&& value) {
218 m_tagsHasBeenSet = true;
219 m_tags = std::forward<TagsT>(value);
220 }
221 template <typename TagsT = Aws::Vector<Tag>>
223 SetTags(std::forward<TagsT>(value));
224 return *this;
225 }
226 template <typename TagsT = Tag>
228 m_tagsHasBeenSet = true;
229 m_tags.emplace_back(std::forward<TagsT>(value));
230 return *this;
231 }
233 private:
234 Aws::String m_name;
235
236 Aws::String m_displayName;
237
238 Aws::String m_description;
239
240 Aws::String m_businessOverview;
241
242 Aws::Vector<Pillar> m_pillars;
243
244 bool m_deletionProtection{false};
245
246 Aws::String m_executionRoleArn;
247
248 Aws::Vector<AggregationConfiguration> m_aggregationConfiguration;
249
251
252 Aws::Vector<Tag> m_tags;
253 bool m_nameHasBeenSet = false;
254 bool m_displayNameHasBeenSet = false;
255 bool m_descriptionHasBeenSet = false;
256 bool m_businessOverviewHasBeenSet = false;
257 bool m_pillarsHasBeenSet = false;
258 bool m_deletionProtectionHasBeenSet = false;
259 bool m_executionRoleArnHasBeenSet = false;
260 bool m_aggregationConfigurationHasBeenSet = false;
261 bool m_clientTokenHasBeenSet = true;
262 bool m_tagsHasBeenSet = false;
263};
264
265} // namespace Model
266} // namespace WellArchitected
267} // 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 CreateAgentProfileRequest()=default
CreateAgentProfileRequest & WithBusinessOverview(BusinessOverviewT &&value)
CreateAgentProfileRequest & WithDeletionProtection(bool value)
CreateAgentProfileRequest & WithAggregationConfiguration(AggregationConfigurationT &&value)
CreateAgentProfileRequest & WithPillars(PillarsT &&value)
const Aws::Vector< AggregationConfiguration > & GetAggregationConfiguration() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector