AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
ContainerServiceDeployment.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lightsail/Lightsail_EXPORTS.h>
11#include <aws/lightsail/model/Container.h>
12#include <aws/lightsail/model/ContainerServiceDeploymentState.h>
13#include <aws/lightsail/model/ContainerServiceEndpoint.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Lightsail {
25namespace Model {
26
36 public:
37 AWS_LIGHTSAIL_API ContainerServiceDeployment() = default;
40 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline int GetVersion() const { return m_version; }
47 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
48 inline void SetVersion(int value) {
49 m_versionHasBeenSet = true;
50 m_version = value;
51 }
53 SetVersion(value);
54 return *this;
55 }
57
59
71 inline ContainerServiceDeploymentState GetState() const { return m_state; }
72 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
74 m_stateHasBeenSet = true;
75 m_state = value;
76 }
78 SetState(value);
79 return *this;
80 }
82
84
88 inline const Aws::Map<Aws::String, Container>& GetContainers() const { return m_containers; }
89 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
90 template <typename ContainersT = Aws::Map<Aws::String, Container>>
91 void SetContainers(ContainersT&& value) {
92 m_containersHasBeenSet = true;
93 m_containers = std::forward<ContainersT>(value);
94 }
95 template <typename ContainersT = Aws::Map<Aws::String, Container>>
97 SetContainers(std::forward<ContainersT>(value));
98 return *this;
99 }
100 template <typename ContainersKeyT = Aws::String, typename ContainersValueT = Container>
101 ContainerServiceDeployment& AddContainers(ContainersKeyT&& key, ContainersValueT&& value) {
102 m_containersHasBeenSet = true;
103 m_containers.emplace(std::forward<ContainersKeyT>(key), std::forward<ContainersValueT>(value));
104 return *this;
105 }
107
109
112 inline const ContainerServiceEndpoint& GetPublicEndpoint() const { return m_publicEndpoint; }
113 inline bool PublicEndpointHasBeenSet() const { return m_publicEndpointHasBeenSet; }
114 template <typename PublicEndpointT = ContainerServiceEndpoint>
115 void SetPublicEndpoint(PublicEndpointT&& value) {
116 m_publicEndpointHasBeenSet = true;
117 m_publicEndpoint = std::forward<PublicEndpointT>(value);
118 }
119 template <typename PublicEndpointT = ContainerServiceEndpoint>
121 SetPublicEndpoint(std::forward<PublicEndpointT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
131 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
132 template <typename CreatedAtT = Aws::Utils::DateTime>
133 void SetCreatedAt(CreatedAtT&& value) {
134 m_createdAtHasBeenSet = true;
135 m_createdAt = std::forward<CreatedAtT>(value);
136 }
137 template <typename CreatedAtT = Aws::Utils::DateTime>
139 SetCreatedAt(std::forward<CreatedAtT>(value));
140 return *this;
141 }
143 private:
144 int m_version{0};
145
147
149
150 ContainerServiceEndpoint m_publicEndpoint;
151
152 Aws::Utils::DateTime m_createdAt{};
153 bool m_versionHasBeenSet = false;
154 bool m_stateHasBeenSet = false;
155 bool m_containersHasBeenSet = false;
156 bool m_publicEndpointHasBeenSet = false;
157 bool m_createdAtHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace Lightsail
162} // namespace Aws
ContainerServiceDeployment & WithState(ContainerServiceDeploymentState value)
ContainerServiceDeployment & WithCreatedAt(CreatedAtT &&value)
AWS_LIGHTSAIL_API ContainerServiceDeployment & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LIGHTSAIL_API ContainerServiceDeployment(Aws::Utils::Json::JsonView jsonValue)
ContainerServiceDeployment & WithVersion(int value)
ContainerServiceDeployment & WithPublicEndpoint(PublicEndpointT &&value)
void SetState(ContainerServiceDeploymentState value)
ContainerServiceDeployment & AddContainers(ContainersKeyT &&key, ContainersValueT &&value)
AWS_LIGHTSAIL_API ContainerServiceDeployment()=default
ContainerServiceDeployment & WithContainers(ContainersT &&value)
const ContainerServiceEndpoint & GetPublicEndpoint() const
const Aws::Map< Aws::String, Container > & GetContainers() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue