AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ContainerServiceDeploymentRequest.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/lightsail/model/EndpointRequest.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/lightsail/model/Container.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Lightsail
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_LIGHTSAIL_API ContainerServiceDeploymentRequest() = default;
43 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Aws::Map<Aws::String, Container>& GetContainers() const { return m_containers; }
52 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
53 template<typename ContainersT = Aws::Map<Aws::String, Container>>
54 void SetContainers(ContainersT&& value) { m_containersHasBeenSet = true; m_containers = std::forward<ContainersT>(value); }
55 template<typename ContainersT = Aws::Map<Aws::String, Container>>
56 ContainerServiceDeploymentRequest& WithContainers(ContainersT&& value) { SetContainers(std::forward<ContainersT>(value)); return *this;}
57 template<typename ContainersKeyT = Aws::String, typename ContainersValueT = Container>
58 ContainerServiceDeploymentRequest& AddContainers(ContainersKeyT&& key, ContainersValueT&& value) {
59 m_containersHasBeenSet = true; m_containers.emplace(std::forward<ContainersKeyT>(key), std::forward<ContainersValueT>(value)); return *this;
60 }
62
64
67 inline const EndpointRequest& GetPublicEndpoint() const { return m_publicEndpoint; }
68 inline bool PublicEndpointHasBeenSet() const { return m_publicEndpointHasBeenSet; }
69 template<typename PublicEndpointT = EndpointRequest>
70 void SetPublicEndpoint(PublicEndpointT&& value) { m_publicEndpointHasBeenSet = true; m_publicEndpoint = std::forward<PublicEndpointT>(value); }
71 template<typename PublicEndpointT = EndpointRequest>
72 ContainerServiceDeploymentRequest& WithPublicEndpoint(PublicEndpointT&& value) { SetPublicEndpoint(std::forward<PublicEndpointT>(value)); return *this;}
74 private:
75
77 bool m_containersHasBeenSet = false;
78
79 EndpointRequest m_publicEndpoint;
80 bool m_publicEndpointHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace Lightsail
85} // 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