AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateContainerServiceDeploymentRequest.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/LightsailRequest.h>
10#include <aws/lightsail/Lightsail_EXPORTS.h>
11#include <aws/lightsail/model/Container.h>
12#include <aws/lightsail/model/EndpointRequest.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Lightsail {
18namespace Model {
19
23 public:
24 AWS_LIGHTSAIL_API CreateContainerServiceDeploymentRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateContainerServiceDeployment"; }
31
32 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetServiceName() const { return m_serviceName; }
41 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
42 template <typename ServiceNameT = Aws::String>
43 void SetServiceName(ServiceNameT&& value) {
44 m_serviceNameHasBeenSet = true;
45 m_serviceName = std::forward<ServiceNameT>(value);
46 }
47 template <typename ServiceNameT = Aws::String>
49 SetServiceName(std::forward<ServiceNameT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::Map<Aws::String, Container>& GetContainers() const { return m_containers; }
60 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
61 template <typename ContainersT = Aws::Map<Aws::String, Container>>
62 void SetContainers(ContainersT&& value) {
63 m_containersHasBeenSet = true;
64 m_containers = std::forward<ContainersT>(value);
65 }
66 template <typename ContainersT = Aws::Map<Aws::String, Container>>
68 SetContainers(std::forward<ContainersT>(value));
69 return *this;
70 }
71 template <typename ContainersKeyT = Aws::String, typename ContainersValueT = Container>
72 CreateContainerServiceDeploymentRequest& AddContainers(ContainersKeyT&& key, ContainersValueT&& value) {
73 m_containersHasBeenSet = true;
74 m_containers.emplace(std::forward<ContainersKeyT>(key), std::forward<ContainersValueT>(value));
75 return *this;
76 }
78
80
84 inline const EndpointRequest& GetPublicEndpoint() const { return m_publicEndpoint; }
85 inline bool PublicEndpointHasBeenSet() const { return m_publicEndpointHasBeenSet; }
86 template <typename PublicEndpointT = EndpointRequest>
87 void SetPublicEndpoint(PublicEndpointT&& value) {
88 m_publicEndpointHasBeenSet = true;
89 m_publicEndpoint = std::forward<PublicEndpointT>(value);
90 }
91 template <typename PublicEndpointT = EndpointRequest>
93 SetPublicEndpoint(std::forward<PublicEndpointT>(value));
94 return *this;
95 }
97 private:
98 Aws::String m_serviceName;
99
101
102 EndpointRequest m_publicEndpoint;
103 bool m_serviceNameHasBeenSet = false;
104 bool m_containersHasBeenSet = false;
105 bool m_publicEndpointHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace Lightsail
110} // namespace Aws
CreateContainerServiceDeploymentRequest & WithServiceName(ServiceNameT &&value)
CreateContainerServiceDeploymentRequest & WithPublicEndpoint(PublicEndpointT &&value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateContainerServiceDeploymentRequest & AddContainers(ContainersKeyT &&key, ContainersValueT &&value)
CreateContainerServiceDeploymentRequest & WithContainers(ContainersT &&value)
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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