AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename IdT = Aws::String>
44 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
45 template<typename IdT = Aws::String>
46 DeploymentStrategy& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
48
50
53 inline const Aws::String& GetName() const { return m_name; }
54 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 template<typename NameT = Aws::String>
56 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
57 template<typename NameT = Aws::String>
58 DeploymentStrategy& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
60
62
65 inline const Aws::String& GetDescription() const { return m_description; }
66 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
67 template<typename DescriptionT = Aws::String>
68 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
69 template<typename DescriptionT = Aws::String>
70 DeploymentStrategy& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
72
74
77 inline int GetDeploymentDurationInMinutes() const { return m_deploymentDurationInMinutes; }
78 inline bool DeploymentDurationInMinutesHasBeenSet() const { return m_deploymentDurationInMinutesHasBeenSet; }
79 inline void SetDeploymentDurationInMinutes(int value) { m_deploymentDurationInMinutesHasBeenSet = true; m_deploymentDurationInMinutes = value; }
82
84
87 inline GrowthType GetGrowthType() const { return m_growthType; }
88 inline bool GrowthTypeHasBeenSet() const { return m_growthTypeHasBeenSet; }
89 inline void SetGrowthType(GrowthType value) { m_growthTypeHasBeenSet = true; m_growthType = value; }
90 inline DeploymentStrategy& WithGrowthType(GrowthType value) { SetGrowthType(value); return *this;}
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 DeploymentStrategy& WithGrowthFactor(double value) { SetGrowthFactor(value); return *this;}
103
105
109 inline int GetFinalBakeTimeInMinutes() const { return m_finalBakeTimeInMinutes; }
110 inline bool FinalBakeTimeInMinutesHasBeenSet() const { return m_finalBakeTimeInMinutesHasBeenSet; }
111 inline void SetFinalBakeTimeInMinutes(int value) { m_finalBakeTimeInMinutesHasBeenSet = true; m_finalBakeTimeInMinutes = value; }
114
116
119 inline ReplicateTo GetReplicateTo() const { return m_replicateTo; }
120 inline bool ReplicateToHasBeenSet() const { return m_replicateToHasBeenSet; }
121 inline void SetReplicateTo(ReplicateTo value) { m_replicateToHasBeenSet = true; m_replicateTo = value; }
122 inline DeploymentStrategy& WithReplicateTo(ReplicateTo value) { SetReplicateTo(value); return *this;}
124
126
127 inline const Aws::String& GetRequestId() const { return m_requestId; }
128 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
129 template<typename RequestIdT = Aws::String>
130 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
131 template<typename RequestIdT = Aws::String>
132 DeploymentStrategy& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
134 private:
135
136 Aws::String m_id;
137 bool m_idHasBeenSet = false;
138
139 Aws::String m_name;
140 bool m_nameHasBeenSet = false;
141
142 Aws::String m_description;
143 bool m_descriptionHasBeenSet = false;
144
145 int m_deploymentDurationInMinutes{0};
146 bool m_deploymentDurationInMinutesHasBeenSet = false;
147
148 GrowthType m_growthType{GrowthType::NOT_SET};
149 bool m_growthTypeHasBeenSet = false;
150
151 double m_growthFactor{0.0};
152 bool m_growthFactorHasBeenSet = false;
153
154 int m_finalBakeTimeInMinutes{0};
155 bool m_finalBakeTimeInMinutesHasBeenSet = false;
156
157 ReplicateTo m_replicateTo{ReplicateTo::NOT_SET};
158 bool m_replicateToHasBeenSet = false;
159
160 Aws::String m_requestId;
161 bool m_requestIdHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace AppConfig
166} // namespace Aws
DeploymentStrategy & WithGrowthFactor(double value)
AWS_APPCONFIG_API DeploymentStrategy(Aws::Utils::Json::JsonView jsonValue)
DeploymentStrategy & WithGrowthType(GrowthType value)
DeploymentStrategy & WithId(IdT &&value)
DeploymentStrategy & WithFinalBakeTimeInMinutes(int value)
DeploymentStrategy & WithReplicateTo(ReplicateTo value)
DeploymentStrategy & WithDescription(DescriptionT &&value)
AWS_APPCONFIG_API DeploymentStrategy & operator=(Aws::Utils::Json::JsonView jsonValue)
DeploymentStrategy & WithName(NameT &&value)
AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPCONFIG_API DeploymentStrategy()=default
DeploymentStrategy & WithDeploymentDurationInMinutes(int value)
DeploymentStrategy & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue