AWS SDK for C++  1.9.16
AWS SDK for C++
ContainerServiceDeployment.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23  class JsonView;
24 } // namespace Json
25 } // namespace Utils
26 namespace Lightsail
27 {
28 namespace Model
29 {
30 
40  {
41  public:
46 
47 
51  inline int GetVersion() const{ return m_version; }
52 
56  inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
57 
61  inline void SetVersion(int value) { m_versionHasBeenSet = true; m_version = value; }
62 
66  inline ContainerServiceDeployment& WithVersion(int value) { SetVersion(value); return *this;}
67 
68 
81  inline const ContainerServiceDeploymentState& GetState() const{ return m_state; }
82 
95  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
96 
109  inline void SetState(const ContainerServiceDeploymentState& value) { m_stateHasBeenSet = true; m_state = value; }
110 
123  inline void SetState(ContainerServiceDeploymentState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
124 
137  inline ContainerServiceDeployment& WithState(const ContainerServiceDeploymentState& value) { SetState(value); return *this;}
138 
151  inline ContainerServiceDeployment& WithState(ContainerServiceDeploymentState&& value) { SetState(std::move(value)); return *this;}
152 
153 
158  inline const Aws::Map<Aws::String, Container>& GetContainers() const{ return m_containers; }
159 
164  inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
165 
170  inline void SetContainers(const Aws::Map<Aws::String, Container>& value) { m_containersHasBeenSet = true; m_containers = value; }
171 
176  inline void SetContainers(Aws::Map<Aws::String, Container>&& value) { m_containersHasBeenSet = true; m_containers = std::move(value); }
177 
182  inline ContainerServiceDeployment& WithContainers(const Aws::Map<Aws::String, Container>& value) { SetContainers(value); return *this;}
183 
188  inline ContainerServiceDeployment& WithContainers(Aws::Map<Aws::String, Container>&& value) { SetContainers(std::move(value)); return *this;}
189 
194  inline ContainerServiceDeployment& AddContainers(const Aws::String& key, const Container& value) { m_containersHasBeenSet = true; m_containers.emplace(key, value); return *this; }
195 
200  inline ContainerServiceDeployment& AddContainers(Aws::String&& key, const Container& value) { m_containersHasBeenSet = true; m_containers.emplace(std::move(key), value); return *this; }
201 
206  inline ContainerServiceDeployment& AddContainers(const Aws::String& key, Container&& value) { m_containersHasBeenSet = true; m_containers.emplace(key, std::move(value)); return *this; }
207 
212  inline ContainerServiceDeployment& AddContainers(Aws::String&& key, Container&& value) { m_containersHasBeenSet = true; m_containers.emplace(std::move(key), std::move(value)); return *this; }
213 
218  inline ContainerServiceDeployment& AddContainers(const char* key, Container&& value) { m_containersHasBeenSet = true; m_containers.emplace(key, std::move(value)); return *this; }
219 
224  inline ContainerServiceDeployment& AddContainers(const char* key, const Container& value) { m_containersHasBeenSet = true; m_containers.emplace(key, value); return *this; }
225 
226 
230  inline const ContainerServiceEndpoint& GetPublicEndpoint() const{ return m_publicEndpoint; }
231 
235  inline bool PublicEndpointHasBeenSet() const { return m_publicEndpointHasBeenSet; }
236 
240  inline void SetPublicEndpoint(const ContainerServiceEndpoint& value) { m_publicEndpointHasBeenSet = true; m_publicEndpoint = value; }
241 
245  inline void SetPublicEndpoint(ContainerServiceEndpoint&& value) { m_publicEndpointHasBeenSet = true; m_publicEndpoint = std::move(value); }
246 
250  inline ContainerServiceDeployment& WithPublicEndpoint(const ContainerServiceEndpoint& value) { SetPublicEndpoint(value); return *this;}
251 
255  inline ContainerServiceDeployment& WithPublicEndpoint(ContainerServiceEndpoint&& value) { SetPublicEndpoint(std::move(value)); return *this;}
256 
257 
261  inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
262 
266  inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
267 
271  inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
272 
276  inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
277 
281  inline ContainerServiceDeployment& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
282 
286  inline ContainerServiceDeployment& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
287 
288  private:
289 
290  int m_version;
291  bool m_versionHasBeenSet;
292 
294  bool m_stateHasBeenSet;
295 
297  bool m_containersHasBeenSet;
298 
299  ContainerServiceEndpoint m_publicEndpoint;
300  bool m_publicEndpointHasBeenSet;
301 
302  Aws::Utils::DateTime m_createdAt;
303  bool m_createdAtHasBeenSet;
304  };
305 
306 } // namespace Model
307 } // namespace Lightsail
308 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Lightsail::Model::ContainerServiceDeployment::CreatedAtHasBeenSet
bool CreatedAtHasBeenSet() const
Definition: ContainerServiceDeployment.h:266
Aws::Lightsail::Model::ContainerServiceDeployment::StateHasBeenSet
bool StateHasBeenSet() const
Definition: ContainerServiceDeployment.h:95
Aws::Lightsail::Model::ContainerServiceDeployment
Definition: ContainerServiceDeployment.h:40
Aws::Lightsail::Model::ContainerServiceDeployment::GetVersion
int GetVersion() const
Definition: ContainerServiceDeployment.h:51
Aws::Lightsail::Model::Container
Definition: Container.h:37
Aws::Lightsail::Model::ContainerServiceDeploymentState
ContainerServiceDeploymentState
Definition: ContainerServiceDeploymentState.h:17
Aws::Lightsail::Model::ContainerServiceDeployment::ContainersHasBeenSet
bool ContainersHasBeenSet() const
Definition: ContainerServiceDeployment.h:164
Aws::Lightsail::Model::ContainerServiceDeployment::AddContainers
ContainerServiceDeployment & AddContainers(Aws::String &&key, Container &&value)
Definition: ContainerServiceDeployment.h:212
Aws::Lightsail::Model::ContainerServiceDeployment::WithContainers
ContainerServiceDeployment & WithContainers(Aws::Map< Aws::String, Container > &&value)
Definition: ContainerServiceDeployment.h:188
DateTime.h
Aws::Lightsail::Model::ContainerServiceDeployment::WithCreatedAt
ContainerServiceDeployment & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition: ContainerServiceDeployment.h:281
Aws::Lightsail::Model::ContainerServiceEndpoint
Definition: ContainerServiceEndpoint.h:34
Aws::Lightsail::Model::ContainerServiceDeployment::WithVersion
ContainerServiceDeployment & WithVersion(int value)
Definition: ContainerServiceDeployment.h:66
Aws::Lightsail::Model::ContainerServiceDeployment::PublicEndpointHasBeenSet
bool PublicEndpointHasBeenSet() const
Definition: ContainerServiceDeployment.h:235
Aws::Lightsail::Model::ContainerServiceDeployment::AddContainers
ContainerServiceDeployment & AddContainers(const char *key, const Container &value)
Definition: ContainerServiceDeployment.h:224
Aws::Lightsail::Model::ContainerServiceDeployment::AddContainers
ContainerServiceDeployment & AddContainers(Aws::String &&key, const Container &value)
Definition: ContainerServiceDeployment.h:200
Aws::Lightsail::Model::ContainerServiceDeployment::VersionHasBeenSet
bool VersionHasBeenSet() const
Definition: ContainerServiceDeployment.h:56
Aws::Lightsail::Model::ContainerServiceDeployment::SetPublicEndpoint
void SetPublicEndpoint(const ContainerServiceEndpoint &value)
Definition: ContainerServiceDeployment.h:240
Aws::Lightsail::Model::ContainerServiceDeployment::GetCreatedAt
const Aws::Utils::DateTime & GetCreatedAt() const
Definition: ContainerServiceDeployment.h:261
Aws::Lightsail::Model::ContainerServiceDeployment::SetContainers
void SetContainers(Aws::Map< Aws::String, Container > &&value)
Definition: ContainerServiceDeployment.h:176
Aws::Lightsail::Model::ContainerServiceDeployment::WithCreatedAt
ContainerServiceDeployment & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition: ContainerServiceDeployment.h:286
Aws::Lightsail::Model::ContainerServiceDeployment::GetPublicEndpoint
const ContainerServiceEndpoint & GetPublicEndpoint() const
Definition: ContainerServiceDeployment.h:230
Aws::Lightsail::Model::ContainerServiceDeployment::GetContainers
const Aws::Map< Aws::String, Container > & GetContainers() const
Definition: ContainerServiceDeployment.h:158
ContainerServiceDeploymentState.h
Aws::Lightsail::Model::ContainerServiceDeployment::SetContainers
void SetContainers(const Aws::Map< Aws::String, Container > &value)
Definition: ContainerServiceDeployment.h:170
Aws::Lightsail::Model::ContainerServiceDeployment::ContainerServiceDeployment
ContainerServiceDeployment()
Aws::Lightsail::Model::ContainerServiceDeployment::AddContainers
ContainerServiceDeployment & AddContainers(const Aws::String &key, Container &&value)
Definition: ContainerServiceDeployment.h:206
Aws::Lightsail::Model::ContainerServiceDeployment::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::ContainerServiceDeployment::SetState
void SetState(ContainerServiceDeploymentState &&value)
Definition: ContainerServiceDeployment.h:123
Aws::Lightsail::Model::ContainerServiceDeployment::WithPublicEndpoint
ContainerServiceDeployment & WithPublicEndpoint(const ContainerServiceEndpoint &value)
Definition: ContainerServiceDeployment.h:250
Aws::Lightsail::Model::ContainerServiceDeployment::SetVersion
void SetVersion(int value)
Definition: ContainerServiceDeployment.h:61
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Lightsail::Model::ContainerServiceDeployment::SetPublicEndpoint
void SetPublicEndpoint(ContainerServiceEndpoint &&value)
Definition: ContainerServiceDeployment.h:245
Aws::Lightsail::Model::ContainerServiceDeployment::AddContainers
ContainerServiceDeployment & AddContainers(const Aws::String &key, const Container &value)
Definition: ContainerServiceDeployment.h:194
Aws::Lightsail::Model::ContainerServiceDeployment::SetCreatedAt
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition: ContainerServiceDeployment.h:276
Aws::Lightsail::Model::ContainerServiceDeployment::SetState
void SetState(const ContainerServiceDeploymentState &value)
Definition: ContainerServiceDeployment.h:109
Lightsail_EXPORTS.h
ContainerServiceEndpoint.h
Aws::Lightsail::Model::ContainerServiceDeployment::WithContainers
ContainerServiceDeployment & WithContainers(const Aws::Map< Aws::String, Container > &value)
Definition: ContainerServiceDeployment.h:182
Aws::Lightsail::Model::ContainerServiceDeployment::WithState
ContainerServiceDeployment & WithState(const ContainerServiceDeploymentState &value)
Definition: ContainerServiceDeployment.h:137
Container.h
Aws::Lightsail::Model::ContainerServiceDeployment::SetCreatedAt
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition: ContainerServiceDeployment.h:271
Aws::Lightsail::Model::ContainerServiceDeployment::operator=
ContainerServiceDeployment & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::ContainerServiceDeployment::WithState
ContainerServiceDeployment & WithState(ContainerServiceDeploymentState &&value)
Definition: ContainerServiceDeployment.h:151
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::ContainerServiceDeployment::ContainerServiceDeployment
ContainerServiceDeployment(Aws::Utils::Json::JsonView jsonValue)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::ContainerServiceDeployment::GetState
const ContainerServiceDeploymentState & GetState() const
Definition: ContainerServiceDeployment.h:81
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::ContainerServiceDeployment::WithPublicEndpoint
ContainerServiceDeployment & WithPublicEndpoint(ContainerServiceEndpoint &&value)
Definition: ContainerServiceDeployment.h:255
AWSMap.h
Aws::Lightsail::Model::ContainerServiceDeployment::AddContainers
ContainerServiceDeployment & AddContainers(const char *key, Container &&value)
Definition: ContainerServiceDeployment.h:218
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19