AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateVpcEndpointRequest.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 UpdateVpcEndpointRequest() = 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 "UpdateVpcEndpoint"; }
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& GetId() const { return m_id; }
40 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
41 template <typename IdT = Aws::String>
42 void SetId(IdT&& value) {
43 m_idHasBeenSet = true;
44 m_id = std::forward<IdT>(value);
45 }
46 template <typename IdT = Aws::String>
48 SetId(std::forward<IdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Vector<Aws::String>& GetAddSubnetIds() const { return m_addSubnetIds; }
58 inline bool AddSubnetIdsHasBeenSet() const { return m_addSubnetIdsHasBeenSet; }
59 template <typename AddSubnetIdsT = Aws::Vector<Aws::String>>
60 void SetAddSubnetIds(AddSubnetIdsT&& value) {
61 m_addSubnetIdsHasBeenSet = true;
62 m_addSubnetIds = std::forward<AddSubnetIdsT>(value);
63 }
64 template <typename AddSubnetIdsT = Aws::Vector<Aws::String>>
66 SetAddSubnetIds(std::forward<AddSubnetIdsT>(value));
67 return *this;
68 }
69 template <typename AddSubnetIdsT = Aws::String>
70 UpdateVpcEndpointRequest& AddAddSubnetIds(AddSubnetIdsT&& value) {
71 m_addSubnetIdsHasBeenSet = true;
72 m_addSubnetIds.emplace_back(std::forward<AddSubnetIdsT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::Vector<Aws::String>& GetRemoveSubnetIds() const { return m_removeSubnetIds; }
82 inline bool RemoveSubnetIdsHasBeenSet() const { return m_removeSubnetIdsHasBeenSet; }
83 template <typename RemoveSubnetIdsT = Aws::Vector<Aws::String>>
84 void SetRemoveSubnetIds(RemoveSubnetIdsT&& value) {
85 m_removeSubnetIdsHasBeenSet = true;
86 m_removeSubnetIds = std::forward<RemoveSubnetIdsT>(value);
87 }
88 template <typename RemoveSubnetIdsT = Aws::Vector<Aws::String>>
89 UpdateVpcEndpointRequest& WithRemoveSubnetIds(RemoveSubnetIdsT&& value) {
90 SetRemoveSubnetIds(std::forward<RemoveSubnetIdsT>(value));
91 return *this;
92 }
93 template <typename RemoveSubnetIdsT = Aws::String>
94 UpdateVpcEndpointRequest& AddRemoveSubnetIds(RemoveSubnetIdsT&& value) {
95 m_removeSubnetIdsHasBeenSet = true;
96 m_removeSubnetIds.emplace_back(std::forward<RemoveSubnetIdsT>(value));
97 return *this;
98 }
100
102
107 inline const Aws::Vector<Aws::String>& GetAddSecurityGroupIds() const { return m_addSecurityGroupIds; }
108 inline bool AddSecurityGroupIdsHasBeenSet() const { return m_addSecurityGroupIdsHasBeenSet; }
109 template <typename AddSecurityGroupIdsT = Aws::Vector<Aws::String>>
110 void SetAddSecurityGroupIds(AddSecurityGroupIdsT&& value) {
111 m_addSecurityGroupIdsHasBeenSet = true;
112 m_addSecurityGroupIds = std::forward<AddSecurityGroupIdsT>(value);
113 }
114 template <typename AddSecurityGroupIdsT = Aws::Vector<Aws::String>>
115 UpdateVpcEndpointRequest& WithAddSecurityGroupIds(AddSecurityGroupIdsT&& value) {
116 SetAddSecurityGroupIds(std::forward<AddSecurityGroupIdsT>(value));
117 return *this;
118 }
119 template <typename AddSecurityGroupIdsT = Aws::String>
120 UpdateVpcEndpointRequest& AddAddSecurityGroupIds(AddSecurityGroupIdsT&& value) {
121 m_addSecurityGroupIdsHasBeenSet = true;
122 m_addSecurityGroupIds.emplace_back(std::forward<AddSecurityGroupIdsT>(value));
123 return *this;
124 }
126
128
132 inline const Aws::Vector<Aws::String>& GetRemoveSecurityGroupIds() const { return m_removeSecurityGroupIds; }
133 inline bool RemoveSecurityGroupIdsHasBeenSet() const { return m_removeSecurityGroupIdsHasBeenSet; }
134 template <typename RemoveSecurityGroupIdsT = Aws::Vector<Aws::String>>
135 void SetRemoveSecurityGroupIds(RemoveSecurityGroupIdsT&& value) {
136 m_removeSecurityGroupIdsHasBeenSet = true;
137 m_removeSecurityGroupIds = std::forward<RemoveSecurityGroupIdsT>(value);
138 }
139 template <typename RemoveSecurityGroupIdsT = Aws::Vector<Aws::String>>
140 UpdateVpcEndpointRequest& WithRemoveSecurityGroupIds(RemoveSecurityGroupIdsT&& value) {
141 SetRemoveSecurityGroupIds(std::forward<RemoveSecurityGroupIdsT>(value));
142 return *this;
143 }
144 template <typename RemoveSecurityGroupIdsT = Aws::String>
145 UpdateVpcEndpointRequest& AddRemoveSecurityGroupIds(RemoveSecurityGroupIdsT&& value) {
146 m_removeSecurityGroupIdsHasBeenSet = true;
147 m_removeSecurityGroupIds.emplace_back(std::forward<RemoveSecurityGroupIdsT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::String& GetClientToken() const { return m_clientToken; }
157 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
158 template <typename ClientTokenT = Aws::String>
159 void SetClientToken(ClientTokenT&& value) {
160 m_clientTokenHasBeenSet = true;
161 m_clientToken = std::forward<ClientTokenT>(value);
162 }
163 template <typename ClientTokenT = Aws::String>
165 SetClientToken(std::forward<ClientTokenT>(value));
166 return *this;
167 }
169 private:
170 Aws::String m_id;
171
172 Aws::Vector<Aws::String> m_addSubnetIds;
173
174 Aws::Vector<Aws::String> m_removeSubnetIds;
175
176 Aws::Vector<Aws::String> m_addSecurityGroupIds;
177
178 Aws::Vector<Aws::String> m_removeSecurityGroupIds;
179
181 bool m_idHasBeenSet = false;
182 bool m_addSubnetIdsHasBeenSet = false;
183 bool m_removeSubnetIdsHasBeenSet = false;
184 bool m_addSecurityGroupIdsHasBeenSet = false;
185 bool m_removeSecurityGroupIdsHasBeenSet = false;
186 bool m_clientTokenHasBeenSet = true;
187};
188
189} // namespace Model
190} // namespace OpenSearchServerless
191} // namespace Aws
const Aws::Vector< Aws::String > & GetRemoveSecurityGroupIds() const
UpdateVpcEndpointRequest & WithRemoveSubnetIds(RemoveSubnetIdsT &&value)
UpdateVpcEndpointRequest & AddRemoveSecurityGroupIds(RemoveSecurityGroupIdsT &&value)
UpdateVpcEndpointRequest & AddAddSubnetIds(AddSubnetIdsT &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateVpcEndpointRequest & WithClientToken(ClientTokenT &&value)
UpdateVpcEndpointRequest & AddRemoveSubnetIds(RemoveSubnetIdsT &&value)
UpdateVpcEndpointRequest & WithAddSecurityGroupIds(AddSecurityGroupIdsT &&value)
UpdateVpcEndpointRequest & WithAddSubnetIds(AddSubnetIdsT &&value)
UpdateVpcEndpointRequest & AddAddSecurityGroupIds(AddSecurityGroupIdsT &&value)
AWS_OPENSEARCHSERVERLESS_API UpdateVpcEndpointRequest()=default
const Aws::Vector< Aws::String > & GetAddSecurityGroupIds() const
AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetRemoveSubnetIds() const
UpdateVpcEndpointRequest & WithRemoveSecurityGroupIds(RemoveSecurityGroupIdsT &&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