AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DeploymentTarget.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/codedeploy/model/DeploymentTargetType.h>
9#include <aws/codedeploy/model/InstanceTarget.h>
10#include <aws/codedeploy/model/LambdaTarget.h>
11#include <aws/codedeploy/model/ECSTarget.h>
12#include <aws/codedeploy/model/CloudFormationTarget.h>
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:
38 AWS_CODEDEPLOY_API DeploymentTarget();
39 AWS_CODEDEPLOY_API DeploymentTarget(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const DeploymentTargetType& GetDeploymentTargetType() const{ return m_deploymentTargetType; }
50 inline bool DeploymentTargetTypeHasBeenSet() const { return m_deploymentTargetTypeHasBeenSet; }
51 inline void SetDeploymentTargetType(const DeploymentTargetType& value) { m_deploymentTargetTypeHasBeenSet = true; m_deploymentTargetType = value; }
52 inline void SetDeploymentTargetType(DeploymentTargetType&& value) { m_deploymentTargetTypeHasBeenSet = true; m_deploymentTargetType = std::move(value); }
56
58
62 inline const InstanceTarget& GetInstanceTarget() const{ return m_instanceTarget; }
63 inline bool InstanceTargetHasBeenSet() const { return m_instanceTargetHasBeenSet; }
64 inline void SetInstanceTarget(const InstanceTarget& value) { m_instanceTargetHasBeenSet = true; m_instanceTarget = value; }
65 inline void SetInstanceTarget(InstanceTarget&& value) { m_instanceTargetHasBeenSet = true; m_instanceTarget = std::move(value); }
66 inline DeploymentTarget& WithInstanceTarget(const InstanceTarget& value) { SetInstanceTarget(value); return *this;}
67 inline DeploymentTarget& WithInstanceTarget(InstanceTarget&& value) { SetInstanceTarget(std::move(value)); return *this;}
69
71
75 inline const LambdaTarget& GetLambdaTarget() const{ return m_lambdaTarget; }
76 inline bool LambdaTargetHasBeenSet() const { return m_lambdaTargetHasBeenSet; }
77 inline void SetLambdaTarget(const LambdaTarget& value) { m_lambdaTargetHasBeenSet = true; m_lambdaTarget = value; }
78 inline void SetLambdaTarget(LambdaTarget&& value) { m_lambdaTargetHasBeenSet = true; m_lambdaTarget = std::move(value); }
79 inline DeploymentTarget& WithLambdaTarget(const LambdaTarget& value) { SetLambdaTarget(value); return *this;}
80 inline DeploymentTarget& WithLambdaTarget(LambdaTarget&& value) { SetLambdaTarget(std::move(value)); return *this;}
82
84
88 inline const ECSTarget& GetEcsTarget() const{ return m_ecsTarget; }
89 inline bool EcsTargetHasBeenSet() const { return m_ecsTargetHasBeenSet; }
90 inline void SetEcsTarget(const ECSTarget& value) { m_ecsTargetHasBeenSet = true; m_ecsTarget = value; }
91 inline void SetEcsTarget(ECSTarget&& value) { m_ecsTargetHasBeenSet = true; m_ecsTarget = std::move(value); }
92 inline DeploymentTarget& WithEcsTarget(const ECSTarget& value) { SetEcsTarget(value); return *this;}
93 inline DeploymentTarget& WithEcsTarget(ECSTarget&& value) { SetEcsTarget(std::move(value)); return *this;}
95
97
98 inline const CloudFormationTarget& GetCloudFormationTarget() const{ return m_cloudFormationTarget; }
99 inline bool CloudFormationTargetHasBeenSet() const { return m_cloudFormationTargetHasBeenSet; }
100 inline void SetCloudFormationTarget(const CloudFormationTarget& value) { m_cloudFormationTargetHasBeenSet = true; m_cloudFormationTarget = value; }
101 inline void SetCloudFormationTarget(CloudFormationTarget&& value) { m_cloudFormationTargetHasBeenSet = true; m_cloudFormationTarget = std::move(value); }
105 private:
106
107 DeploymentTargetType m_deploymentTargetType;
108 bool m_deploymentTargetTypeHasBeenSet = false;
109
110 InstanceTarget m_instanceTarget;
111 bool m_instanceTargetHasBeenSet = false;
112
113 LambdaTarget m_lambdaTarget;
114 bool m_lambdaTargetHasBeenSet = false;
115
116 ECSTarget m_ecsTarget;
117 bool m_ecsTargetHasBeenSet = false;
118
119 CloudFormationTarget m_cloudFormationTarget;
120 bool m_cloudFormationTargetHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace CodeDeploy
125} // namespace Aws
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)
Aws::Utils::Json::JsonValue JsonValue