AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
45 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
46 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
47 inline CreateDeploymentStrategyRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
48 inline CreateDeploymentStrategyRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
49 inline CreateDeploymentStrategyRequest& WithName(const char* value) { SetName(value); return *this;}
51
53
56 inline const Aws::String& GetDescription() const{ return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
59 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
60 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
61 inline CreateDeploymentStrategyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
62 inline CreateDeploymentStrategyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
63 inline CreateDeploymentStrategyRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
65
67
70 inline int GetDeploymentDurationInMinutes() const{ return m_deploymentDurationInMinutes; }
71 inline bool DeploymentDurationInMinutesHasBeenSet() const { return m_deploymentDurationInMinutesHasBeenSet; }
72 inline void SetDeploymentDurationInMinutes(int value) { m_deploymentDurationInMinutesHasBeenSet = true; m_deploymentDurationInMinutes = value; }
75
77
87 inline int GetFinalBakeTimeInMinutes() const{ return m_finalBakeTimeInMinutes; }
88 inline bool FinalBakeTimeInMinutesHasBeenSet() const { return m_finalBakeTimeInMinutesHasBeenSet; }
89 inline void SetFinalBakeTimeInMinutes(int value) { m_finalBakeTimeInMinutesHasBeenSet = true; m_finalBakeTimeInMinutes = value; }
92
94
98 inline double GetGrowthFactor() const{ return m_growthFactor; }
99 inline bool GrowthFactorHasBeenSet() const { return m_growthFactorHasBeenSet; }
100 inline void SetGrowthFactor(double value) { m_growthFactorHasBeenSet = true; m_growthFactor = value; }
101 inline CreateDeploymentStrategyRequest& WithGrowthFactor(double value) { SetGrowthFactor(value); return *this;}
103
105
125 inline const GrowthType& GetGrowthType() const{ return m_growthType; }
126 inline bool GrowthTypeHasBeenSet() const { return m_growthTypeHasBeenSet; }
127 inline void SetGrowthType(const GrowthType& value) { m_growthTypeHasBeenSet = true; m_growthType = value; }
128 inline void SetGrowthType(GrowthType&& value) { m_growthTypeHasBeenSet = true; m_growthType = std::move(value); }
129 inline CreateDeploymentStrategyRequest& WithGrowthType(const GrowthType& value) { SetGrowthType(value); return *this;}
130 inline CreateDeploymentStrategyRequest& WithGrowthType(GrowthType&& value) { SetGrowthType(std::move(value)); return *this;}
132
134
137 inline const ReplicateTo& GetReplicateTo() const{ return m_replicateTo; }
138 inline bool ReplicateToHasBeenSet() const { return m_replicateToHasBeenSet; }
139 inline void SetReplicateTo(const ReplicateTo& value) { m_replicateToHasBeenSet = true; m_replicateTo = value; }
140 inline void SetReplicateTo(ReplicateTo&& value) { m_replicateToHasBeenSet = true; m_replicateTo = std::move(value); }
141 inline CreateDeploymentStrategyRequest& WithReplicateTo(const ReplicateTo& value) { SetReplicateTo(value); return *this;}
142 inline CreateDeploymentStrategyRequest& WithReplicateTo(ReplicateTo&& value) { SetReplicateTo(std::move(value)); return *this;}
144
146
151 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
152 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
153 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
154 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
156 inline CreateDeploymentStrategyRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
157 inline CreateDeploymentStrategyRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
158 inline CreateDeploymentStrategyRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
159 inline CreateDeploymentStrategyRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
160 inline CreateDeploymentStrategyRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
161 inline CreateDeploymentStrategyRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
162 inline CreateDeploymentStrategyRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
163 inline CreateDeploymentStrategyRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
165 private:
166
167 Aws::String m_name;
168 bool m_nameHasBeenSet = false;
169
170 Aws::String m_description;
171 bool m_descriptionHasBeenSet = false;
172
173 int m_deploymentDurationInMinutes;
174 bool m_deploymentDurationInMinutesHasBeenSet = false;
175
176 int m_finalBakeTimeInMinutes;
177 bool m_finalBakeTimeInMinutesHasBeenSet = false;
178
179 double m_growthFactor;
180 bool m_growthFactorHasBeenSet = false;
181
182 GrowthType m_growthType;
183 bool m_growthTypeHasBeenSet = false;
184
185 ReplicateTo m_replicateTo;
186 bool m_replicateToHasBeenSet = false;
187
189 bool m_tagsHasBeenSet = false;
190 };
191
192} // namespace Model
193} // namespace AppConfig
194} // namespace Aws
CreateDeploymentStrategyRequest & WithName(const Aws::String &value)
CreateDeploymentStrategyRequest & AddTags(const char *key, Aws::String &&value)
CreateDeploymentStrategyRequest & WithDescription(Aws::String &&value)
CreateDeploymentStrategyRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateDeploymentStrategyRequest & WithDescription(const Aws::String &value)
CreateDeploymentStrategyRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateDeploymentStrategyRequest & WithReplicateTo(const ReplicateTo &value)
CreateDeploymentStrategyRequest & WithGrowthType(GrowthType &&value)
CreateDeploymentStrategyRequest & WithReplicateTo(ReplicateTo &&value)
CreateDeploymentStrategyRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateDeploymentStrategyRequest & AddTags(Aws::String &&key, const char *value)
CreateDeploymentStrategyRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_APPCONFIG_API Aws::String SerializePayload() const override
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateDeploymentStrategyRequest & WithFinalBakeTimeInMinutes(int value)
CreateDeploymentStrategyRequest & WithName(const char *value)
CreateDeploymentStrategyRequest & WithDeploymentDurationInMinutes(int value)
CreateDeploymentStrategyRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateDeploymentStrategyRequest & WithGrowthType(const GrowthType &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateDeploymentStrategyRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateDeploymentStrategyRequest & WithGrowthFactor(double value)
CreateDeploymentStrategyRequest & WithName(Aws::String &&value)
CreateDeploymentStrategyRequest & AddTags(const char *key, const char *value)
CreateDeploymentStrategyRequest & WithDescription(const char *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