AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDeploymentConfigName(const Aws::String& value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName = value; }
52 inline void SetDeploymentConfigName(Aws::String&& value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName = std::move(value); }
53 inline void SetDeploymentConfigName(const char* value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName.assign(value); }
56 inline CreateDeploymentConfigRequest& WithDeploymentConfigName(const char* value) { SetDeploymentConfigName(value); return *this;}
58
60
74 inline const MinimumHealthyHosts& GetMinimumHealthyHosts() const{ return m_minimumHealthyHosts; }
75 inline bool MinimumHealthyHostsHasBeenSet() const { return m_minimumHealthyHostsHasBeenSet; }
76 inline void SetMinimumHealthyHosts(const MinimumHealthyHosts& value) { m_minimumHealthyHostsHasBeenSet = true; m_minimumHealthyHosts = value; }
77 inline void SetMinimumHealthyHosts(MinimumHealthyHosts&& value) { m_minimumHealthyHostsHasBeenSet = true; m_minimumHealthyHosts = std::move(value); }
81
83
86 inline const TrafficRoutingConfig& GetTrafficRoutingConfig() const{ return m_trafficRoutingConfig; }
87 inline bool TrafficRoutingConfigHasBeenSet() const { return m_trafficRoutingConfigHasBeenSet; }
88 inline void SetTrafficRoutingConfig(const TrafficRoutingConfig& value) { m_trafficRoutingConfigHasBeenSet = true; m_trafficRoutingConfig = value; }
89 inline void SetTrafficRoutingConfig(TrafficRoutingConfig&& value) { m_trafficRoutingConfigHasBeenSet = true; m_trafficRoutingConfig = std::move(value); }
93
95
99 inline const ComputePlatform& GetComputePlatform() const{ return m_computePlatform; }
100 inline bool ComputePlatformHasBeenSet() const { return m_computePlatformHasBeenSet; }
101 inline void SetComputePlatform(const ComputePlatform& value) { m_computePlatformHasBeenSet = true; m_computePlatform = value; }
102 inline void SetComputePlatform(ComputePlatform&& value) { m_computePlatformHasBeenSet = true; m_computePlatform = std::move(value); }
104 inline CreateDeploymentConfigRequest& WithComputePlatform(ComputePlatform&& value) { SetComputePlatform(std::move(value)); return *this;}
106
108
117 inline const ZonalConfig& GetZonalConfig() const{ return m_zonalConfig; }
118 inline bool ZonalConfigHasBeenSet() const { return m_zonalConfigHasBeenSet; }
119 inline void SetZonalConfig(const ZonalConfig& value) { m_zonalConfigHasBeenSet = true; m_zonalConfig = value; }
120 inline void SetZonalConfig(ZonalConfig&& value) { m_zonalConfigHasBeenSet = true; m_zonalConfig = std::move(value); }
121 inline CreateDeploymentConfigRequest& WithZonalConfig(const ZonalConfig& value) { SetZonalConfig(value); return *this;}
122 inline CreateDeploymentConfigRequest& WithZonalConfig(ZonalConfig&& value) { SetZonalConfig(std::move(value)); return *this;}
124 private:
125
126 Aws::String m_deploymentConfigName;
127 bool m_deploymentConfigNameHasBeenSet = false;
128
129 MinimumHealthyHosts m_minimumHealthyHosts;
130 bool m_minimumHealthyHostsHasBeenSet = false;
131
132 TrafficRoutingConfig m_trafficRoutingConfig;
133 bool m_trafficRoutingConfigHasBeenSet = false;
134
135 ComputePlatform m_computePlatform;
136 bool m_computePlatformHasBeenSet = false;
137
138 ZonalConfig m_zonalConfig;
139 bool m_zonalConfigHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace CodeDeploy
144} // namespace Aws
CreateDeploymentConfigRequest & WithComputePlatform(ComputePlatform &&value)
AWS_CODEDEPLOY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateDeploymentConfigRequest & WithDeploymentConfigName(const char *value)
CreateDeploymentConfigRequest & WithZonalConfig(const ZonalConfig &value)
CreateDeploymentConfigRequest & WithTrafficRoutingConfig(const TrafficRoutingConfig &value)
CreateDeploymentConfigRequest & WithDeploymentConfigName(const Aws::String &value)
CreateDeploymentConfigRequest & WithZonalConfig(ZonalConfig &&value)
CreateDeploymentConfigRequest & WithTrafficRoutingConfig(TrafficRoutingConfig &&value)
AWS_CODEDEPLOY_API Aws::String SerializePayload() const override
CreateDeploymentConfigRequest & WithMinimumHealthyHosts(const MinimumHealthyHosts &value)
CreateDeploymentConfigRequest & WithComputePlatform(const ComputePlatform &value)
CreateDeploymentConfigRequest & WithMinimumHealthyHosts(MinimumHealthyHosts &&value)
CreateDeploymentConfigRequest & WithDeploymentConfigName(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String