AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateDeploymentConfigRequest.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/codedeploy/CodeDeployRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/codedeploy/model/MinimumHealthyHosts.h>
11#include <aws/codedeploy/model/TrafficRoutingConfig.h>
12#include <aws/codedeploy/model/ComputePlatform.h>
13#include <aws/codedeploy/model/ZonalConfig.h>
14#include <utility>
15
16namespace Aws
17{
18namespace CodeDeploy
19{
20namespace Model
21{
22
30 {
31 public:
32 AWS_CODEDEPLOY_API CreateDeploymentConfigRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateDeploymentConfig"; }
39
40 AWS_CODEDEPLOY_API Aws::String SerializePayload() const override;
41
43
44
46
49 inline const Aws::String& GetDeploymentConfigName() const { return m_deploymentConfigName; }
50 inline bool DeploymentConfigNameHasBeenSet() const { return m_deploymentConfigNameHasBeenSet; }
51 template<typename DeploymentConfigNameT = Aws::String>
52 void SetDeploymentConfigName(DeploymentConfigNameT&& value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName = std::forward<DeploymentConfigNameT>(value); }
53 template<typename DeploymentConfigNameT = Aws::String>
54 CreateDeploymentConfigRequest& WithDeploymentConfigName(DeploymentConfigNameT&& value) { SetDeploymentConfigName(std::forward<DeploymentConfigNameT>(value)); return *this;}
56
58
72 inline const MinimumHealthyHosts& GetMinimumHealthyHosts() const { return m_minimumHealthyHosts; }
73 inline bool MinimumHealthyHostsHasBeenSet() const { return m_minimumHealthyHostsHasBeenSet; }
74 template<typename MinimumHealthyHostsT = MinimumHealthyHosts>
75 void SetMinimumHealthyHosts(MinimumHealthyHostsT&& value) { m_minimumHealthyHostsHasBeenSet = true; m_minimumHealthyHosts = std::forward<MinimumHealthyHostsT>(value); }
76 template<typename MinimumHealthyHostsT = MinimumHealthyHosts>
77 CreateDeploymentConfigRequest& WithMinimumHealthyHosts(MinimumHealthyHostsT&& value) { SetMinimumHealthyHosts(std::forward<MinimumHealthyHostsT>(value)); return *this;}
79
81
84 inline const TrafficRoutingConfig& GetTrafficRoutingConfig() const { return m_trafficRoutingConfig; }
85 inline bool TrafficRoutingConfigHasBeenSet() const { return m_trafficRoutingConfigHasBeenSet; }
86 template<typename TrafficRoutingConfigT = TrafficRoutingConfig>
87 void SetTrafficRoutingConfig(TrafficRoutingConfigT&& value) { m_trafficRoutingConfigHasBeenSet = true; m_trafficRoutingConfig = std::forward<TrafficRoutingConfigT>(value); }
88 template<typename TrafficRoutingConfigT = TrafficRoutingConfig>
89 CreateDeploymentConfigRequest& WithTrafficRoutingConfig(TrafficRoutingConfigT&& value) { SetTrafficRoutingConfig(std::forward<TrafficRoutingConfigT>(value)); return *this;}
91
93
97 inline ComputePlatform GetComputePlatform() const { return m_computePlatform; }
98 inline bool ComputePlatformHasBeenSet() const { return m_computePlatformHasBeenSet; }
99 inline void SetComputePlatform(ComputePlatform value) { m_computePlatformHasBeenSet = true; m_computePlatform = value; }
102
104
113 inline const ZonalConfig& GetZonalConfig() const { return m_zonalConfig; }
114 inline bool ZonalConfigHasBeenSet() const { return m_zonalConfigHasBeenSet; }
115 template<typename ZonalConfigT = ZonalConfig>
116 void SetZonalConfig(ZonalConfigT&& value) { m_zonalConfigHasBeenSet = true; m_zonalConfig = std::forward<ZonalConfigT>(value); }
117 template<typename ZonalConfigT = ZonalConfig>
118 CreateDeploymentConfigRequest& WithZonalConfig(ZonalConfigT&& value) { SetZonalConfig(std::forward<ZonalConfigT>(value)); return *this;}
120 private:
121
122 Aws::String m_deploymentConfigName;
123 bool m_deploymentConfigNameHasBeenSet = false;
124
125 MinimumHealthyHosts m_minimumHealthyHosts;
126 bool m_minimumHealthyHostsHasBeenSet = false;
127
128 TrafficRoutingConfig m_trafficRoutingConfig;
129 bool m_trafficRoutingConfigHasBeenSet = false;
130
131 ComputePlatform m_computePlatform{ComputePlatform::NOT_SET};
132 bool m_computePlatformHasBeenSet = false;
133
134 ZonalConfig m_zonalConfig;
135 bool m_zonalConfigHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace CodeDeploy
140} // 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