AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DeploymentConfigInfo.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codedeploy/model/MinimumHealthyHosts.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/codedeploy/model/ComputePlatform.h>
12#include <aws/codedeploy/model/TrafficRoutingConfig.h>
13#include <aws/codedeploy/model/ZonalConfig.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace CodeDeploy
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_CODEDEPLOY_API DeploymentConfigInfo() = default;
40 AWS_CODEDEPLOY_API DeploymentConfigInfo(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetDeploymentConfigId() const { return m_deploymentConfigId; }
50 inline bool DeploymentConfigIdHasBeenSet() const { return m_deploymentConfigIdHasBeenSet; }
51 template<typename DeploymentConfigIdT = Aws::String>
52 void SetDeploymentConfigId(DeploymentConfigIdT&& value) { m_deploymentConfigIdHasBeenSet = true; m_deploymentConfigId = std::forward<DeploymentConfigIdT>(value); }
53 template<typename DeploymentConfigIdT = Aws::String>
54 DeploymentConfigInfo& WithDeploymentConfigId(DeploymentConfigIdT&& value) { SetDeploymentConfigId(std::forward<DeploymentConfigIdT>(value)); return *this;}
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) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName = std::forward<DeploymentConfigNameT>(value); }
65 template<typename DeploymentConfigNameT = Aws::String>
66 DeploymentConfigInfo& WithDeploymentConfigName(DeploymentConfigNameT&& value) { SetDeploymentConfigName(std::forward<DeploymentConfigNameT>(value)); return *this;}
68
70
73 inline const MinimumHealthyHosts& GetMinimumHealthyHosts() const { return m_minimumHealthyHosts; }
74 inline bool MinimumHealthyHostsHasBeenSet() const { return m_minimumHealthyHostsHasBeenSet; }
75 template<typename MinimumHealthyHostsT = MinimumHealthyHosts>
76 void SetMinimumHealthyHosts(MinimumHealthyHostsT&& value) { m_minimumHealthyHostsHasBeenSet = true; m_minimumHealthyHosts = std::forward<MinimumHealthyHostsT>(value); }
77 template<typename MinimumHealthyHostsT = MinimumHealthyHosts>
78 DeploymentConfigInfo& WithMinimumHealthyHosts(MinimumHealthyHostsT&& value) { SetMinimumHealthyHosts(std::forward<MinimumHealthyHostsT>(value)); return *this;}
80
82
85 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
86 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
87 template<typename CreateTimeT = Aws::Utils::DateTime>
88 void SetCreateTime(CreateTimeT&& value) { m_createTimeHasBeenSet = true; m_createTime = std::forward<CreateTimeT>(value); }
89 template<typename CreateTimeT = Aws::Utils::DateTime>
90 DeploymentConfigInfo& WithCreateTime(CreateTimeT&& value) { SetCreateTime(std::forward<CreateTimeT>(value)); return *this;}
92
94
98 inline ComputePlatform GetComputePlatform() const { return m_computePlatform; }
99 inline bool ComputePlatformHasBeenSet() const { return m_computePlatformHasBeenSet; }
100 inline void SetComputePlatform(ComputePlatform value) { m_computePlatformHasBeenSet = true; m_computePlatform = value; }
103
105
109 inline const TrafficRoutingConfig& GetTrafficRoutingConfig() const { return m_trafficRoutingConfig; }
110 inline bool TrafficRoutingConfigHasBeenSet() const { return m_trafficRoutingConfigHasBeenSet; }
111 template<typename TrafficRoutingConfigT = TrafficRoutingConfig>
112 void SetTrafficRoutingConfig(TrafficRoutingConfigT&& value) { m_trafficRoutingConfigHasBeenSet = true; m_trafficRoutingConfig = std::forward<TrafficRoutingConfigT>(value); }
113 template<typename TrafficRoutingConfigT = TrafficRoutingConfig>
114 DeploymentConfigInfo& WithTrafficRoutingConfig(TrafficRoutingConfigT&& value) { SetTrafficRoutingConfig(std::forward<TrafficRoutingConfigT>(value)); return *this;}
116
118
121 inline const ZonalConfig& GetZonalConfig() const { return m_zonalConfig; }
122 inline bool ZonalConfigHasBeenSet() const { return m_zonalConfigHasBeenSet; }
123 template<typename ZonalConfigT = ZonalConfig>
124 void SetZonalConfig(ZonalConfigT&& value) { m_zonalConfigHasBeenSet = true; m_zonalConfig = std::forward<ZonalConfigT>(value); }
125 template<typename ZonalConfigT = ZonalConfig>
126 DeploymentConfigInfo& WithZonalConfig(ZonalConfigT&& value) { SetZonalConfig(std::forward<ZonalConfigT>(value)); return *this;}
128 private:
129
130 Aws::String m_deploymentConfigId;
131 bool m_deploymentConfigIdHasBeenSet = false;
132
133 Aws::String m_deploymentConfigName;
134 bool m_deploymentConfigNameHasBeenSet = false;
135
136 MinimumHealthyHosts m_minimumHealthyHosts;
137 bool m_minimumHealthyHostsHasBeenSet = false;
138
139 Aws::Utils::DateTime m_createTime{};
140 bool m_createTimeHasBeenSet = false;
141
142 ComputePlatform m_computePlatform{ComputePlatform::NOT_SET};
143 bool m_computePlatformHasBeenSet = false;
144
145 TrafficRoutingConfig m_trafficRoutingConfig;
146 bool m_trafficRoutingConfigHasBeenSet = false;
147
148 ZonalConfig m_zonalConfig;
149 bool m_zonalConfigHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace CodeDeploy
154} // 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