AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateDeploymentConfigRequest.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeployRequest.h>
8#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
9#include <aws/codedeploy/model/ComputePlatform.h>
10#include <aws/codedeploy/model/MinimumHealthyHosts.h>
11#include <aws/codedeploy/model/TrafficRoutingConfig.h>
12#include <aws/codedeploy/model/ZonalConfig.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace CodeDeploy {
19namespace Model {
20
28 public:
29 AWS_CODEDEPLOY_API CreateDeploymentConfigRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateDeploymentConfig"; }
36
37 AWS_CODEDEPLOY_API Aws::String SerializePayload() const override;
38
40
42
45 inline const Aws::String& GetDeploymentConfigName() const { return m_deploymentConfigName; }
46 inline bool DeploymentConfigNameHasBeenSet() const { return m_deploymentConfigNameHasBeenSet; }
47 template <typename DeploymentConfigNameT = Aws::String>
48 void SetDeploymentConfigName(DeploymentConfigNameT&& value) {
49 m_deploymentConfigNameHasBeenSet = true;
50 m_deploymentConfigName = std::forward<DeploymentConfigNameT>(value);
51 }
52 template <typename DeploymentConfigNameT = Aws::String>
54 SetDeploymentConfigName(std::forward<DeploymentConfigNameT>(value));
55 return *this;
56 }
58
60
74 inline const MinimumHealthyHosts& GetMinimumHealthyHosts() const { return m_minimumHealthyHosts; }
75 inline bool MinimumHealthyHostsHasBeenSet() const { return m_minimumHealthyHostsHasBeenSet; }
76 template <typename MinimumHealthyHostsT = MinimumHealthyHosts>
77 void SetMinimumHealthyHosts(MinimumHealthyHostsT&& value) {
78 m_minimumHealthyHostsHasBeenSet = true;
79 m_minimumHealthyHosts = std::forward<MinimumHealthyHostsT>(value);
80 }
81 template <typename MinimumHealthyHostsT = MinimumHealthyHosts>
83 SetMinimumHealthyHosts(std::forward<MinimumHealthyHostsT>(value));
84 return *this;
85 }
87
89
92 inline const TrafficRoutingConfig& GetTrafficRoutingConfig() const { return m_trafficRoutingConfig; }
93 inline bool TrafficRoutingConfigHasBeenSet() const { return m_trafficRoutingConfigHasBeenSet; }
94 template <typename TrafficRoutingConfigT = TrafficRoutingConfig>
95 void SetTrafficRoutingConfig(TrafficRoutingConfigT&& value) {
96 m_trafficRoutingConfigHasBeenSet = true;
97 m_trafficRoutingConfig = std::forward<TrafficRoutingConfigT>(value);
98 }
99 template <typename TrafficRoutingConfigT = TrafficRoutingConfig>
101 SetTrafficRoutingConfig(std::forward<TrafficRoutingConfigT>(value));
102 return *this;
103 }
105
107
111 inline ComputePlatform GetComputePlatform() const { return m_computePlatform; }
112 inline bool ComputePlatformHasBeenSet() const { return m_computePlatformHasBeenSet; }
114 m_computePlatformHasBeenSet = true;
115 m_computePlatform = value;
116 }
118 SetComputePlatform(value);
119 return *this;
120 }
122
124
133 inline const ZonalConfig& GetZonalConfig() const { return m_zonalConfig; }
134 inline bool ZonalConfigHasBeenSet() const { return m_zonalConfigHasBeenSet; }
135 template <typename ZonalConfigT = ZonalConfig>
136 void SetZonalConfig(ZonalConfigT&& value) {
137 m_zonalConfigHasBeenSet = true;
138 m_zonalConfig = std::forward<ZonalConfigT>(value);
139 }
140 template <typename ZonalConfigT = ZonalConfig>
142 SetZonalConfig(std::forward<ZonalConfigT>(value));
143 return *this;
144 }
146 private:
147 Aws::String m_deploymentConfigName;
148
149 MinimumHealthyHosts m_minimumHealthyHosts;
150
151 TrafficRoutingConfig m_trafficRoutingConfig;
152
153 ComputePlatform m_computePlatform{ComputePlatform::NOT_SET};
154
155 ZonalConfig m_zonalConfig;
156 bool m_deploymentConfigNameHasBeenSet = false;
157 bool m_minimumHealthyHostsHasBeenSet = false;
158 bool m_trafficRoutingConfigHasBeenSet = false;
159 bool m_computePlatformHasBeenSet = false;
160 bool m_zonalConfigHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace CodeDeploy
165} // namespace Aws
AWS_CODEDEPLOY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateDeploymentConfigRequest & WithZonalConfig(ZonalConfigT &&value)
CreateDeploymentConfigRequest & WithComputePlatform(ComputePlatform value)
CreateDeploymentConfigRequest & WithTrafficRoutingConfig(TrafficRoutingConfigT &&value)
CreateDeploymentConfigRequest & WithMinimumHealthyHosts(MinimumHealthyHostsT &&value)
AWS_CODEDEPLOY_API Aws::String SerializePayload() const override
AWS_CODEDEPLOY_API CreateDeploymentConfigRequest()=default
CreateDeploymentConfigRequest & WithDeploymentConfigName(DeploymentConfigNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String