AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
StartDeploymentRequest.h
1
6#pragma once
7#include <aws/appconfig/AppConfigRequest.h>
8#include <aws/appconfig/AppConfig_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace AppConfig {
16namespace Model {
17
21 public:
22 AWS_APPCONFIG_API StartDeploymentRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "StartDeployment"; }
29
30 AWS_APPCONFIG_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
37 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
38 template <typename ApplicationIdT = Aws::String>
39 void SetApplicationId(ApplicationIdT&& value) {
40 m_applicationIdHasBeenSet = true;
41 m_applicationId = std::forward<ApplicationIdT>(value);
42 }
43 template <typename ApplicationIdT = Aws::String>
44 StartDeploymentRequest& WithApplicationId(ApplicationIdT&& value) {
45 SetApplicationId(std::forward<ApplicationIdT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
55 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
56 template <typename EnvironmentIdT = Aws::String>
57 void SetEnvironmentId(EnvironmentIdT&& value) {
58 m_environmentIdHasBeenSet = true;
59 m_environmentId = std::forward<EnvironmentIdT>(value);
60 }
61 template <typename EnvironmentIdT = Aws::String>
62 StartDeploymentRequest& WithEnvironmentId(EnvironmentIdT&& value) {
63 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetDeploymentStrategyId() const { return m_deploymentStrategyId; }
73 inline bool DeploymentStrategyIdHasBeenSet() const { return m_deploymentStrategyIdHasBeenSet; }
74 template <typename DeploymentStrategyIdT = Aws::String>
75 void SetDeploymentStrategyId(DeploymentStrategyIdT&& value) {
76 m_deploymentStrategyIdHasBeenSet = true;
77 m_deploymentStrategyId = std::forward<DeploymentStrategyIdT>(value);
78 }
79 template <typename DeploymentStrategyIdT = Aws::String>
80 StartDeploymentRequest& WithDeploymentStrategyId(DeploymentStrategyIdT&& value) {
81 SetDeploymentStrategyId(std::forward<DeploymentStrategyIdT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetConfigurationProfileId() const { return m_configurationProfileId; }
91 inline bool ConfigurationProfileIdHasBeenSet() const { return m_configurationProfileIdHasBeenSet; }
92 template <typename ConfigurationProfileIdT = Aws::String>
93 void SetConfigurationProfileId(ConfigurationProfileIdT&& value) {
94 m_configurationProfileIdHasBeenSet = true;
95 m_configurationProfileId = std::forward<ConfigurationProfileIdT>(value);
96 }
97 template <typename ConfigurationProfileIdT = Aws::String>
98 StartDeploymentRequest& WithConfigurationProfileId(ConfigurationProfileIdT&& value) {
99 SetConfigurationProfileId(std::forward<ConfigurationProfileIdT>(value));
100 return *this;
101 }
103
105
110 inline const Aws::String& GetConfigurationVersion() const { return m_configurationVersion; }
111 inline bool ConfigurationVersionHasBeenSet() const { return m_configurationVersionHasBeenSet; }
112 template <typename ConfigurationVersionT = Aws::String>
113 void SetConfigurationVersion(ConfigurationVersionT&& value) {
114 m_configurationVersionHasBeenSet = true;
115 m_configurationVersion = std::forward<ConfigurationVersionT>(value);
116 }
117 template <typename ConfigurationVersionT = Aws::String>
118 StartDeploymentRequest& WithConfigurationVersion(ConfigurationVersionT&& value) {
119 SetConfigurationVersion(std::forward<ConfigurationVersionT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::String& GetDescription() const { return m_description; }
129 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
130 template <typename DescriptionT = Aws::String>
131 void SetDescription(DescriptionT&& value) {
132 m_descriptionHasBeenSet = true;
133 m_description = std::forward<DescriptionT>(value);
134 }
135 template <typename DescriptionT = Aws::String>
137 SetDescription(std::forward<DescriptionT>(value));
138 return *this;
139 }
141
143
148 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
149 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
150 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
151 void SetTags(TagsT&& value) {
152 m_tagsHasBeenSet = true;
153 m_tags = std::forward<TagsT>(value);
154 }
155 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
157 SetTags(std::forward<TagsT>(value));
158 return *this;
159 }
160 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
161 StartDeploymentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
162 m_tagsHasBeenSet = true;
163 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
164 return *this;
165 }
167
169
173 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
174 inline bool KmsKeyIdentifierHasBeenSet() const { return m_kmsKeyIdentifierHasBeenSet; }
175 template <typename KmsKeyIdentifierT = Aws::String>
176 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
177 m_kmsKeyIdentifierHasBeenSet = true;
178 m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value);
179 }
180 template <typename KmsKeyIdentifierT = Aws::String>
181 StartDeploymentRequest& WithKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
182 SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value));
183 return *this;
184 }
186
188
192 inline const Aws::Map<Aws::String, Aws::String>& GetDynamicExtensionParameters() const { return m_dynamicExtensionParameters; }
193 inline bool DynamicExtensionParametersHasBeenSet() const { return m_dynamicExtensionParametersHasBeenSet; }
194 template <typename DynamicExtensionParametersT = Aws::Map<Aws::String, Aws::String>>
195 void SetDynamicExtensionParameters(DynamicExtensionParametersT&& value) {
196 m_dynamicExtensionParametersHasBeenSet = true;
197 m_dynamicExtensionParameters = std::forward<DynamicExtensionParametersT>(value);
198 }
199 template <typename DynamicExtensionParametersT = Aws::Map<Aws::String, Aws::String>>
200 StartDeploymentRequest& WithDynamicExtensionParameters(DynamicExtensionParametersT&& value) {
201 SetDynamicExtensionParameters(std::forward<DynamicExtensionParametersT>(value));
202 return *this;
203 }
204 template <typename DynamicExtensionParametersKeyT = Aws::String, typename DynamicExtensionParametersValueT = Aws::String>
205 StartDeploymentRequest& AddDynamicExtensionParameters(DynamicExtensionParametersKeyT&& key, DynamicExtensionParametersValueT&& value) {
206 m_dynamicExtensionParametersHasBeenSet = true;
207 m_dynamicExtensionParameters.emplace(std::forward<DynamicExtensionParametersKeyT>(key),
208 std::forward<DynamicExtensionParametersValueT>(value));
209 return *this;
210 }
212 private:
213 Aws::String m_applicationId;
214
215 Aws::String m_environmentId;
216
217 Aws::String m_deploymentStrategyId;
218
219 Aws::String m_configurationProfileId;
220
221 Aws::String m_configurationVersion;
222
223 Aws::String m_description;
224
226
227 Aws::String m_kmsKeyIdentifier;
228
229 Aws::Map<Aws::String, Aws::String> m_dynamicExtensionParameters;
230 bool m_applicationIdHasBeenSet = false;
231 bool m_environmentIdHasBeenSet = false;
232 bool m_deploymentStrategyIdHasBeenSet = false;
233 bool m_configurationProfileIdHasBeenSet = false;
234 bool m_configurationVersionHasBeenSet = false;
235 bool m_descriptionHasBeenSet = false;
236 bool m_tagsHasBeenSet = false;
237 bool m_kmsKeyIdentifierHasBeenSet = false;
238 bool m_dynamicExtensionParametersHasBeenSet = false;
239};
240
241} // namespace Model
242} // namespace AppConfig
243} // namespace Aws
StartDeploymentRequest & WithDynamicExtensionParameters(DynamicExtensionParametersT &&value)
AWS_APPCONFIG_API StartDeploymentRequest()=default
StartDeploymentRequest & WithConfigurationVersion(ConfigurationVersionT &&value)
StartDeploymentRequest & WithConfigurationProfileId(ConfigurationProfileIdT &&value)
StartDeploymentRequest & WithApplicationId(ApplicationIdT &&value)
void SetConfigurationVersion(ConfigurationVersionT &&value)
StartDeploymentRequest & WithDeploymentStrategyId(DeploymentStrategyIdT &&value)
void SetDeploymentStrategyId(DeploymentStrategyIdT &&value)
StartDeploymentRequest & WithDescription(DescriptionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetDynamicExtensionParameters() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetDynamicExtensionParameters(DynamicExtensionParametersT &&value)
StartDeploymentRequest & AddDynamicExtensionParameters(DynamicExtensionParametersKeyT &&key, DynamicExtensionParametersValueT &&value)
virtual const char * GetServiceRequestName() const override
StartDeploymentRequest & WithEnvironmentId(EnvironmentIdT &&value)
StartDeploymentRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
StartDeploymentRequest & WithKmsKeyIdentifier(KmsKeyIdentifierT &&value)
void SetConfigurationProfileId(ConfigurationProfileIdT &&value)
AWS_APPCONFIG_API Aws::String SerializePayload() const override
StartDeploymentRequest & 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