AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ContainerServiceDeployment.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/model/ContainerServiceDeploymentState.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/lightsail/model/ContainerServiceEndpoint.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/lightsail/model/Container.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Lightsail
27{
28namespace Model
29{
30
40 {
41 public:
42 AWS_LIGHTSAIL_API ContainerServiceDeployment() = default;
45 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline int GetVersion() const { return m_version; }
53 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
54 inline void SetVersion(int value) { m_versionHasBeenSet = true; m_version = value; }
55 inline ContainerServiceDeployment& WithVersion(int value) { SetVersion(value); return *this;}
57
59
71 inline ContainerServiceDeploymentState GetState() const { return m_state; }
72 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
73 inline void SetState(ContainerServiceDeploymentState value) { m_stateHasBeenSet = true; m_state = value; }
76
78
82 inline const Aws::Map<Aws::String, Container>& GetContainers() const { return m_containers; }
83 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
84 template<typename ContainersT = Aws::Map<Aws::String, Container>>
85 void SetContainers(ContainersT&& value) { m_containersHasBeenSet = true; m_containers = std::forward<ContainersT>(value); }
86 template<typename ContainersT = Aws::Map<Aws::String, Container>>
87 ContainerServiceDeployment& WithContainers(ContainersT&& value) { SetContainers(std::forward<ContainersT>(value)); return *this;}
88 template<typename ContainersKeyT = Aws::String, typename ContainersValueT = Container>
89 ContainerServiceDeployment& AddContainers(ContainersKeyT&& key, ContainersValueT&& value) {
90 m_containersHasBeenSet = true; m_containers.emplace(std::forward<ContainersKeyT>(key), std::forward<ContainersValueT>(value)); return *this;
91 }
93
95
98 inline const ContainerServiceEndpoint& GetPublicEndpoint() const { return m_publicEndpoint; }
99 inline bool PublicEndpointHasBeenSet() const { return m_publicEndpointHasBeenSet; }
100 template<typename PublicEndpointT = ContainerServiceEndpoint>
101 void SetPublicEndpoint(PublicEndpointT&& value) { m_publicEndpointHasBeenSet = true; m_publicEndpoint = std::forward<PublicEndpointT>(value); }
102 template<typename PublicEndpointT = ContainerServiceEndpoint>
103 ContainerServiceDeployment& WithPublicEndpoint(PublicEndpointT&& value) { SetPublicEndpoint(std::forward<PublicEndpointT>(value)); return *this;}
105
107
110 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
111 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
112 template<typename CreatedAtT = Aws::Utils::DateTime>
113 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
114 template<typename CreatedAtT = Aws::Utils::DateTime>
115 ContainerServiceDeployment& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
117 private:
118
119 int m_version{0};
120 bool m_versionHasBeenSet = false;
121
123 bool m_stateHasBeenSet = false;
124
126 bool m_containersHasBeenSet = false;
127
128 ContainerServiceEndpoint m_publicEndpoint;
129 bool m_publicEndpointHasBeenSet = false;
130
131 Aws::Utils::DateTime m_createdAt{};
132 bool m_createdAtHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace Lightsail
137} // 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