AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Proton {
23namespace Model {
24
32 public:
33 AWS_PROTON_API DeploymentState() = default;
36 AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const ComponentState& GetComponent() const { return m_component; }
43 inline bool ComponentHasBeenSet() const { return m_componentHasBeenSet; }
44 template <typename ComponentT = ComponentState>
45 void SetComponent(ComponentT&& value) {
46 m_componentHasBeenSet = true;
47 m_component = std::forward<ComponentT>(value);
48 }
49 template <typename ComponentT = ComponentState>
50 DeploymentState& WithComponent(ComponentT&& value) {
51 SetComponent(std::forward<ComponentT>(value));
52 return *this;
53 }
55
57
60 inline const EnvironmentState& GetEnvironment() const { return m_environment; }
61 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
62 template <typename EnvironmentT = EnvironmentState>
63 void SetEnvironment(EnvironmentT&& value) {
64 m_environmentHasBeenSet = true;
65 m_environment = std::forward<EnvironmentT>(value);
66 }
67 template <typename EnvironmentT = EnvironmentState>
68 DeploymentState& WithEnvironment(EnvironmentT&& value) {
69 SetEnvironment(std::forward<EnvironmentT>(value));
70 return *this;
71 }
73
75
78 inline const ServiceInstanceState& GetServiceInstance() const { return m_serviceInstance; }
79 inline bool ServiceInstanceHasBeenSet() const { return m_serviceInstanceHasBeenSet; }
80 template <typename ServiceInstanceT = ServiceInstanceState>
81 void SetServiceInstance(ServiceInstanceT&& value) {
82 m_serviceInstanceHasBeenSet = true;
83 m_serviceInstance = std::forward<ServiceInstanceT>(value);
84 }
85 template <typename ServiceInstanceT = ServiceInstanceState>
86 DeploymentState& WithServiceInstance(ServiceInstanceT&& value) {
87 SetServiceInstance(std::forward<ServiceInstanceT>(value));
88 return *this;
89 }
91
93
96 inline const ServicePipelineState& GetServicePipeline() const { return m_servicePipeline; }
97 inline bool ServicePipelineHasBeenSet() const { return m_servicePipelineHasBeenSet; }
98 template <typename ServicePipelineT = ServicePipelineState>
99 void SetServicePipeline(ServicePipelineT&& value) {
100 m_servicePipelineHasBeenSet = true;
101 m_servicePipeline = std::forward<ServicePipelineT>(value);
102 }
103 template <typename ServicePipelineT = ServicePipelineState>
104 DeploymentState& WithServicePipeline(ServicePipelineT&& value) {
105 SetServicePipeline(std::forward<ServicePipelineT>(value));
106 return *this;
107 }
109 private:
110 ComponentState m_component;
111
112 EnvironmentState m_environment;
113
114 ServiceInstanceState m_serviceInstance;
115
116 ServicePipelineState m_servicePipeline;
117 bool m_componentHasBeenSet = false;
118 bool m_environmentHasBeenSet = false;
119 bool m_serviceInstanceHasBeenSet = false;
120 bool m_servicePipelineHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace Proton
125} // namespace Aws
const EnvironmentState & GetEnvironment() const
DeploymentState & WithComponent(ComponentT &&value)
AWS_PROTON_API DeploymentState()=default
void SetServiceInstance(ServiceInstanceT &&value)
const ServicePipelineState & GetServicePipeline() const
const ComponentState & GetComponent() const
DeploymentState & WithServiceInstance(ServiceInstanceT &&value)
DeploymentState & WithEnvironment(EnvironmentT &&value)
void SetComponent(ComponentT &&value)
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEnvironment(EnvironmentT &&value)
const ServiceInstanceState & GetServiceInstance() const
AWS_PROTON_API DeploymentState & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PROTON_API DeploymentState(Aws::Utils::Json::JsonView jsonValue)
void SetServicePipeline(ServicePipelineT &&value)
DeploymentState & WithServicePipeline(ServicePipelineT &&value)
Aws::Utils::Json::JsonValue JsonValue