AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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& GetClientToken() const{ return m_clientToken; }
44 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
45 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
46 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
47 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
48 inline CreateVpcEndpointRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
49 inline CreateVpcEndpointRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
50 inline CreateVpcEndpointRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
52
54
57 inline const Aws::String& GetName() const{ return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
60 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
61 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
62 inline CreateVpcEndpointRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
63 inline CreateVpcEndpointRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
64 inline CreateVpcEndpointRequest& WithName(const char* value) { SetName(value); return *this;}
66
68
73 inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
74 inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
75 inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
76 inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
79 inline CreateVpcEndpointRequest& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
80 inline CreateVpcEndpointRequest& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
81 inline CreateVpcEndpointRequest& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
83
85
89 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
90 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
91 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
92 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
93 inline CreateVpcEndpointRequest& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
94 inline CreateVpcEndpointRequest& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
95 inline CreateVpcEndpointRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
96 inline CreateVpcEndpointRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
97 inline CreateVpcEndpointRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
99
101
104 inline const Aws::String& GetVpcId() const{ return m_vpcId; }
105 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
106 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
107 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
108 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
109 inline CreateVpcEndpointRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
110 inline CreateVpcEndpointRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
111 inline CreateVpcEndpointRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
113 private:
114
115 Aws::String m_clientToken;
116 bool m_clientTokenHasBeenSet = false;
117
118 Aws::String m_name;
119 bool m_nameHasBeenSet = false;
120
121 Aws::Vector<Aws::String> m_securityGroupIds;
122 bool m_securityGroupIdsHasBeenSet = false;
123
124 Aws::Vector<Aws::String> m_subnetIds;
125 bool m_subnetIdsHasBeenSet = false;
126
127 Aws::String m_vpcId;
128 bool m_vpcIdHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace OpenSearchServerless
133} // namespace Aws
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
CreateVpcEndpointRequest & AddSecurityGroupIds(const char *value)
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override
AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateVpcEndpointRequest & WithVpcId(const char *value)
CreateVpcEndpointRequest & AddSubnetIds(const Aws::String &value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
CreateVpcEndpointRequest & WithSubnetIds(Aws::Vector< Aws::String > &&value)
CreateVpcEndpointRequest & AddSubnetIds(const char *value)
CreateVpcEndpointRequest & AddSubnetIds(Aws::String &&value)
CreateVpcEndpointRequest & WithSubnetIds(const Aws::Vector< Aws::String > &value)
CreateVpcEndpointRequest & AddSecurityGroupIds(Aws::String &&value)
CreateVpcEndpointRequest & WithName(Aws::String &&value)
CreateVpcEndpointRequest & WithVpcId(Aws::String &&value)
CreateVpcEndpointRequest & WithClientToken(const char *value)
CreateVpcEndpointRequest & WithVpcId(const Aws::String &value)
CreateVpcEndpointRequest & WithClientToken(const Aws::String &value)
CreateVpcEndpointRequest & WithName(const Aws::String &value)
CreateVpcEndpointRequest & WithClientToken(Aws::String &&value)
CreateVpcEndpointRequest & WithName(const char *value)
CreateVpcEndpointRequest & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
CreateVpcEndpointRequest & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
CreateVpcEndpointRequest & AddSecurityGroupIds(const Aws::String &value)
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