AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateDeploymentStrategyRequest.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 <utility>
12
13namespace Aws
14{
15namespace AppConfig
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_APPCONFIG_API UpdateDeploymentStrategyRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateDeploymentStrategy"; }
32
33 AWS_APPCONFIG_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetDeploymentStrategyId() const { return m_deploymentStrategyId; }
41 inline bool DeploymentStrategyIdHasBeenSet() const { return m_deploymentStrategyIdHasBeenSet; }
42 template<typename DeploymentStrategyIdT = Aws::String>
43 void SetDeploymentStrategyId(DeploymentStrategyIdT&& value) { m_deploymentStrategyIdHasBeenSet = true; m_deploymentStrategyId = std::forward<DeploymentStrategyIdT>(value); }
44 template<typename DeploymentStrategyIdT = Aws::String>
45 UpdateDeploymentStrategyRequest& WithDeploymentStrategyId(DeploymentStrategyIdT&& value) { SetDeploymentStrategyId(std::forward<DeploymentStrategyIdT>(value)); return *this;}
47
49
52 inline const Aws::String& GetDescription() const { return m_description; }
53 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
54 template<typename DescriptionT = Aws::String>
55 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
56 template<typename DescriptionT = Aws::String>
57 UpdateDeploymentStrategyRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
59
61
64 inline int GetDeploymentDurationInMinutes() const { return m_deploymentDurationInMinutes; }
65 inline bool DeploymentDurationInMinutesHasBeenSet() const { return m_deploymentDurationInMinutesHasBeenSet; }
66 inline void SetDeploymentDurationInMinutes(int value) { m_deploymentDurationInMinutesHasBeenSet = true; m_deploymentDurationInMinutes = value; }
69
71
75 inline int GetFinalBakeTimeInMinutes() const { return m_finalBakeTimeInMinutes; }
76 inline bool FinalBakeTimeInMinutesHasBeenSet() const { return m_finalBakeTimeInMinutesHasBeenSet; }
77 inline void SetFinalBakeTimeInMinutes(int value) { m_finalBakeTimeInMinutesHasBeenSet = true; m_finalBakeTimeInMinutes = value; }
80
82
86 inline double GetGrowthFactor() const { return m_growthFactor; }
87 inline bool GrowthFactorHasBeenSet() const { return m_growthFactorHasBeenSet; }
88 inline void SetGrowthFactor(double value) { m_growthFactorHasBeenSet = true; m_growthFactor = value; }
89 inline UpdateDeploymentStrategyRequest& WithGrowthFactor(double value) { SetGrowthFactor(value); return *this;}
91
93
112 inline GrowthType GetGrowthType() const { return m_growthType; }
113 inline bool GrowthTypeHasBeenSet() const { return m_growthTypeHasBeenSet; }
114 inline void SetGrowthType(GrowthType value) { m_growthTypeHasBeenSet = true; m_growthType = value; }
117 private:
118
119 Aws::String m_deploymentStrategyId;
120 bool m_deploymentStrategyIdHasBeenSet = false;
121
122 Aws::String m_description;
123 bool m_descriptionHasBeenSet = false;
124
125 int m_deploymentDurationInMinutes{0};
126 bool m_deploymentDurationInMinutesHasBeenSet = false;
127
128 int m_finalBakeTimeInMinutes{0};
129 bool m_finalBakeTimeInMinutesHasBeenSet = false;
130
131 double m_growthFactor{0.0};
132 bool m_growthFactorHasBeenSet = false;
133
134 GrowthType m_growthType{GrowthType::NOT_SET};
135 bool m_growthTypeHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace AppConfig
140} // 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