AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreateConfigurationProfileRequest.h
1
6#pragma once
7#include <aws/appconfig/AppConfigRequest.h>
8#include <aws/appconfig/AppConfig_EXPORTS.h>
9#include <aws/appconfig/model/Validator.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 AppConfig {
18namespace Model {
19
23 public:
24 AWS_APPCONFIG_API CreateConfigurationProfileRequest() = 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 "CreateConfigurationProfile"; }
31
32 AWS_APPCONFIG_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
39 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
40 template <typename ApplicationIdT = Aws::String>
41 void SetApplicationId(ApplicationIdT&& value) {
42 m_applicationIdHasBeenSet = true;
43 m_applicationId = std::forward<ApplicationIdT>(value);
44 }
45 template <typename ApplicationIdT = Aws::String>
47 SetApplicationId(std::forward<ApplicationIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template <typename NameT = Aws::String>
59 void SetName(NameT&& value) {
60 m_nameHasBeenSet = true;
61 m_name = std::forward<NameT>(value);
62 }
63 template <typename NameT = Aws::String>
65 SetName(std::forward<NameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 template <typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) {
78 m_descriptionHasBeenSet = true;
79 m_description = std::forward<DescriptionT>(value);
80 }
81 template <typename DescriptionT = Aws::String>
83 SetDescription(std::forward<DescriptionT>(value));
84 return *this;
85 }
87
89
106 inline const Aws::String& GetLocationUri() const { return m_locationUri; }
107 inline bool LocationUriHasBeenSet() const { return m_locationUriHasBeenSet; }
108 template <typename LocationUriT = Aws::String>
109 void SetLocationUri(LocationUriT&& value) {
110 m_locationUriHasBeenSet = true;
111 m_locationUri = std::forward<LocationUriT>(value);
112 }
113 template <typename LocationUriT = Aws::String>
115 SetLocationUri(std::forward<LocationUriT>(value));
116 return *this;
117 }
119
121
128 inline const Aws::String& GetRetrievalRoleArn() const { return m_retrievalRoleArn; }
129 inline bool RetrievalRoleArnHasBeenSet() const { return m_retrievalRoleArnHasBeenSet; }
130 template <typename RetrievalRoleArnT = Aws::String>
131 void SetRetrievalRoleArn(RetrievalRoleArnT&& value) {
132 m_retrievalRoleArnHasBeenSet = true;
133 m_retrievalRoleArn = std::forward<RetrievalRoleArnT>(value);
134 }
135 template <typename RetrievalRoleArnT = Aws::String>
137 SetRetrievalRoleArn(std::forward<RetrievalRoleArnT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::Vector<Validator>& GetValidators() const { return m_validators; }
147 inline bool ValidatorsHasBeenSet() const { return m_validatorsHasBeenSet; }
148 template <typename ValidatorsT = Aws::Vector<Validator>>
149 void SetValidators(ValidatorsT&& value) {
150 m_validatorsHasBeenSet = true;
151 m_validators = std::forward<ValidatorsT>(value);
152 }
153 template <typename ValidatorsT = Aws::Vector<Validator>>
155 SetValidators(std::forward<ValidatorsT>(value));
156 return *this;
157 }
158 template <typename ValidatorsT = Validator>
160 m_validatorsHasBeenSet = true;
161 m_validators.emplace_back(std::forward<ValidatorsT>(value));
162 return *this;
163 }
165
167
172 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
173 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
174 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
175 void SetTags(TagsT&& value) {
176 m_tagsHasBeenSet = true;
177 m_tags = std::forward<TagsT>(value);
178 }
179 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
181 SetTags(std::forward<TagsT>(value));
182 return *this;
183 }
184 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
185 CreateConfigurationProfileRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
186 m_tagsHasBeenSet = true;
187 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
188 return *this;
189 }
191
193
202 inline const Aws::String& GetType() const { return m_type; }
203 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
204 template <typename TypeT = Aws::String>
205 void SetType(TypeT&& value) {
206 m_typeHasBeenSet = true;
207 m_type = std::forward<TypeT>(value);
208 }
209 template <typename TypeT = Aws::String>
211 SetType(std::forward<TypeT>(value));
212 return *this;
213 }
215
217
225 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
226 inline bool KmsKeyIdentifierHasBeenSet() const { return m_kmsKeyIdentifierHasBeenSet; }
227 template <typename KmsKeyIdentifierT = Aws::String>
228 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
229 m_kmsKeyIdentifierHasBeenSet = true;
230 m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value);
231 }
232 template <typename KmsKeyIdentifierT = Aws::String>
234 SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value));
235 return *this;
236 }
238 private:
239 Aws::String m_applicationId;
240
241 Aws::String m_name;
242
243 Aws::String m_description;
244
245 Aws::String m_locationUri;
246
247 Aws::String m_retrievalRoleArn;
248
249 Aws::Vector<Validator> m_validators;
250
252
253 Aws::String m_type;
254
255 Aws::String m_kmsKeyIdentifier;
256 bool m_applicationIdHasBeenSet = false;
257 bool m_nameHasBeenSet = false;
258 bool m_descriptionHasBeenSet = false;
259 bool m_locationUriHasBeenSet = false;
260 bool m_retrievalRoleArnHasBeenSet = false;
261 bool m_validatorsHasBeenSet = false;
262 bool m_tagsHasBeenSet = false;
263 bool m_typeHasBeenSet = false;
264 bool m_kmsKeyIdentifierHasBeenSet = false;
265};
266
267} // namespace Model
268} // namespace AppConfig
269} // namespace Aws
CreateConfigurationProfileRequest & WithName(NameT &&value)
CreateConfigurationProfileRequest & WithKmsKeyIdentifier(KmsKeyIdentifierT &&value)
CreateConfigurationProfileRequest & WithLocationUri(LocationUriT &&value)
CreateConfigurationProfileRequest & WithRetrievalRoleArn(RetrievalRoleArnT &&value)
AWS_APPCONFIG_API CreateConfigurationProfileRequest()=default
CreateConfigurationProfileRequest & WithValidators(ValidatorsT &&value)
CreateConfigurationProfileRequest & WithApplicationId(ApplicationIdT &&value)
CreateConfigurationProfileRequest & WithDescription(DescriptionT &&value)
CreateConfigurationProfileRequest & AddValidators(ValidatorsT &&value)
CreateConfigurationProfileRequest & WithType(TypeT &&value)
CreateConfigurationProfileRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_APPCONFIG_API Aws::String SerializePayload() const override
CreateConfigurationProfileRequest & WithTags(TagsT &&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