AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateVpcEndpointRequest.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.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 UpdateVpcEndpointRequest();
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 "UpdateVpcEndpoint"; }
33
34 AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override;
35
36 AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
45 inline const Aws::Vector<Aws::String>& GetAddSecurityGroupIds() const{ return m_addSecurityGroupIds; }
46 inline bool AddSecurityGroupIdsHasBeenSet() const { return m_addSecurityGroupIdsHasBeenSet; }
47 inline void SetAddSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_addSecurityGroupIdsHasBeenSet = true; m_addSecurityGroupIds = value; }
48 inline void SetAddSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_addSecurityGroupIdsHasBeenSet = true; m_addSecurityGroupIds = std::move(value); }
51 inline UpdateVpcEndpointRequest& AddAddSecurityGroupIds(const Aws::String& value) { m_addSecurityGroupIdsHasBeenSet = true; m_addSecurityGroupIds.push_back(value); return *this; }
52 inline UpdateVpcEndpointRequest& AddAddSecurityGroupIds(Aws::String&& value) { m_addSecurityGroupIdsHasBeenSet = true; m_addSecurityGroupIds.push_back(std::move(value)); return *this; }
53 inline UpdateVpcEndpointRequest& AddAddSecurityGroupIds(const char* value) { m_addSecurityGroupIdsHasBeenSet = true; m_addSecurityGroupIds.push_back(value); return *this; }
55
57
60 inline const Aws::Vector<Aws::String>& GetAddSubnetIds() const{ return m_addSubnetIds; }
61 inline bool AddSubnetIdsHasBeenSet() const { return m_addSubnetIdsHasBeenSet; }
62 inline void SetAddSubnetIds(const Aws::Vector<Aws::String>& value) { m_addSubnetIdsHasBeenSet = true; m_addSubnetIds = value; }
63 inline void SetAddSubnetIds(Aws::Vector<Aws::String>&& value) { m_addSubnetIdsHasBeenSet = true; m_addSubnetIds = std::move(value); }
65 inline UpdateVpcEndpointRequest& WithAddSubnetIds(Aws::Vector<Aws::String>&& value) { SetAddSubnetIds(std::move(value)); return *this;}
66 inline UpdateVpcEndpointRequest& AddAddSubnetIds(const Aws::String& value) { m_addSubnetIdsHasBeenSet = true; m_addSubnetIds.push_back(value); return *this; }
67 inline UpdateVpcEndpointRequest& AddAddSubnetIds(Aws::String&& value) { m_addSubnetIdsHasBeenSet = true; m_addSubnetIds.push_back(std::move(value)); return *this; }
68 inline UpdateVpcEndpointRequest& AddAddSubnetIds(const char* value) { m_addSubnetIdsHasBeenSet = true; m_addSubnetIds.push_back(value); return *this; }
70
72
75 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
76 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
77 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
78 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
79 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
80 inline UpdateVpcEndpointRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
81 inline UpdateVpcEndpointRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
82 inline UpdateVpcEndpointRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
84
86
89 inline const Aws::String& GetId() const{ return m_id; }
90 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
91 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
92 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
93 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
94 inline UpdateVpcEndpointRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
95 inline UpdateVpcEndpointRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
96 inline UpdateVpcEndpointRequest& WithId(const char* value) { SetId(value); return *this;}
98
100
104 inline const Aws::Vector<Aws::String>& GetRemoveSecurityGroupIds() const{ return m_removeSecurityGroupIds; }
105 inline bool RemoveSecurityGroupIdsHasBeenSet() const { return m_removeSecurityGroupIdsHasBeenSet; }
106 inline void SetRemoveSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_removeSecurityGroupIdsHasBeenSet = true; m_removeSecurityGroupIds = value; }
107 inline void SetRemoveSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_removeSecurityGroupIdsHasBeenSet = true; m_removeSecurityGroupIds = std::move(value); }
110 inline UpdateVpcEndpointRequest& AddRemoveSecurityGroupIds(const Aws::String& value) { m_removeSecurityGroupIdsHasBeenSet = true; m_removeSecurityGroupIds.push_back(value); return *this; }
111 inline UpdateVpcEndpointRequest& AddRemoveSecurityGroupIds(Aws::String&& value) { m_removeSecurityGroupIdsHasBeenSet = true; m_removeSecurityGroupIds.push_back(std::move(value)); return *this; }
112 inline UpdateVpcEndpointRequest& AddRemoveSecurityGroupIds(const char* value) { m_removeSecurityGroupIdsHasBeenSet = true; m_removeSecurityGroupIds.push_back(value); return *this; }
114
116
119 inline const Aws::Vector<Aws::String>& GetRemoveSubnetIds() const{ return m_removeSubnetIds; }
120 inline bool RemoveSubnetIdsHasBeenSet() const { return m_removeSubnetIdsHasBeenSet; }
121 inline void SetRemoveSubnetIds(const Aws::Vector<Aws::String>& value) { m_removeSubnetIdsHasBeenSet = true; m_removeSubnetIds = value; }
122 inline void SetRemoveSubnetIds(Aws::Vector<Aws::String>&& value) { m_removeSubnetIdsHasBeenSet = true; m_removeSubnetIds = std::move(value); }
125 inline UpdateVpcEndpointRequest& AddRemoveSubnetIds(const Aws::String& value) { m_removeSubnetIdsHasBeenSet = true; m_removeSubnetIds.push_back(value); return *this; }
126 inline UpdateVpcEndpointRequest& AddRemoveSubnetIds(Aws::String&& value) { m_removeSubnetIdsHasBeenSet = true; m_removeSubnetIds.push_back(std::move(value)); return *this; }
127 inline UpdateVpcEndpointRequest& AddRemoveSubnetIds(const char* value) { m_removeSubnetIdsHasBeenSet = true; m_removeSubnetIds.push_back(value); return *this; }
129 private:
130
131 Aws::Vector<Aws::String> m_addSecurityGroupIds;
132 bool m_addSecurityGroupIdsHasBeenSet = false;
133
134 Aws::Vector<Aws::String> m_addSubnetIds;
135 bool m_addSubnetIdsHasBeenSet = false;
136
137 Aws::String m_clientToken;
138 bool m_clientTokenHasBeenSet = false;
139
140 Aws::String m_id;
141 bool m_idHasBeenSet = false;
142
143 Aws::Vector<Aws::String> m_removeSecurityGroupIds;
144 bool m_removeSecurityGroupIdsHasBeenSet = false;
145
146 Aws::Vector<Aws::String> m_removeSubnetIds;
147 bool m_removeSubnetIdsHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace OpenSearchServerless
152} // namespace Aws
const Aws::Vector< Aws::String > & GetRemoveSecurityGroupIds() const
UpdateVpcEndpointRequest & WithClientToken(const char *value)
UpdateVpcEndpointRequest & WithAddSubnetIds(Aws::Vector< Aws::String > &&value)
UpdateVpcEndpointRequest & WithRemoveSecurityGroupIds(Aws::Vector< Aws::String > &&value)
UpdateVpcEndpointRequest & WithRemoveSecurityGroupIds(const Aws::Vector< Aws::String > &value)
UpdateVpcEndpointRequest & AddAddSubnetIds(const char *value)
void SetAddSecurityGroupIds(const Aws::Vector< Aws::String > &value)
UpdateVpcEndpointRequest & WithClientToken(const Aws::String &value)
UpdateVpcEndpointRequest & AddRemoveSecurityGroupIds(Aws::String &&value)
UpdateVpcEndpointRequest & WithRemoveSubnetIds(Aws::Vector< Aws::String > &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetRemoveSecurityGroupIds(const Aws::Vector< Aws::String > &value)
void SetRemoveSubnetIds(const Aws::Vector< Aws::String > &value)
UpdateVpcEndpointRequest & WithAddSubnetIds(const Aws::Vector< Aws::String > &value)
UpdateVpcEndpointRequest & AddAddSubnetIds(const Aws::String &value)
void SetAddSubnetIds(const Aws::Vector< Aws::String > &value)
void SetRemoveSecurityGroupIds(Aws::Vector< Aws::String > &&value)
UpdateVpcEndpointRequest & AddRemoveSubnetIds(const char *value)
UpdateVpcEndpointRequest & AddRemoveSecurityGroupIds(const Aws::String &value)
UpdateVpcEndpointRequest & WithAddSecurityGroupIds(const Aws::Vector< Aws::String > &value)
UpdateVpcEndpointRequest & WithId(const Aws::String &value)
const Aws::Vector< Aws::String > & GetAddSecurityGroupIds() const
UpdateVpcEndpointRequest & AddRemoveSecurityGroupIds(const char *value)
UpdateVpcEndpointRequest & WithRemoveSubnetIds(const Aws::Vector< Aws::String > &value)
UpdateVpcEndpointRequest & AddAddSecurityGroupIds(const char *value)
AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override
UpdateVpcEndpointRequest & AddAddSubnetIds(Aws::String &&value)
UpdateVpcEndpointRequest & AddRemoveSubnetIds(Aws::String &&value)
UpdateVpcEndpointRequest & WithId(Aws::String &&value)
void SetAddSecurityGroupIds(Aws::Vector< Aws::String > &&value)
UpdateVpcEndpointRequest & AddAddSecurityGroupIds(const Aws::String &value)
UpdateVpcEndpointRequest & WithAddSecurityGroupIds(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetRemoveSubnetIds() const
UpdateVpcEndpointRequest & WithClientToken(Aws::String &&value)
UpdateVpcEndpointRequest & AddAddSecurityGroupIds(Aws::String &&value)
UpdateVpcEndpointRequest & AddRemoveSubnetIds(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