AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DeploymentStrategy.h
1
6#pragma once
7#include <aws/appconfig/AppConfig_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appconfig/model/GrowthType.h>
10#include <aws/appconfig/model/ReplicateTo.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AppConfig
24{
25namespace Model
26{
27
29 {
30 public:
31 AWS_APPCONFIG_API DeploymentStrategy();
32 AWS_APPCONFIG_API DeploymentStrategy(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const;
35
36
38
41 inline const Aws::String& GetId() const{ return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
44 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
45 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
46 inline DeploymentStrategy& WithId(const Aws::String& value) { SetId(value); return *this;}
47 inline DeploymentStrategy& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
48 inline DeploymentStrategy& WithId(const char* value) { SetId(value); return *this;}
50
52
55 inline const Aws::String& GetName() const{ return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
58 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
59 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
60 inline DeploymentStrategy& WithName(const Aws::String& value) { SetName(value); return *this;}
61 inline DeploymentStrategy& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
62 inline DeploymentStrategy& WithName(const char* value) { SetName(value); return *this;}
64
66
69 inline const Aws::String& GetDescription() const{ return m_description; }
70 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
71 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
72 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
73 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
74 inline DeploymentStrategy& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
75 inline DeploymentStrategy& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
76 inline DeploymentStrategy& WithDescription(const char* value) { SetDescription(value); return *this;}
78
80
83 inline int GetDeploymentDurationInMinutes() const{ return m_deploymentDurationInMinutes; }
84 inline bool DeploymentDurationInMinutesHasBeenSet() const { return m_deploymentDurationInMinutesHasBeenSet; }
85 inline void SetDeploymentDurationInMinutes(int value) { m_deploymentDurationInMinutesHasBeenSet = true; m_deploymentDurationInMinutes = value; }
88
90
93 inline const GrowthType& GetGrowthType() const{ return m_growthType; }
94 inline bool GrowthTypeHasBeenSet() const { return m_growthTypeHasBeenSet; }
95 inline void SetGrowthType(const GrowthType& value) { m_growthTypeHasBeenSet = true; m_growthType = value; }
96 inline void SetGrowthType(GrowthType&& value) { m_growthTypeHasBeenSet = true; m_growthType = std::move(value); }
97 inline DeploymentStrategy& WithGrowthType(const GrowthType& value) { SetGrowthType(value); return *this;}
98 inline DeploymentStrategy& WithGrowthType(GrowthType&& value) { SetGrowthType(std::move(value)); return *this;}
100
102
106 inline double GetGrowthFactor() const{ return m_growthFactor; }
107 inline bool GrowthFactorHasBeenSet() const { return m_growthFactorHasBeenSet; }
108 inline void SetGrowthFactor(double value) { m_growthFactorHasBeenSet = true; m_growthFactor = value; }
109 inline DeploymentStrategy& WithGrowthFactor(double value) { SetGrowthFactor(value); return *this;}
111
113
117 inline int GetFinalBakeTimeInMinutes() const{ return m_finalBakeTimeInMinutes; }
118 inline bool FinalBakeTimeInMinutesHasBeenSet() const { return m_finalBakeTimeInMinutesHasBeenSet; }
119 inline void SetFinalBakeTimeInMinutes(int value) { m_finalBakeTimeInMinutesHasBeenSet = true; m_finalBakeTimeInMinutes = value; }
122
124
127 inline const ReplicateTo& GetReplicateTo() const{ return m_replicateTo; }
128 inline bool ReplicateToHasBeenSet() const { return m_replicateToHasBeenSet; }
129 inline void SetReplicateTo(const ReplicateTo& value) { m_replicateToHasBeenSet = true; m_replicateTo = value; }
130 inline void SetReplicateTo(ReplicateTo&& value) { m_replicateToHasBeenSet = true; m_replicateTo = std::move(value); }
131 inline DeploymentStrategy& WithReplicateTo(const ReplicateTo& value) { SetReplicateTo(value); return *this;}
132 inline DeploymentStrategy& WithReplicateTo(ReplicateTo&& value) { SetReplicateTo(std::move(value)); return *this;}
134
136
137 inline const Aws::String& GetRequestId() const{ return m_requestId; }
138 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
139 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
140 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
141 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
142 inline DeploymentStrategy& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
143 inline DeploymentStrategy& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
144 inline DeploymentStrategy& WithRequestId(const char* value) { SetRequestId(value); return *this;}
146 private:
147
148 Aws::String m_id;
149 bool m_idHasBeenSet = false;
150
151 Aws::String m_name;
152 bool m_nameHasBeenSet = false;
153
154 Aws::String m_description;
155 bool m_descriptionHasBeenSet = false;
156
157 int m_deploymentDurationInMinutes;
158 bool m_deploymentDurationInMinutesHasBeenSet = false;
159
160 GrowthType m_growthType;
161 bool m_growthTypeHasBeenSet = false;
162
163 double m_growthFactor;
164 bool m_growthFactorHasBeenSet = false;
165
166 int m_finalBakeTimeInMinutes;
167 bool m_finalBakeTimeInMinutesHasBeenSet = false;
168
169 ReplicateTo m_replicateTo;
170 bool m_replicateToHasBeenSet = false;
171
172 Aws::String m_requestId;
173 bool m_requestIdHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace AppConfig
178} // namespace Aws
DeploymentStrategy & WithReplicateTo(ReplicateTo &&value)
DeploymentStrategy & WithGrowthType(const GrowthType &value)
DeploymentStrategy & WithGrowthFactor(double value)
DeploymentStrategy & WithDescription(Aws::String &&value)
AWS_APPCONFIG_API DeploymentStrategy(Aws::Utils::Json::JsonView jsonValue)
DeploymentStrategy & WithReplicateTo(const ReplicateTo &value)
DeploymentStrategy & WithDescription(const char *value)
DeploymentStrategy & WithId(Aws::String &&value)
DeploymentStrategy & WithRequestId(const Aws::String &value)
DeploymentStrategy & WithName(const char *value)
DeploymentStrategy & WithGrowthType(GrowthType &&value)
DeploymentStrategy & WithFinalBakeTimeInMinutes(int value)
DeploymentStrategy & WithName(const Aws::String &value)
DeploymentStrategy & WithRequestId(const char *value)
void SetReplicateTo(const ReplicateTo &value)
DeploymentStrategy & WithDescription(const Aws::String &value)
DeploymentStrategy & WithId(const char *value)
void SetName(const Aws::String &value)
void SetDescription(const Aws::String &value)
AWS_APPCONFIG_API DeploymentStrategy & operator=(Aws::Utils::Json::JsonView jsonValue)
DeploymentStrategy & WithName(Aws::String &&value)
AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const
DeploymentStrategy & WithId(const Aws::String &value)
DeploymentStrategy & WithDeploymentDurationInMinutes(int value)
void SetGrowthType(const GrowthType &value)
DeploymentStrategy & WithRequestId(Aws::String &&value)
void SetRequestId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue