AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateVpcEndpointRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/opensearchserverless/OpenSearchServerlessRequest.h>
11#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16namespace OpenSearchServerless {
17namespace Model {
18
22 public:
23 AWS_OPENSEARCHSERVERLESS_API CreateVpcEndpointRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateVpcEndpoint"; }
30
31 AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override;
32
33 AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetVpcId() const { return m_vpcId; }
58 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
59 template <typename VpcIdT = Aws::String>
60 void SetVpcId(VpcIdT&& value) {
61 m_vpcIdHasBeenSet = true;
62 m_vpcId = std::forward<VpcIdT>(value);
63 }
64 template <typename VpcIdT = Aws::String>
66 SetVpcId(std::forward<VpcIdT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
77 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
78 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
79 void SetSubnetIds(SubnetIdsT&& value) {
80 m_subnetIdsHasBeenSet = true;
81 m_subnetIds = std::forward<SubnetIdsT>(value);
82 }
83 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
85 SetSubnetIds(std::forward<SubnetIdsT>(value));
86 return *this;
87 }
88 template <typename SubnetIdsT = Aws::String>
90 m_subnetIdsHasBeenSet = true;
91 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
92 return *this;
93 }
95
97
102 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
103 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
104 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
105 void SetSecurityGroupIds(SecurityGroupIdsT&& value) {
106 m_securityGroupIdsHasBeenSet = true;
107 m_securityGroupIds = std::forward<SecurityGroupIdsT>(value);
108 }
109 template <typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
110 CreateVpcEndpointRequest& WithSecurityGroupIds(SecurityGroupIdsT&& value) {
111 SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value));
112 return *this;
113 }
114 template <typename SecurityGroupIdsT = Aws::String>
115 CreateVpcEndpointRequest& AddSecurityGroupIds(SecurityGroupIdsT&& value) {
116 m_securityGroupIdsHasBeenSet = true;
117 m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::String& GetClientToken() const { return m_clientToken; }
127 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
128 template <typename ClientTokenT = Aws::String>
129 void SetClientToken(ClientTokenT&& value) {
130 m_clientTokenHasBeenSet = true;
131 m_clientToken = std::forward<ClientTokenT>(value);
132 }
133 template <typename ClientTokenT = Aws::String>
135 SetClientToken(std::forward<ClientTokenT>(value));
136 return *this;
137 }
139 private:
140 Aws::String m_name;
141
142 Aws::String m_vpcId;
143
144 Aws::Vector<Aws::String> m_subnetIds;
145
146 Aws::Vector<Aws::String> m_securityGroupIds;
147
149 bool m_nameHasBeenSet = false;
150 bool m_vpcIdHasBeenSet = false;
151 bool m_subnetIdsHasBeenSet = false;
152 bool m_securityGroupIdsHasBeenSet = false;
153 bool m_clientTokenHasBeenSet = true;
154};
155
156} // namespace Model
157} // namespace OpenSearchServerless
158} // namespace Aws
CreateVpcEndpointRequest & AddSecurityGroupIds(SecurityGroupIdsT &&value)
CreateVpcEndpointRequest & WithClientToken(ClientTokenT &&value)
CreateVpcEndpointRequest & WithSubnetIds(SubnetIdsT &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override
AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_OPENSEARCHSERVERLESS_API CreateVpcEndpointRequest()=default
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
CreateVpcEndpointRequest & AddSubnetIds(SubnetIdsT &&value)
CreateVpcEndpointRequest & WithSecurityGroupIds(SecurityGroupIdsT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector