AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateDeploymentStrategyRequest.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/appconfig/model/GrowthType.h>
11#include <aws/appconfig/model/ReplicateTo.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace AppConfig
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_APPCONFIG_API CreateDeploymentStrategyRequest() = 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 "CreateDeploymentStrategy"; }
34
35 AWS_APPCONFIG_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template<typename NameT = Aws::String>
45 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
46 template<typename NameT = Aws::String>
47 CreateDeploymentStrategyRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
49
51
54 inline const Aws::String& GetDescription() const { return m_description; }
55 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
56 template<typename DescriptionT = Aws::String>
57 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
58 template<typename DescriptionT = Aws::String>
59 CreateDeploymentStrategyRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
61
63
66 inline int GetDeploymentDurationInMinutes() const { return m_deploymentDurationInMinutes; }
67 inline bool DeploymentDurationInMinutesHasBeenSet() const { return m_deploymentDurationInMinutesHasBeenSet; }
68 inline void SetDeploymentDurationInMinutes(int value) { m_deploymentDurationInMinutesHasBeenSet = true; m_deploymentDurationInMinutes = value; }
71
73
83 inline int GetFinalBakeTimeInMinutes() const { return m_finalBakeTimeInMinutes; }
84 inline bool FinalBakeTimeInMinutesHasBeenSet() const { return m_finalBakeTimeInMinutesHasBeenSet; }
85 inline void SetFinalBakeTimeInMinutes(int value) { m_finalBakeTimeInMinutesHasBeenSet = true; m_finalBakeTimeInMinutes = value; }
88
90
94 inline double GetGrowthFactor() const { return m_growthFactor; }
95 inline bool GrowthFactorHasBeenSet() const { return m_growthFactorHasBeenSet; }
96 inline void SetGrowthFactor(double value) { m_growthFactorHasBeenSet = true; m_growthFactor = value; }
97 inline CreateDeploymentStrategyRequest& WithGrowthFactor(double value) { SetGrowthFactor(value); return *this;}
99
101
121 inline GrowthType GetGrowthType() const { return m_growthType; }
122 inline bool GrowthTypeHasBeenSet() const { return m_growthTypeHasBeenSet; }
123 inline void SetGrowthType(GrowthType value) { m_growthTypeHasBeenSet = true; m_growthType = value; }
126
128
131 inline ReplicateTo GetReplicateTo() const { return m_replicateTo; }
132 inline bool ReplicateToHasBeenSet() const { return m_replicateToHasBeenSet; }
133 inline void SetReplicateTo(ReplicateTo value) { m_replicateToHasBeenSet = true; m_replicateTo = value; }
136
138
143 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
144 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
145 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
146 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
147 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
148 CreateDeploymentStrategyRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
149 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
150 CreateDeploymentStrategyRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
151 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
152 }
154 private:
155
156 Aws::String m_name;
157 bool m_nameHasBeenSet = false;
158
159 Aws::String m_description;
160 bool m_descriptionHasBeenSet = false;
161
162 int m_deploymentDurationInMinutes{0};
163 bool m_deploymentDurationInMinutesHasBeenSet = false;
164
165 int m_finalBakeTimeInMinutes{0};
166 bool m_finalBakeTimeInMinutesHasBeenSet = false;
167
168 double m_growthFactor{0.0};
169 bool m_growthFactorHasBeenSet = false;
170
171 GrowthType m_growthType{GrowthType::NOT_SET};
172 bool m_growthTypeHasBeenSet = false;
173
174 ReplicateTo m_replicateTo{ReplicateTo::NOT_SET};
175 bool m_replicateToHasBeenSet = false;
176
178 bool m_tagsHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace AppConfig
183} // 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