AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DeploymentConfigInfo.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/codedeploy/model/ComputePlatform.h>
9#include <aws/codedeploy/model/MinimumHealthyHosts.h>
10#include <aws/codedeploy/model/TrafficRoutingConfig.h>
11#include <aws/codedeploy/model/ZonalConfig.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CodeDeploy {
25namespace Model {
26
33 public:
34 AWS_CODEDEPLOY_API DeploymentConfigInfo() = default;
35 AWS_CODEDEPLOY_API DeploymentConfigInfo(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetDeploymentConfigId() const { return m_deploymentConfigId; }
44 inline bool DeploymentConfigIdHasBeenSet() const { return m_deploymentConfigIdHasBeenSet; }
45 template <typename DeploymentConfigIdT = Aws::String>
46 void SetDeploymentConfigId(DeploymentConfigIdT&& value) {
47 m_deploymentConfigIdHasBeenSet = true;
48 m_deploymentConfigId = std::forward<DeploymentConfigIdT>(value);
49 }
50 template <typename DeploymentConfigIdT = Aws::String>
51 DeploymentConfigInfo& WithDeploymentConfigId(DeploymentConfigIdT&& value) {
52 SetDeploymentConfigId(std::forward<DeploymentConfigIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetDeploymentConfigName() const { return m_deploymentConfigName; }
62 inline bool DeploymentConfigNameHasBeenSet() const { return m_deploymentConfigNameHasBeenSet; }
63 template <typename DeploymentConfigNameT = Aws::String>
64 void SetDeploymentConfigName(DeploymentConfigNameT&& value) {
65 m_deploymentConfigNameHasBeenSet = true;
66 m_deploymentConfigName = std::forward<DeploymentConfigNameT>(value);
67 }
68 template <typename DeploymentConfigNameT = Aws::String>
69 DeploymentConfigInfo& WithDeploymentConfigName(DeploymentConfigNameT&& value) {
70 SetDeploymentConfigName(std::forward<DeploymentConfigNameT>(value));
71 return *this;
72 }
74
76
79 inline const MinimumHealthyHosts& GetMinimumHealthyHosts() const { return m_minimumHealthyHosts; }
80 inline bool MinimumHealthyHostsHasBeenSet() const { return m_minimumHealthyHostsHasBeenSet; }
81 template <typename MinimumHealthyHostsT = MinimumHealthyHosts>
82 void SetMinimumHealthyHosts(MinimumHealthyHostsT&& value) {
83 m_minimumHealthyHostsHasBeenSet = true;
84 m_minimumHealthyHosts = std::forward<MinimumHealthyHostsT>(value);
85 }
86 template <typename MinimumHealthyHostsT = MinimumHealthyHosts>
87 DeploymentConfigInfo& WithMinimumHealthyHosts(MinimumHealthyHostsT&& value) {
88 SetMinimumHealthyHosts(std::forward<MinimumHealthyHostsT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
98 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
99 template <typename CreateTimeT = Aws::Utils::DateTime>
100 void SetCreateTime(CreateTimeT&& value) {
101 m_createTimeHasBeenSet = true;
102 m_createTime = std::forward<CreateTimeT>(value);
103 }
104 template <typename CreateTimeT = Aws::Utils::DateTime>
105 DeploymentConfigInfo& WithCreateTime(CreateTimeT&& value) {
106 SetCreateTime(std::forward<CreateTimeT>(value));
107 return *this;
108 }
110
112
116 inline ComputePlatform GetComputePlatform() const { return m_computePlatform; }
117 inline bool ComputePlatformHasBeenSet() const { return m_computePlatformHasBeenSet; }
119 m_computePlatformHasBeenSet = true;
120 m_computePlatform = value;
121 }
123 SetComputePlatform(value);
124 return *this;
125 }
127
129
133 inline const TrafficRoutingConfig& GetTrafficRoutingConfig() const { return m_trafficRoutingConfig; }
134 inline bool TrafficRoutingConfigHasBeenSet() const { return m_trafficRoutingConfigHasBeenSet; }
135 template <typename TrafficRoutingConfigT = TrafficRoutingConfig>
136 void SetTrafficRoutingConfig(TrafficRoutingConfigT&& value) {
137 m_trafficRoutingConfigHasBeenSet = true;
138 m_trafficRoutingConfig = std::forward<TrafficRoutingConfigT>(value);
139 }
140 template <typename TrafficRoutingConfigT = TrafficRoutingConfig>
141 DeploymentConfigInfo& WithTrafficRoutingConfig(TrafficRoutingConfigT&& value) {
142 SetTrafficRoutingConfig(std::forward<TrafficRoutingConfigT>(value));
143 return *this;
144 }
146
148
151 inline const ZonalConfig& GetZonalConfig() const { return m_zonalConfig; }
152 inline bool ZonalConfigHasBeenSet() const { return m_zonalConfigHasBeenSet; }
153 template <typename ZonalConfigT = ZonalConfig>
154 void SetZonalConfig(ZonalConfigT&& value) {
155 m_zonalConfigHasBeenSet = true;
156 m_zonalConfig = std::forward<ZonalConfigT>(value);
157 }
158 template <typename ZonalConfigT = ZonalConfig>
159 DeploymentConfigInfo& WithZonalConfig(ZonalConfigT&& value) {
160 SetZonalConfig(std::forward<ZonalConfigT>(value));
161 return *this;
162 }
164 private:
165 Aws::String m_deploymentConfigId;
166
167 Aws::String m_deploymentConfigName;
168
169 MinimumHealthyHosts m_minimumHealthyHosts;
170
171 Aws::Utils::DateTime m_createTime{};
172
173 ComputePlatform m_computePlatform{ComputePlatform::NOT_SET};
174
175 TrafficRoutingConfig m_trafficRoutingConfig;
176
177 ZonalConfig m_zonalConfig;
178 bool m_deploymentConfigIdHasBeenSet = false;
179 bool m_deploymentConfigNameHasBeenSet = false;
180 bool m_minimumHealthyHostsHasBeenSet = false;
181 bool m_createTimeHasBeenSet = false;
182 bool m_computePlatformHasBeenSet = false;
183 bool m_trafficRoutingConfigHasBeenSet = false;
184 bool m_zonalConfigHasBeenSet = false;
185};
186
187} // namespace Model
188} // namespace CodeDeploy
189} // namespace Aws
AWS_CODEDEPLOY_API DeploymentConfigInfo(Aws::Utils::Json::JsonView jsonValue)
DeploymentConfigInfo & WithComputePlatform(ComputePlatform value)
void SetDeploymentConfigName(DeploymentConfigNameT &&value)
DeploymentConfigInfo & WithMinimumHealthyHosts(MinimumHealthyHostsT &&value)
DeploymentConfigInfo & WithDeploymentConfigId(DeploymentConfigIdT &&value)
const MinimumHealthyHosts & GetMinimumHealthyHosts() const
AWS_CODEDEPLOY_API DeploymentConfigInfo()=default
void SetTrafficRoutingConfig(TrafficRoutingConfigT &&value)
const TrafficRoutingConfig & GetTrafficRoutingConfig() const
void SetDeploymentConfigId(DeploymentConfigIdT &&value)
DeploymentConfigInfo & WithTrafficRoutingConfig(TrafficRoutingConfigT &&value)
DeploymentConfigInfo & WithZonalConfig(ZonalConfigT &&value)
const Aws::Utils::DateTime & GetCreateTime() const
AWS_CODEDEPLOY_API DeploymentConfigInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
DeploymentConfigInfo & WithCreateTime(CreateTimeT &&value)
void SetMinimumHealthyHosts(MinimumHealthyHostsT &&value)
DeploymentConfigInfo & WithDeploymentConfigName(DeploymentConfigNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue