AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateContainerServiceDeploymentRequest.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/lightsail/model/EndpointRequest.h>
12#include <aws/lightsail/model/Container.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Lightsail
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_LIGHTSAIL_API CreateContainerServiceDeploymentRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateContainerServiceDeployment"; }
34
35 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetServiceName() const { return m_serviceName; }
45 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
46 template<typename ServiceNameT = Aws::String>
47 void SetServiceName(ServiceNameT&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::forward<ServiceNameT>(value); }
48 template<typename ServiceNameT = Aws::String>
49 CreateContainerServiceDeploymentRequest& WithServiceName(ServiceNameT&& value) { SetServiceName(std::forward<ServiceNameT>(value)); return *this;}
51
53
57 inline const Aws::Map<Aws::String, Container>& GetContainers() const { return m_containers; }
58 inline bool ContainersHasBeenSet() const { return m_containersHasBeenSet; }
59 template<typename ContainersT = Aws::Map<Aws::String, Container>>
60 void SetContainers(ContainersT&& value) { m_containersHasBeenSet = true; m_containers = std::forward<ContainersT>(value); }
61 template<typename ContainersT = Aws::Map<Aws::String, Container>>
62 CreateContainerServiceDeploymentRequest& WithContainers(ContainersT&& value) { SetContainers(std::forward<ContainersT>(value)); return *this;}
63 template<typename ContainersKeyT = Aws::String, typename ContainersValueT = Container>
64 CreateContainerServiceDeploymentRequest& AddContainers(ContainersKeyT&& key, ContainersValueT&& value) {
65 m_containersHasBeenSet = true; m_containers.emplace(std::forward<ContainersKeyT>(key), std::forward<ContainersValueT>(value)); return *this;
66 }
68
70
74 inline const EndpointRequest& GetPublicEndpoint() const { return m_publicEndpoint; }
75 inline bool PublicEndpointHasBeenSet() const { return m_publicEndpointHasBeenSet; }
76 template<typename PublicEndpointT = EndpointRequest>
77 void SetPublicEndpoint(PublicEndpointT&& value) { m_publicEndpointHasBeenSet = true; m_publicEndpoint = std::forward<PublicEndpointT>(value); }
78 template<typename PublicEndpointT = EndpointRequest>
79 CreateContainerServiceDeploymentRequest& WithPublicEndpoint(PublicEndpointT&& value) { SetPublicEndpoint(std::forward<PublicEndpointT>(value)); return *this;}
81 private:
82
83 Aws::String m_serviceName;
84 bool m_serviceNameHasBeenSet = false;
85
87 bool m_containersHasBeenSet = false;
88
89 EndpointRequest m_publicEndpoint;
90 bool m_publicEndpointHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace Lightsail
95} // 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