AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
UpdateDeploymentStrategyRequest.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/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace AppConfig {
16namespace Model {
17
21 public:
22 AWS_APPCONFIG_API UpdateDeploymentStrategyRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateDeploymentStrategy"; }
29
30 AWS_APPCONFIG_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetDeploymentStrategyId() const { return m_deploymentStrategyId; }
37 inline bool DeploymentStrategyIdHasBeenSet() const { return m_deploymentStrategyIdHasBeenSet; }
38 template <typename DeploymentStrategyIdT = Aws::String>
39 void SetDeploymentStrategyId(DeploymentStrategyIdT&& value) {
40 m_deploymentStrategyIdHasBeenSet = true;
41 m_deploymentStrategyId = std::forward<DeploymentStrategyIdT>(value);
42 }
43 template <typename DeploymentStrategyIdT = Aws::String>
45 SetDeploymentStrategyId(std::forward<DeploymentStrategyIdT>(value));
46 return *this;
47 }
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) {
58 m_descriptionHasBeenSet = true;
59 m_description = std::forward<DescriptionT>(value);
60 }
61 template <typename DescriptionT = Aws::String>
63 SetDescription(std::forward<DescriptionT>(value));
64 return *this;
65 }
67
69
72 inline int GetDeploymentDurationInMinutes() const { return m_deploymentDurationInMinutes; }
73 inline bool DeploymentDurationInMinutesHasBeenSet() const { return m_deploymentDurationInMinutesHasBeenSet; }
74 inline void SetDeploymentDurationInMinutes(int value) {
75 m_deploymentDurationInMinutesHasBeenSet = true;
76 m_deploymentDurationInMinutes = value;
77 }
80 return *this;
81 }
83
85
89 inline int GetFinalBakeTimeInMinutes() const { return m_finalBakeTimeInMinutes; }
90 inline bool FinalBakeTimeInMinutesHasBeenSet() const { return m_finalBakeTimeInMinutesHasBeenSet; }
91 inline void SetFinalBakeTimeInMinutes(int value) {
92 m_finalBakeTimeInMinutesHasBeenSet = true;
93 m_finalBakeTimeInMinutes = value;
94 }
97 return *this;
98 }
100
102
106 inline double GetGrowthFactor() const { return m_growthFactor; }
107 inline bool GrowthFactorHasBeenSet() const { return m_growthFactorHasBeenSet; }
108 inline void SetGrowthFactor(double value) {
109 m_growthFactorHasBeenSet = true;
110 m_growthFactor = value;
111 }
113 SetGrowthFactor(value);
114 return *this;
115 }
117
119
138 inline GrowthType GetGrowthType() const { return m_growthType; }
139 inline bool GrowthTypeHasBeenSet() const { return m_growthTypeHasBeenSet; }
140 inline void SetGrowthType(GrowthType value) {
141 m_growthTypeHasBeenSet = true;
142 m_growthType = value;
143 }
145 SetGrowthType(value);
146 return *this;
147 }
149 private:
150 Aws::String m_deploymentStrategyId;
151
152 Aws::String m_description;
153
154 int m_deploymentDurationInMinutes{0};
155
156 int m_finalBakeTimeInMinutes{0};
157
158 double m_growthFactor{0.0};
159
160 GrowthType m_growthType{GrowthType::NOT_SET};
161 bool m_deploymentStrategyIdHasBeenSet = false;
162 bool m_descriptionHasBeenSet = false;
163 bool m_deploymentDurationInMinutesHasBeenSet = false;
164 bool m_finalBakeTimeInMinutesHasBeenSet = false;
165 bool m_growthFactorHasBeenSet = false;
166 bool m_growthTypeHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace AppConfig
171} // namespace Aws
UpdateDeploymentStrategyRequest & WithGrowthFactor(double value)
UpdateDeploymentStrategyRequest & WithFinalBakeTimeInMinutes(int value)
AWS_APPCONFIG_API UpdateDeploymentStrategyRequest()=default
AWS_APPCONFIG_API Aws::String SerializePayload() const override
UpdateDeploymentStrategyRequest & WithDescription(DescriptionT &&value)
UpdateDeploymentStrategyRequest & WithDeploymentDurationInMinutes(int value)
UpdateDeploymentStrategyRequest & WithGrowthType(GrowthType value)
UpdateDeploymentStrategyRequest & WithDeploymentStrategyId(DeploymentStrategyIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String