AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
74 inline int GetDeploymentDurationInMinutes() const { return m_deploymentDurationInMinutes; }
75 inline bool DeploymentDurationInMinutesHasBeenSet() const { return m_deploymentDurationInMinutesHasBeenSet; }
76 inline void SetDeploymentDurationInMinutes(int value) {
77 m_deploymentDurationInMinutesHasBeenSet = true;
78 m_deploymentDurationInMinutes = value;
79 }
82 return *this;
83 }
85
87
97 inline int GetFinalBakeTimeInMinutes() const { return m_finalBakeTimeInMinutes; }
98 inline bool FinalBakeTimeInMinutesHasBeenSet() const { return m_finalBakeTimeInMinutesHasBeenSet; }
99 inline void SetFinalBakeTimeInMinutes(int value) {
100 m_finalBakeTimeInMinutesHasBeenSet = true;
101 m_finalBakeTimeInMinutes = value;
102 }
105 return *this;
106 }
108
110
114 inline double GetGrowthFactor() const { return m_growthFactor; }
115 inline bool GrowthFactorHasBeenSet() const { return m_growthFactorHasBeenSet; }
116 inline void SetGrowthFactor(double value) {
117 m_growthFactorHasBeenSet = true;
118 m_growthFactor = value;
119 }
121 SetGrowthFactor(value);
122 return *this;
123 }
125
127
147 inline GrowthType GetGrowthType() const { return m_growthType; }
148 inline bool GrowthTypeHasBeenSet() const { return m_growthTypeHasBeenSet; }
149 inline void SetGrowthType(GrowthType value) {
150 m_growthTypeHasBeenSet = true;
151 m_growthType = value;
152 }
154 SetGrowthType(value);
155 return *this;
156 }
158
160
163 inline ReplicateTo GetReplicateTo() const { return m_replicateTo; }
164 inline bool ReplicateToHasBeenSet() const { return m_replicateToHasBeenSet; }
165 inline void SetReplicateTo(ReplicateTo value) {
166 m_replicateToHasBeenSet = true;
167 m_replicateTo = value;
168 }
170 SetReplicateTo(value);
171 return *this;
172 }
174
176
181 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
182 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
183 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
184 void SetTags(TagsT&& value) {
185 m_tagsHasBeenSet = true;
186 m_tags = std::forward<TagsT>(value);
187 }
188 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
190 SetTags(std::forward<TagsT>(value));
191 return *this;
192 }
193 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
194 CreateDeploymentStrategyRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
195 m_tagsHasBeenSet = true;
196 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
197 return *this;
198 }
200 private:
201 Aws::String m_name;
202
203 Aws::String m_description;
204
205 int m_deploymentDurationInMinutes{0};
206
207 int m_finalBakeTimeInMinutes{0};
208
209 double m_growthFactor{0.0};
210
211 GrowthType m_growthType{GrowthType::NOT_SET};
212
213 ReplicateTo m_replicateTo{ReplicateTo::NOT_SET};
214
216 bool m_nameHasBeenSet = false;
217 bool m_descriptionHasBeenSet = false;
218 bool m_deploymentDurationInMinutesHasBeenSet = false;
219 bool m_finalBakeTimeInMinutesHasBeenSet = false;
220 bool m_growthFactorHasBeenSet = false;
221 bool m_growthTypeHasBeenSet = false;
222 bool m_replicateToHasBeenSet = false;
223 bool m_tagsHasBeenSet = false;
224};
225
226} // namespace Model
227} // namespace AppConfig
228} // 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