AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ComponentT = ComponentState>
51 void SetComponent(ComponentT&& value) { m_componentHasBeenSet = true; m_component = std::forward<ComponentT>(value); }
52 template<typename ComponentT = ComponentState>
53 DeploymentState& WithComponent(ComponentT&& value) { SetComponent(std::forward<ComponentT>(value)); return *this;}
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) { m_environmentHasBeenSet = true; m_environment = std::forward<EnvironmentT>(value); }
64 template<typename EnvironmentT = EnvironmentState>
65 DeploymentState& WithEnvironment(EnvironmentT&& value) { SetEnvironment(std::forward<EnvironmentT>(value)); return *this;}
67
69
72 inline const ServiceInstanceState& GetServiceInstance() const { return m_serviceInstance; }
73 inline bool ServiceInstanceHasBeenSet() const { return m_serviceInstanceHasBeenSet; }
74 template<typename ServiceInstanceT = ServiceInstanceState>
75 void SetServiceInstance(ServiceInstanceT&& value) { m_serviceInstanceHasBeenSet = true; m_serviceInstance = std::forward<ServiceInstanceT>(value); }
76 template<typename ServiceInstanceT = ServiceInstanceState>
77 DeploymentState& WithServiceInstance(ServiceInstanceT&& value) { SetServiceInstance(std::forward<ServiceInstanceT>(value)); return *this;}
79
81
84 inline const ServicePipelineState& GetServicePipeline() const { return m_servicePipeline; }
85 inline bool ServicePipelineHasBeenSet() const { return m_servicePipelineHasBeenSet; }
86 template<typename ServicePipelineT = ServicePipelineState>
87 void SetServicePipeline(ServicePipelineT&& value) { m_servicePipelineHasBeenSet = true; m_servicePipeline = std::forward<ServicePipelineT>(value); }
88 template<typename ServicePipelineT = ServicePipelineState>
89 DeploymentState& WithServicePipeline(ServicePipelineT&& value) { SetServicePipeline(std::forward<ServicePipelineT>(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
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