AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateVpcEndpointRequest.h
1
6#pragma once
7#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
8#include <aws/opensearchserverless/OpenSearchServerlessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace OpenSearchServerless
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_OPENSEARCHSERVERLESS_API CreateVpcEndpointRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateVpcEndpoint"; }
33
34 AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override;
35
36 AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template<typename NameT = Aws::String>
46 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
47 template<typename NameT = Aws::String>
48 CreateVpcEndpointRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
50
52
55 inline const Aws::String& GetVpcId() const { return m_vpcId; }
56 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
57 template<typename VpcIdT = Aws::String>
58 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
59 template<typename VpcIdT = Aws::String>
60 CreateVpcEndpointRequest& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
62
64
68 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
69 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
70 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
71 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
72 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
73 CreateVpcEndpointRequest& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
74 template<typename SubnetIdsT = Aws::String>
75 CreateVpcEndpointRequest& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
77
79
84 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const { return m_securityGroupIds; }
85 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
86 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
87 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
88 template<typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
89 CreateVpcEndpointRequest& WithSecurityGroupIds(SecurityGroupIdsT&& value) { SetSecurityGroupIds(std::forward<SecurityGroupIdsT>(value)); return *this;}
90 template<typename SecurityGroupIdsT = Aws::String>
91 CreateVpcEndpointRequest& AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value)); return *this; }
93
95
98 inline const Aws::String& GetClientToken() const { return m_clientToken; }
99 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
100 template<typename ClientTokenT = Aws::String>
101 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
102 template<typename ClientTokenT = Aws::String>
103 CreateVpcEndpointRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
105 private:
106
107 Aws::String m_name;
108 bool m_nameHasBeenSet = false;
109
110 Aws::String m_vpcId;
111 bool m_vpcIdHasBeenSet = false;
112
113 Aws::Vector<Aws::String> m_subnetIds;
114 bool m_subnetIdsHasBeenSet = false;
115
116 Aws::Vector<Aws::String> m_securityGroupIds;
117 bool m_securityGroupIdsHasBeenSet = false;
118
120 bool m_clientTokenHasBeenSet = true;
121 };
122
123} // namespace Model
124} // namespace OpenSearchServerless
125} // 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