AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateConfigurationProfileRequest.h
1
6#pragma once
7#include <aws/appconfig/AppConfig_EXPORTS.h>
8#include <aws/appconfig/AppConfigRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/appconfig/model/Validator.h>
13#include <utility>
14
15namespace Aws
16{
17namespace AppConfig
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_APPCONFIG_API CreateConfigurationProfileRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateConfigurationProfile"; }
34
35 AWS_APPCONFIG_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
43 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
44 template<typename ApplicationIdT = Aws::String>
45 void SetApplicationId(ApplicationIdT&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::forward<ApplicationIdT>(value); }
46 template<typename ApplicationIdT = Aws::String>
47 CreateConfigurationProfileRequest& WithApplicationId(ApplicationIdT&& value) { SetApplicationId(std::forward<ApplicationIdT>(value)); return *this;}
49
51
54 inline const Aws::String& GetName() const { return m_name; }
55 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 template<typename NameT = Aws::String>
57 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
58 template<typename NameT = Aws::String>
59 CreateConfigurationProfileRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
61
63
66 inline const Aws::String& GetDescription() const { return m_description; }
67 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
68 template<typename DescriptionT = Aws::String>
69 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
70 template<typename DescriptionT = Aws::String>
71 CreateConfigurationProfileRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
73
75
92 inline const Aws::String& GetLocationUri() const { return m_locationUri; }
93 inline bool LocationUriHasBeenSet() const { return m_locationUriHasBeenSet; }
94 template<typename LocationUriT = Aws::String>
95 void SetLocationUri(LocationUriT&& value) { m_locationUriHasBeenSet = true; m_locationUri = std::forward<LocationUriT>(value); }
96 template<typename LocationUriT = Aws::String>
97 CreateConfigurationProfileRequest& WithLocationUri(LocationUriT&& value) { SetLocationUri(std::forward<LocationUriT>(value)); return *this;}
99
101
108 inline const Aws::String& GetRetrievalRoleArn() const { return m_retrievalRoleArn; }
109 inline bool RetrievalRoleArnHasBeenSet() const { return m_retrievalRoleArnHasBeenSet; }
110 template<typename RetrievalRoleArnT = Aws::String>
111 void SetRetrievalRoleArn(RetrievalRoleArnT&& value) { m_retrievalRoleArnHasBeenSet = true; m_retrievalRoleArn = std::forward<RetrievalRoleArnT>(value); }
112 template<typename RetrievalRoleArnT = Aws::String>
113 CreateConfigurationProfileRequest& WithRetrievalRoleArn(RetrievalRoleArnT&& value) { SetRetrievalRoleArn(std::forward<RetrievalRoleArnT>(value)); return *this;}
115
117
120 inline const Aws::Vector<Validator>& GetValidators() const { return m_validators; }
121 inline bool ValidatorsHasBeenSet() const { return m_validatorsHasBeenSet; }
122 template<typename ValidatorsT = Aws::Vector<Validator>>
123 void SetValidators(ValidatorsT&& value) { m_validatorsHasBeenSet = true; m_validators = std::forward<ValidatorsT>(value); }
124 template<typename ValidatorsT = Aws::Vector<Validator>>
125 CreateConfigurationProfileRequest& WithValidators(ValidatorsT&& value) { SetValidators(std::forward<ValidatorsT>(value)); return *this;}
126 template<typename ValidatorsT = Validator>
127 CreateConfigurationProfileRequest& AddValidators(ValidatorsT&& value) { m_validatorsHasBeenSet = true; m_validators.emplace_back(std::forward<ValidatorsT>(value)); return *this; }
129
131
136 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
137 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
138 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
139 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
140 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
141 CreateConfigurationProfileRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
142 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
143 CreateConfigurationProfileRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
144 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
145 }
147
149
158 inline const Aws::String& GetType() const { return m_type; }
159 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
160 template<typename TypeT = Aws::String>
161 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
162 template<typename TypeT = Aws::String>
163 CreateConfigurationProfileRequest& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
165
167
175 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
176 inline bool KmsKeyIdentifierHasBeenSet() const { return m_kmsKeyIdentifierHasBeenSet; }
177 template<typename KmsKeyIdentifierT = Aws::String>
178 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) { m_kmsKeyIdentifierHasBeenSet = true; m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value); }
179 template<typename KmsKeyIdentifierT = Aws::String>
180 CreateConfigurationProfileRequest& WithKmsKeyIdentifier(KmsKeyIdentifierT&& value) { SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value)); return *this;}
182 private:
183
184 Aws::String m_applicationId;
185 bool m_applicationIdHasBeenSet = false;
186
187 Aws::String m_name;
188 bool m_nameHasBeenSet = false;
189
190 Aws::String m_description;
191 bool m_descriptionHasBeenSet = false;
192
193 Aws::String m_locationUri;
194 bool m_locationUriHasBeenSet = false;
195
196 Aws::String m_retrievalRoleArn;
197 bool m_retrievalRoleArnHasBeenSet = false;
198
199 Aws::Vector<Validator> m_validators;
200 bool m_validatorsHasBeenSet = false;
201
203 bool m_tagsHasBeenSet = false;
204
205 Aws::String m_type;
206 bool m_typeHasBeenSet = false;
207
208 Aws::String m_kmsKeyIdentifier;
209 bool m_kmsKeyIdentifierHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace AppConfig
214} // 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