AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
CreateEndpointAccessResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/redshift/Redshift_EXPORTS.h>
12#include <aws/redshift/model/ResponseMetadata.h>
13#include <aws/redshift/model/VpcEndpoint.h>
14#include <aws/redshift/model/VpcSecurityGroupMembership.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Xml {
24class XmlDocument;
25} // namespace Xml
26} // namespace Utils
27namespace Redshift {
28namespace Model {
35 public:
36 AWS_REDSHIFT_API CreateEndpointAccessResult() = default;
39
41
44 inline const Aws::String& GetClusterIdentifier() const { return m_clusterIdentifier; }
45 template <typename ClusterIdentifierT = Aws::String>
46 void SetClusterIdentifier(ClusterIdentifierT&& value) {
47 m_clusterIdentifierHasBeenSet = true;
48 m_clusterIdentifier = std::forward<ClusterIdentifierT>(value);
49 }
50 template <typename ClusterIdentifierT = Aws::String>
52 SetClusterIdentifier(std::forward<ClusterIdentifierT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetResourceOwner() const { return m_resourceOwner; }
62 template <typename ResourceOwnerT = Aws::String>
63 void SetResourceOwner(ResourceOwnerT&& value) {
64 m_resourceOwnerHasBeenSet = true;
65 m_resourceOwner = std::forward<ResourceOwnerT>(value);
66 }
67 template <typename ResourceOwnerT = Aws::String>
69 SetResourceOwner(std::forward<ResourceOwnerT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetSubnetGroupName() const { return m_subnetGroupName; }
80 template <typename SubnetGroupNameT = Aws::String>
81 void SetSubnetGroupName(SubnetGroupNameT&& value) {
82 m_subnetGroupNameHasBeenSet = true;
83 m_subnetGroupName = std::forward<SubnetGroupNameT>(value);
84 }
85 template <typename SubnetGroupNameT = Aws::String>
87 SetSubnetGroupName(std::forward<SubnetGroupNameT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetEndpointStatus() const { return m_endpointStatus; }
97 template <typename EndpointStatusT = Aws::String>
98 void SetEndpointStatus(EndpointStatusT&& value) {
99 m_endpointStatusHasBeenSet = true;
100 m_endpointStatus = std::forward<EndpointStatusT>(value);
101 }
102 template <typename EndpointStatusT = Aws::String>
104 SetEndpointStatus(std::forward<EndpointStatusT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetEndpointName() const { return m_endpointName; }
114 template <typename EndpointNameT = Aws::String>
115 void SetEndpointName(EndpointNameT&& value) {
116 m_endpointNameHasBeenSet = true;
117 m_endpointName = std::forward<EndpointNameT>(value);
118 }
119 template <typename EndpointNameT = Aws::String>
121 SetEndpointName(std::forward<EndpointNameT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::Utils::DateTime& GetEndpointCreateTime() const { return m_endpointCreateTime; }
131 template <typename EndpointCreateTimeT = Aws::Utils::DateTime>
132 void SetEndpointCreateTime(EndpointCreateTimeT&& value) {
133 m_endpointCreateTimeHasBeenSet = true;
134 m_endpointCreateTime = std::forward<EndpointCreateTimeT>(value);
135 }
136 template <typename EndpointCreateTimeT = Aws::Utils::DateTime>
138 SetEndpointCreateTime(std::forward<EndpointCreateTimeT>(value));
139 return *this;
140 }
142
144
147 inline int GetPort() const { return m_port; }
148 inline void SetPort(int value) {
149 m_portHasBeenSet = true;
150 m_port = value;
151 }
153 SetPort(value);
154 return *this;
155 }
157
159
162 inline const Aws::String& GetAddress() const { return m_address; }
163 template <typename AddressT = Aws::String>
164 void SetAddress(AddressT&& value) {
165 m_addressHasBeenSet = true;
166 m_address = std::forward<AddressT>(value);
167 }
168 template <typename AddressT = Aws::String>
170 SetAddress(std::forward<AddressT>(value));
171 return *this;
172 }
174
176
179 inline const Aws::Vector<VpcSecurityGroupMembership>& GetVpcSecurityGroups() const { return m_vpcSecurityGroups; }
180 template <typename VpcSecurityGroupsT = Aws::Vector<VpcSecurityGroupMembership>>
181 void SetVpcSecurityGroups(VpcSecurityGroupsT&& value) {
182 m_vpcSecurityGroupsHasBeenSet = true;
183 m_vpcSecurityGroups = std::forward<VpcSecurityGroupsT>(value);
184 }
185 template <typename VpcSecurityGroupsT = Aws::Vector<VpcSecurityGroupMembership>>
187 SetVpcSecurityGroups(std::forward<VpcSecurityGroupsT>(value));
188 return *this;
189 }
190 template <typename VpcSecurityGroupsT = VpcSecurityGroupMembership>
192 m_vpcSecurityGroupsHasBeenSet = true;
193 m_vpcSecurityGroups.emplace_back(std::forward<VpcSecurityGroupsT>(value));
194 return *this;
195 }
197
199
200 inline const VpcEndpoint& GetVpcEndpoint() const { return m_vpcEndpoint; }
201 template <typename VpcEndpointT = VpcEndpoint>
202 void SetVpcEndpoint(VpcEndpointT&& value) {
203 m_vpcEndpointHasBeenSet = true;
204 m_vpcEndpoint = std::forward<VpcEndpointT>(value);
205 }
206 template <typename VpcEndpointT = VpcEndpoint>
208 SetVpcEndpoint(std::forward<VpcEndpointT>(value));
209 return *this;
210 }
212
214
215 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
216 template <typename ResponseMetadataT = ResponseMetadata>
217 void SetResponseMetadata(ResponseMetadataT&& value) {
218 m_responseMetadataHasBeenSet = true;
219 m_responseMetadata = std::forward<ResponseMetadataT>(value);
220 }
221 template <typename ResponseMetadataT = ResponseMetadata>
223 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
224 return *this;
225 }
227 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
228
229 private:
230 Aws::String m_clusterIdentifier;
231
232 Aws::String m_resourceOwner;
233
234 Aws::String m_subnetGroupName;
235
236 Aws::String m_endpointStatus;
237
238 Aws::String m_endpointName;
239
240 Aws::Utils::DateTime m_endpointCreateTime{};
241
242 int m_port{0};
243
244 Aws::String m_address;
245
246 Aws::Vector<VpcSecurityGroupMembership> m_vpcSecurityGroups;
247
248 VpcEndpoint m_vpcEndpoint;
249
250 ResponseMetadata m_responseMetadata;
251 Aws::Http::HttpResponseCode m_HttpResponseCode;
252 bool m_clusterIdentifierHasBeenSet = false;
253 bool m_resourceOwnerHasBeenSet = false;
254 bool m_subnetGroupNameHasBeenSet = false;
255 bool m_endpointStatusHasBeenSet = false;
256 bool m_endpointNameHasBeenSet = false;
257 bool m_endpointCreateTimeHasBeenSet = false;
258 bool m_portHasBeenSet = false;
259 bool m_addressHasBeenSet = false;
260 bool m_vpcSecurityGroupsHasBeenSet = false;
261 bool m_vpcEndpointHasBeenSet = false;
262 bool m_responseMetadataHasBeenSet = false;
263};
264
265} // namespace Model
266} // namespace Redshift
267} // namespace Aws
CreateEndpointAccessResult & WithVpcSecurityGroups(VpcSecurityGroupsT &&value)
AWS_REDSHIFT_API CreateEndpointAccessResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CreateEndpointAccessResult & WithVpcEndpoint(VpcEndpointT &&value)
AWS_REDSHIFT_API CreateEndpointAccessResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CreateEndpointAccessResult & WithEndpointCreateTime(EndpointCreateTimeT &&value)
CreateEndpointAccessResult & WithResourceOwner(ResourceOwnerT &&value)
CreateEndpointAccessResult & WithEndpointStatus(EndpointStatusT &&value)
CreateEndpointAccessResult & WithResponseMetadata(ResponseMetadataT &&value)
CreateEndpointAccessResult & WithEndpointName(EndpointNameT &&value)
CreateEndpointAccessResult & WithClusterIdentifier(ClusterIdentifierT &&value)
const Aws::Vector< VpcSecurityGroupMembership > & GetVpcSecurityGroups() const
const Aws::Utils::DateTime & GetEndpointCreateTime() const
CreateEndpointAccessResult & WithAddress(AddressT &&value)
AWS_REDSHIFT_API CreateEndpointAccessResult()=default
CreateEndpointAccessResult & AddVpcSecurityGroups(VpcSecurityGroupsT &&value)
CreateEndpointAccessResult & WithSubnetGroupName(SubnetGroupNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument