AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ContainerServiceDeploymentRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lightsail/Lightsail_EXPORTS.h>
10#include <aws/lightsail/model/Container.h>
11#include <aws/lightsail/model/EndpointRequest.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Lightsail {
23namespace Model {
24
34 public:
35 AWS_LIGHTSAIL_API ContainerServiceDeploymentRequest() = default;
38 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const Aws::Map<Aws::String, Container>& GetContainers() const { return m_containers; }
46 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
47 template <typename ContainersT = Aws::Map<Aws::String, Container>>
48 void SetContainers(ContainersT&& value) {
49 m_containersHasBeenSet = true;
50 m_containers = std::forward<ContainersT>(value);
51 }
52 template <typename ContainersT = Aws::Map<Aws::String, Container>>
54 SetContainers(std::forward<ContainersT>(value));
55 return *this;
56 }
57 template <typename ContainersKeyT = Aws::String, typename ContainersValueT = Container>
58 ContainerServiceDeploymentRequest& AddContainers(ContainersKeyT&& key, ContainersValueT&& value) {
59 m_containersHasBeenSet = true;
60 m_containers.emplace(std::forward<ContainersKeyT>(key), std::forward<ContainersValueT>(value));
61 return *this;
62 }
64
66
69 inline const EndpointRequest& GetPublicEndpoint() const { return m_publicEndpoint; }
70 inline bool PublicEndpointHasBeenSet() const { return m_publicEndpointHasBeenSet; }
71 template <typename PublicEndpointT = EndpointRequest>
72 void SetPublicEndpoint(PublicEndpointT&& value) {
73 m_publicEndpointHasBeenSet = true;
74 m_publicEndpoint = std::forward<PublicEndpointT>(value);
75 }
76 template <typename PublicEndpointT = EndpointRequest>
78 SetPublicEndpoint(std::forward<PublicEndpointT>(value));
79 return *this;
80 }
82 private:
84
85 EndpointRequest m_publicEndpoint;
86 bool m_containersHasBeenSet = false;
87 bool m_publicEndpointHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace Lightsail
92} // namespace Aws
AWS_LIGHTSAIL_API ContainerServiceDeploymentRequest()=default
ContainerServiceDeploymentRequest & AddContainers(ContainersKeyT &&key, ContainersValueT &&value)
const Aws::Map< Aws::String, Container > & GetContainers() const
ContainerServiceDeploymentRequest & WithContainers(ContainersT &&value)
AWS_LIGHTSAIL_API ContainerServiceDeploymentRequest(Aws::Utils::Json::JsonView jsonValue)
ContainerServiceDeploymentRequest & WithPublicEndpoint(PublicEndpointT &&value)
AWS_LIGHTSAIL_API ContainerServiceDeploymentRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue