AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
DeploymentTarget.h
Go to the documentation of this file.
1
6#pragma once
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace CodeDeploy
26{
27namespace Model
28{
29
36 {
37 public:
42
43
48 inline const DeploymentTargetType& GetDeploymentTargetType() const{ return m_deploymentTargetType; }
49
54 inline bool DeploymentTargetTypeHasBeenSet() const { return m_deploymentTargetTypeHasBeenSet; }
55
60 inline void SetDeploymentTargetType(const DeploymentTargetType& value) { m_deploymentTargetTypeHasBeenSet = true; m_deploymentTargetType = value; }
61
66 inline void SetDeploymentTargetType(DeploymentTargetType&& value) { m_deploymentTargetTypeHasBeenSet = true; m_deploymentTargetType = std::move(value); }
67
73
79
80
85 inline const InstanceTarget& GetInstanceTarget() const{ return m_instanceTarget; }
86
91 inline bool InstanceTargetHasBeenSet() const { return m_instanceTargetHasBeenSet; }
92
97 inline void SetInstanceTarget(const InstanceTarget& value) { m_instanceTargetHasBeenSet = true; m_instanceTarget = value; }
98
103 inline void SetInstanceTarget(InstanceTarget&& value) { m_instanceTargetHasBeenSet = true; m_instanceTarget = std::move(value); }
104
109 inline DeploymentTarget& WithInstanceTarget(const InstanceTarget& value) { SetInstanceTarget(value); return *this;}
110
115 inline DeploymentTarget& WithInstanceTarget(InstanceTarget&& value) { SetInstanceTarget(std::move(value)); return *this;}
116
117
122 inline const LambdaTarget& GetLambdaTarget() const{ return m_lambdaTarget; }
123
128 inline bool LambdaTargetHasBeenSet() const { return m_lambdaTargetHasBeenSet; }
129
134 inline void SetLambdaTarget(const LambdaTarget& value) { m_lambdaTargetHasBeenSet = true; m_lambdaTarget = value; }
135
140 inline void SetLambdaTarget(LambdaTarget&& value) { m_lambdaTargetHasBeenSet = true; m_lambdaTarget = std::move(value); }
141
146 inline DeploymentTarget& WithLambdaTarget(const LambdaTarget& value) { SetLambdaTarget(value); return *this;}
147
152 inline DeploymentTarget& WithLambdaTarget(LambdaTarget&& value) { SetLambdaTarget(std::move(value)); return *this;}
153
154
159 inline const ECSTarget& GetEcsTarget() const{ return m_ecsTarget; }
160
165 inline bool EcsTargetHasBeenSet() const { return m_ecsTargetHasBeenSet; }
166
171 inline void SetEcsTarget(const ECSTarget& value) { m_ecsTargetHasBeenSet = true; m_ecsTarget = value; }
172
177 inline void SetEcsTarget(ECSTarget&& value) { m_ecsTargetHasBeenSet = true; m_ecsTarget = std::move(value); }
178
183 inline DeploymentTarget& WithEcsTarget(const ECSTarget& value) { SetEcsTarget(value); return *this;}
184
189 inline DeploymentTarget& WithEcsTarget(ECSTarget&& value) { SetEcsTarget(std::move(value)); return *this;}
190
191
192
193 inline const CloudFormationTarget& GetCloudFormationTarget() const{ return m_cloudFormationTarget; }
194
195
196 inline bool CloudFormationTargetHasBeenSet() const { return m_cloudFormationTargetHasBeenSet; }
197
198
199 inline void SetCloudFormationTarget(const CloudFormationTarget& value) { m_cloudFormationTargetHasBeenSet = true; m_cloudFormationTarget = value; }
200
201
202 inline void SetCloudFormationTarget(CloudFormationTarget&& value) { m_cloudFormationTargetHasBeenSet = true; m_cloudFormationTarget = std::move(value); }
203
204
206
207
209
210 private:
211
212 DeploymentTargetType m_deploymentTargetType;
213 bool m_deploymentTargetTypeHasBeenSet = false;
214
215 InstanceTarget m_instanceTarget;
216 bool m_instanceTargetHasBeenSet = false;
217
218 LambdaTarget m_lambdaTarget;
219 bool m_lambdaTargetHasBeenSet = false;
220
221 ECSTarget m_ecsTarget;
222 bool m_ecsTargetHasBeenSet = false;
223
224 CloudFormationTarget m_cloudFormationTarget;
225 bool m_cloudFormationTargetHasBeenSet = false;
226 };
227
228} // namespace Model
229} // namespace CodeDeploy
230} // namespace Aws
#define AWS_CODEDEPLOY_API
const InstanceTarget & GetInstanceTarget() const
const DeploymentTargetType & GetDeploymentTargetType() const
DeploymentTarget & WithEcsTarget(const ECSTarget &value)
void SetDeploymentTargetType(const DeploymentTargetType &value)
void SetLambdaTarget(LambdaTarget &&value)
DeploymentTarget & WithCloudFormationTarget(const CloudFormationTarget &value)
DeploymentTarget & WithLambdaTarget(LambdaTarget &&value)
AWS_CODEDEPLOY_API DeploymentTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
const CloudFormationTarget & GetCloudFormationTarget() const
DeploymentTarget & WithEcsTarget(ECSTarget &&value)
void SetDeploymentTargetType(DeploymentTargetType &&value)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEcsTarget(const ECSTarget &value)
AWS_CODEDEPLOY_API DeploymentTarget(Aws::Utils::Json::JsonView jsonValue)
DeploymentTarget & WithInstanceTarget(const InstanceTarget &value)
void SetCloudFormationTarget(const CloudFormationTarget &value)
void SetInstanceTarget(InstanceTarget &&value)
DeploymentTarget & WithInstanceTarget(InstanceTarget &&value)
const LambdaTarget & GetLambdaTarget() const
DeploymentTarget & WithDeploymentTargetType(DeploymentTargetType &&value)
DeploymentTarget & WithLambdaTarget(const LambdaTarget &value)
void SetInstanceTarget(const InstanceTarget &value)
void SetCloudFormationTarget(CloudFormationTarget &&value)
DeploymentTarget & WithCloudFormationTarget(CloudFormationTarget &&value)
void SetLambdaTarget(const LambdaTarget &value)
DeploymentTarget & WithDeploymentTargetType(const DeploymentTargetType &value)