AWS SDK for C++

AWS SDK for C++ Version 1.11.845

Loading...
Searching...
No Matches
CreateDeploymentStrategyRequest.h
1
6#pragma once
7#include <aws/appconfig/AppConfigRequest.h>
8#include <aws/appconfig/AppConfig_EXPORTS.h>
9#include <aws/appconfig/model/GrowthType.h>
10#include <aws/appconfig/model/ReplicateTo.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace AppConfig {
18namespace Model {
19
23 public:
24 AWS_APPCONFIG_API CreateDeploymentStrategyRequest() = 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 "CreateDeploymentStrategy"; }
31
32 AWS_APPCONFIG_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetDescription() const { return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 template <typename DescriptionT = Aws::String>
59 void SetDescription(DescriptionT&& value) {
60 m_descriptionHasBeenSet = true;
61 m_description = std::forward<DescriptionT>(value);
62 }
63 template <typename DescriptionT = Aws::String>
65 SetDescription(std::forward<DescriptionT>(value));
66 return *this;
67 }
69
71
83 inline int GetDeploymentDurationInMinutes() const { return m_deploymentDurationInMinutes; }
84 inline bool DeploymentDurationInMinutesHasBeenSet() const { return m_deploymentDurationInMinutesHasBeenSet; }
85 inline void SetDeploymentDurationInMinutes(int value) {
86 m_deploymentDurationInMinutesHasBeenSet = true;
87 m_deploymentDurationInMinutes = value;
88 }
91 return *this;
92 }
94
96
106 inline int GetFinalBakeTimeInMinutes() const { return m_finalBakeTimeInMinutes; }
107 inline bool FinalBakeTimeInMinutesHasBeenSet() const { return m_finalBakeTimeInMinutesHasBeenSet; }
108 inline void SetFinalBakeTimeInMinutes(int value) {
109 m_finalBakeTimeInMinutesHasBeenSet = true;
110 m_finalBakeTimeInMinutes = value;
111 }
114 return *this;
115 }
117
119
123 inline double GetGrowthFactor() const { return m_growthFactor; }
124 inline bool GrowthFactorHasBeenSet() const { return m_growthFactorHasBeenSet; }
125 inline void SetGrowthFactor(double value) {
126 m_growthFactorHasBeenSet = true;
127 m_growthFactor = value;
128 }
130 SetGrowthFactor(value);
131 return *this;
132 }
134
136
156 inline GrowthType GetGrowthType() const { return m_growthType; }
157 inline bool GrowthTypeHasBeenSet() const { return m_growthTypeHasBeenSet; }
158 inline void SetGrowthType(GrowthType value) {
159 m_growthTypeHasBeenSet = true;
160 m_growthType = value;
161 }
163 SetGrowthType(value);
164 return *this;
165 }
167
169
172 inline ReplicateTo GetReplicateTo() const { return m_replicateTo; }
173 inline bool ReplicateToHasBeenSet() const { return m_replicateToHasBeenSet; }
174 inline void SetReplicateTo(ReplicateTo value) {
175 m_replicateToHasBeenSet = true;
176 m_replicateTo = value;
177 }
179 SetReplicateTo(value);
180 return *this;
181 }
183
185
190 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
191 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
192 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
193 void SetTags(TagsT&& value) {
194 m_tagsHasBeenSet = true;
195 m_tags = std::forward<TagsT>(value);
196 }
197 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
199 SetTags(std::forward<TagsT>(value));
200 return *this;
201 }
202 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
203 CreateDeploymentStrategyRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
204 m_tagsHasBeenSet = true;
205 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
206 return *this;
207 }
209 private:
210 Aws::String m_name;
211
212 Aws::String m_description;
213
214 int m_deploymentDurationInMinutes{0};
215
216 int m_finalBakeTimeInMinutes{0};
217
218 double m_growthFactor{0.0};
219
220 GrowthType m_growthType{GrowthType::NOT_SET};
221
222 ReplicateTo m_replicateTo{ReplicateTo::NOT_SET};
223
225 bool m_nameHasBeenSet = false;
226 bool m_descriptionHasBeenSet = false;
227 bool m_deploymentDurationInMinutesHasBeenSet = false;
228 bool m_finalBakeTimeInMinutesHasBeenSet = false;
229 bool m_growthFactorHasBeenSet = false;
230 bool m_growthTypeHasBeenSet = false;
231 bool m_replicateToHasBeenSet = false;
232 bool m_tagsHasBeenSet = false;
233};
234
235} // namespace Model
236} // namespace AppConfig
237} // namespace Aws
CreateDeploymentStrategyRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateDeploymentStrategyRequest & WithReplicateTo(ReplicateTo value)
CreateDeploymentStrategyRequest & WithTags(TagsT &&value)
AWS_APPCONFIG_API CreateDeploymentStrategyRequest()=default
CreateDeploymentStrategyRequest & WithGrowthType(GrowthType value)
AWS_APPCONFIG_API Aws::String SerializePayload() const override
CreateDeploymentStrategyRequest & WithFinalBakeTimeInMinutes(int value)
CreateDeploymentStrategyRequest & WithDeploymentDurationInMinutes(int value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateDeploymentStrategyRequest & WithName(NameT &&value)
CreateDeploymentStrategyRequest & WithGrowthFactor(double value)
CreateDeploymentStrategyRequest & WithDescription(DescriptionT &&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