AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const ContainerServiceDeploymentState& GetState() const{ return m_state; }
72 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
73 inline void SetState(const ContainerServiceDeploymentState& value) { m_stateHasBeenSet = true; m_state = value; }
74 inline void SetState(ContainerServiceDeploymentState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
76 inline ContainerServiceDeployment& WithState(ContainerServiceDeploymentState&& value) { SetState(std::move(value)); return *this;}
78
80
84 inline const Aws::Map<Aws::String, Container>& GetContainers() const{ return m_containers; }
85 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
86 inline void SetContainers(const Aws::Map<Aws::String, Container>& value) { m_containersHasBeenSet = true; m_containers = value; }
87 inline void SetContainers(Aws::Map<Aws::String, Container>&& value) { m_containersHasBeenSet = true; m_containers = std::move(value); }
90 inline ContainerServiceDeployment& AddContainers(const Aws::String& key, const Container& value) { m_containersHasBeenSet = true; m_containers.emplace(key, value); return *this; }
91 inline ContainerServiceDeployment& AddContainers(Aws::String&& key, const Container& value) { m_containersHasBeenSet = true; m_containers.emplace(std::move(key), value); return *this; }
92 inline ContainerServiceDeployment& AddContainers(const Aws::String& key, Container&& value) { m_containersHasBeenSet = true; m_containers.emplace(key, std::move(value)); return *this; }
93 inline ContainerServiceDeployment& AddContainers(Aws::String&& key, Container&& value) { m_containersHasBeenSet = true; m_containers.emplace(std::move(key), std::move(value)); return *this; }
94 inline ContainerServiceDeployment& AddContainers(const char* key, Container&& value) { m_containersHasBeenSet = true; m_containers.emplace(key, std::move(value)); return *this; }
95 inline ContainerServiceDeployment& AddContainers(const char* key, const Container& value) { m_containersHasBeenSet = true; m_containers.emplace(key, value); return *this; }
97
99
102 inline const ContainerServiceEndpoint& GetPublicEndpoint() const{ return m_publicEndpoint; }
103 inline bool PublicEndpointHasBeenSet() const { return m_publicEndpointHasBeenSet; }
104 inline void SetPublicEndpoint(const ContainerServiceEndpoint& value) { m_publicEndpointHasBeenSet = true; m_publicEndpoint = value; }
105 inline void SetPublicEndpoint(ContainerServiceEndpoint&& value) { m_publicEndpointHasBeenSet = true; m_publicEndpoint = std::move(value); }
109
111
114 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
115 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
116 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
117 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
118 inline ContainerServiceDeployment& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
119 inline ContainerServiceDeployment& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
121 private:
122
123 int m_version;
124 bool m_versionHasBeenSet = false;
125
127 bool m_stateHasBeenSet = false;
128
130 bool m_containersHasBeenSet = false;
131
132 ContainerServiceEndpoint m_publicEndpoint;
133 bool m_publicEndpointHasBeenSet = false;
134
135 Aws::Utils::DateTime m_createdAt;
136 bool m_createdAtHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace Lightsail
141} // namespace Aws
ContainerServiceDeployment & AddContainers(const Aws::String &key, Container &&value)
void SetState(const ContainerServiceDeploymentState &value)
ContainerServiceDeployment & WithCreatedAt(Aws::Utils::DateTime &&value)
ContainerServiceDeployment & WithState(const ContainerServiceDeploymentState &value)
ContainerServiceDeployment & AddContainers(const Aws::String &key, const Container &value)
ContainerServiceDeployment & AddContainers(const char *key, const Container &value)
void SetState(ContainerServiceDeploymentState &&value)
AWS_LIGHTSAIL_API ContainerServiceDeployment & operator=(Aws::Utils::Json::JsonView jsonValue)
ContainerServiceDeployment & WithPublicEndpoint(ContainerServiceEndpoint &&value)
const ContainerServiceDeploymentState & GetState() const
ContainerServiceDeployment & AddContainers(Aws::String &&key, const Container &value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPublicEndpoint(const ContainerServiceEndpoint &value)
ContainerServiceDeployment & WithContainers(Aws::Map< Aws::String, Container > &&value)
AWS_LIGHTSAIL_API ContainerServiceDeployment(Aws::Utils::Json::JsonView jsonValue)
ContainerServiceDeployment & WithVersion(int value)
ContainerServiceDeployment & WithCreatedAt(const Aws::Utils::DateTime &value)
void SetContainers(Aws::Map< Aws::String, Container > &&value)
void SetContainers(const Aws::Map< Aws::String, Container > &value)
void SetPublicEndpoint(ContainerServiceEndpoint &&value)
ContainerServiceDeployment & WithContainers(const Aws::Map< Aws::String, Container > &value)
ContainerServiceDeployment & WithState(ContainerServiceDeploymentState &&value)
ContainerServiceDeployment & WithPublicEndpoint(const ContainerServiceEndpoint &value)
ContainerServiceDeployment & AddContainers(const char *key, Container &&value)
const ContainerServiceEndpoint & GetPublicEndpoint() const
ContainerServiceDeployment & AddContainers(Aws::String &&key, Container &&value)
const Aws::Map< Aws::String, Container > & GetContainers() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue