AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DeploymentState.h
1
6#pragma once
7#include <aws/proton/Proton_EXPORTS.h>
8#include <aws/proton/model/ComponentState.h>
9#include <aws/proton/model/EnvironmentState.h>
10#include <aws/proton/model/ServiceInstanceState.h>
11#include <aws/proton/model/ServicePipelineState.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Proton
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_PROTON_API DeploymentState();
41 AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const ComponentState& GetComponent() const{ return m_component; }
49 inline bool ComponentHasBeenSet() const { return m_componentHasBeenSet; }
50 inline void SetComponent(const ComponentState& value) { m_componentHasBeenSet = true; m_component = value; }
51 inline void SetComponent(ComponentState&& value) { m_componentHasBeenSet = true; m_component = std::move(value); }
52 inline DeploymentState& WithComponent(const ComponentState& value) { SetComponent(value); return *this;}
53 inline DeploymentState& WithComponent(ComponentState&& value) { SetComponent(std::move(value)); return *this;}
55
57
60 inline const EnvironmentState& GetEnvironment() const{ return m_environment; }
61 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
62 inline void SetEnvironment(const EnvironmentState& value) { m_environmentHasBeenSet = true; m_environment = value; }
63 inline void SetEnvironment(EnvironmentState&& value) { m_environmentHasBeenSet = true; m_environment = std::move(value); }
64 inline DeploymentState& WithEnvironment(const EnvironmentState& value) { SetEnvironment(value); return *this;}
65 inline DeploymentState& WithEnvironment(EnvironmentState&& value) { SetEnvironment(std::move(value)); return *this;}
67
69
72 inline const ServiceInstanceState& GetServiceInstance() const{ return m_serviceInstance; }
73 inline bool ServiceInstanceHasBeenSet() const { return m_serviceInstanceHasBeenSet; }
74 inline void SetServiceInstance(const ServiceInstanceState& value) { m_serviceInstanceHasBeenSet = true; m_serviceInstance = value; }
75 inline void SetServiceInstance(ServiceInstanceState&& value) { m_serviceInstanceHasBeenSet = true; m_serviceInstance = std::move(value); }
76 inline DeploymentState& WithServiceInstance(const ServiceInstanceState& value) { SetServiceInstance(value); return *this;}
77 inline DeploymentState& WithServiceInstance(ServiceInstanceState&& value) { SetServiceInstance(std::move(value)); return *this;}
79
81
84 inline const ServicePipelineState& GetServicePipeline() const{ return m_servicePipeline; }
85 inline bool ServicePipelineHasBeenSet() const { return m_servicePipelineHasBeenSet; }
86 inline void SetServicePipeline(const ServicePipelineState& value) { m_servicePipelineHasBeenSet = true; m_servicePipeline = value; }
87 inline void SetServicePipeline(ServicePipelineState&& value) { m_servicePipelineHasBeenSet = true; m_servicePipeline = std::move(value); }
88 inline DeploymentState& WithServicePipeline(const ServicePipelineState& value) { SetServicePipeline(value); return *this;}
89 inline DeploymentState& WithServicePipeline(ServicePipelineState&& value) { SetServicePipeline(std::move(value)); return *this;}
91 private:
92
93 ComponentState m_component;
94 bool m_componentHasBeenSet = false;
95
96 EnvironmentState m_environment;
97 bool m_environmentHasBeenSet = false;
98
99 ServiceInstanceState m_serviceInstance;
100 bool m_serviceInstanceHasBeenSet = false;
101
102 ServicePipelineState m_servicePipeline;
103 bool m_servicePipelineHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace Proton
108} // namespace Aws
const EnvironmentState & GetEnvironment() const
void SetComponent(ComponentState &&value)
DeploymentState & WithServiceInstance(const ServiceInstanceState &value)
void SetComponent(const ComponentState &value)
const ServicePipelineState & GetServicePipeline() const
DeploymentState & WithEnvironment(const EnvironmentState &value)
const ComponentState & GetComponent() const
void SetServicePipeline(const ServicePipelineState &value)
void SetServiceInstance(const ServiceInstanceState &value)
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
DeploymentState & WithServicePipeline(ServicePipelineState &&value)
DeploymentState & WithComponent(ComponentState &&value)
DeploymentState & WithComponent(const ComponentState &value)
const ServiceInstanceState & GetServiceInstance() const
AWS_PROTON_API DeploymentState & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEnvironment(const EnvironmentState &value)
DeploymentState & WithServicePipeline(const ServicePipelineState &value)
void SetServiceInstance(ServiceInstanceState &&value)
DeploymentState & WithEnvironment(EnvironmentState &&value)
DeploymentState & WithServiceInstance(ServiceInstanceState &&value)
void SetServicePipeline(ServicePipelineState &&value)
AWS_PROTON_API DeploymentState(Aws::Utils::Json::JsonView jsonValue)
void SetEnvironment(EnvironmentState &&value)
Aws::Utils::Json::JsonValue JsonValue