AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
EndpointAccess.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.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 {
19namespace Utils {
20namespace Xml {
21class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace Redshift {
25namespace Model {
26
33 public:
34 AWS_REDSHIFT_API EndpointAccess() = default;
35 AWS_REDSHIFT_API EndpointAccess(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_REDSHIFT_API EndpointAccess& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
45 inline const Aws::String& GetClusterIdentifier() const { return m_clusterIdentifier; }
46 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
47 template <typename ClusterIdentifierT = Aws::String>
48 void SetClusterIdentifier(ClusterIdentifierT&& value) {
49 m_clusterIdentifierHasBeenSet = true;
50 m_clusterIdentifier = std::forward<ClusterIdentifierT>(value);
51 }
52 template <typename ClusterIdentifierT = Aws::String>
53 EndpointAccess& WithClusterIdentifier(ClusterIdentifierT&& value) {
54 SetClusterIdentifier(std::forward<ClusterIdentifierT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetResourceOwner() const { return m_resourceOwner; }
64 inline bool ResourceOwnerHasBeenSet() const { return m_resourceOwnerHasBeenSet; }
65 template <typename ResourceOwnerT = Aws::String>
66 void SetResourceOwner(ResourceOwnerT&& value) {
67 m_resourceOwnerHasBeenSet = true;
68 m_resourceOwner = std::forward<ResourceOwnerT>(value);
69 }
70 template <typename ResourceOwnerT = Aws::String>
71 EndpointAccess& WithResourceOwner(ResourceOwnerT&& value) {
72 SetResourceOwner(std::forward<ResourceOwnerT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetSubnetGroupName() const { return m_subnetGroupName; }
83 inline bool SubnetGroupNameHasBeenSet() const { return m_subnetGroupNameHasBeenSet; }
84 template <typename SubnetGroupNameT = Aws::String>
85 void SetSubnetGroupName(SubnetGroupNameT&& value) {
86 m_subnetGroupNameHasBeenSet = true;
87 m_subnetGroupName = std::forward<SubnetGroupNameT>(value);
88 }
89 template <typename SubnetGroupNameT = Aws::String>
90 EndpointAccess& WithSubnetGroupName(SubnetGroupNameT&& value) {
91 SetSubnetGroupName(std::forward<SubnetGroupNameT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetEndpointStatus() const { return m_endpointStatus; }
101 inline bool EndpointStatusHasBeenSet() const { return m_endpointStatusHasBeenSet; }
102 template <typename EndpointStatusT = Aws::String>
103 void SetEndpointStatus(EndpointStatusT&& value) {
104 m_endpointStatusHasBeenSet = true;
105 m_endpointStatus = std::forward<EndpointStatusT>(value);
106 }
107 template <typename EndpointStatusT = Aws::String>
108 EndpointAccess& WithEndpointStatus(EndpointStatusT&& value) {
109 SetEndpointStatus(std::forward<EndpointStatusT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::String& GetEndpointName() const { return m_endpointName; }
119 inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
120 template <typename EndpointNameT = Aws::String>
121 void SetEndpointName(EndpointNameT&& value) {
122 m_endpointNameHasBeenSet = true;
123 m_endpointName = std::forward<EndpointNameT>(value);
124 }
125 template <typename EndpointNameT = Aws::String>
126 EndpointAccess& WithEndpointName(EndpointNameT&& value) {
127 SetEndpointName(std::forward<EndpointNameT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::Utils::DateTime& GetEndpointCreateTime() const { return m_endpointCreateTime; }
137 inline bool EndpointCreateTimeHasBeenSet() const { return m_endpointCreateTimeHasBeenSet; }
138 template <typename EndpointCreateTimeT = Aws::Utils::DateTime>
139 void SetEndpointCreateTime(EndpointCreateTimeT&& value) {
140 m_endpointCreateTimeHasBeenSet = true;
141 m_endpointCreateTime = std::forward<EndpointCreateTimeT>(value);
142 }
143 template <typename EndpointCreateTimeT = Aws::Utils::DateTime>
144 EndpointAccess& WithEndpointCreateTime(EndpointCreateTimeT&& value) {
145 SetEndpointCreateTime(std::forward<EndpointCreateTimeT>(value));
146 return *this;
147 }
149
151
154 inline int GetPort() const { return m_port; }
155 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
156 inline void SetPort(int value) {
157 m_portHasBeenSet = true;
158 m_port = value;
159 }
160 inline EndpointAccess& WithPort(int value) {
161 SetPort(value);
162 return *this;
163 }
165
167
170 inline const Aws::String& GetAddress() const { return m_address; }
171 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
172 template <typename AddressT = Aws::String>
173 void SetAddress(AddressT&& value) {
174 m_addressHasBeenSet = true;
175 m_address = std::forward<AddressT>(value);
176 }
177 template <typename AddressT = Aws::String>
178 EndpointAccess& WithAddress(AddressT&& value) {
179 SetAddress(std::forward<AddressT>(value));
180 return *this;
181 }
183
185
188 inline const Aws::Vector<VpcSecurityGroupMembership>& GetVpcSecurityGroups() const { return m_vpcSecurityGroups; }
189 inline bool VpcSecurityGroupsHasBeenSet() const { return m_vpcSecurityGroupsHasBeenSet; }
190 template <typename VpcSecurityGroupsT = Aws::Vector<VpcSecurityGroupMembership>>
191 void SetVpcSecurityGroups(VpcSecurityGroupsT&& value) {
192 m_vpcSecurityGroupsHasBeenSet = true;
193 m_vpcSecurityGroups = std::forward<VpcSecurityGroupsT>(value);
194 }
195 template <typename VpcSecurityGroupsT = Aws::Vector<VpcSecurityGroupMembership>>
196 EndpointAccess& WithVpcSecurityGroups(VpcSecurityGroupsT&& value) {
197 SetVpcSecurityGroups(std::forward<VpcSecurityGroupsT>(value));
198 return *this;
199 }
200 template <typename VpcSecurityGroupsT = VpcSecurityGroupMembership>
201 EndpointAccess& AddVpcSecurityGroups(VpcSecurityGroupsT&& value) {
202 m_vpcSecurityGroupsHasBeenSet = true;
203 m_vpcSecurityGroups.emplace_back(std::forward<VpcSecurityGroupsT>(value));
204 return *this;
205 }
207
209
210 inline const VpcEndpoint& GetVpcEndpoint() const { return m_vpcEndpoint; }
211 inline bool VpcEndpointHasBeenSet() const { return m_vpcEndpointHasBeenSet; }
212 template <typename VpcEndpointT = VpcEndpoint>
213 void SetVpcEndpoint(VpcEndpointT&& value) {
214 m_vpcEndpointHasBeenSet = true;
215 m_vpcEndpoint = std::forward<VpcEndpointT>(value);
216 }
217 template <typename VpcEndpointT = VpcEndpoint>
218 EndpointAccess& WithVpcEndpoint(VpcEndpointT&& value) {
219 SetVpcEndpoint(std::forward<VpcEndpointT>(value));
220 return *this;
221 }
223
225
226 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
227 template <typename ResponseMetadataT = ResponseMetadata>
228 void SetResponseMetadata(ResponseMetadataT&& value) {
229 m_responseMetadataHasBeenSet = true;
230 m_responseMetadata = std::forward<ResponseMetadataT>(value);
231 }
232 template <typename ResponseMetadataT = ResponseMetadata>
233 EndpointAccess& WithResponseMetadata(ResponseMetadataT&& value) {
234 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
235 return *this;
236 }
238 private:
239 Aws::String m_clusterIdentifier;
240
241 Aws::String m_resourceOwner;
242
243 Aws::String m_subnetGroupName;
244
245 Aws::String m_endpointStatus;
246
247 Aws::String m_endpointName;
248
249 Aws::Utils::DateTime m_endpointCreateTime{};
250
251 int m_port{0};
252
253 Aws::String m_address;
254
255 Aws::Vector<VpcSecurityGroupMembership> m_vpcSecurityGroups;
256
257 VpcEndpoint m_vpcEndpoint;
258
259 ResponseMetadata m_responseMetadata;
260 bool m_clusterIdentifierHasBeenSet = false;
261 bool m_resourceOwnerHasBeenSet = false;
262 bool m_subnetGroupNameHasBeenSet = false;
263 bool m_endpointStatusHasBeenSet = false;
264 bool m_endpointNameHasBeenSet = false;
265 bool m_endpointCreateTimeHasBeenSet = false;
266 bool m_portHasBeenSet = false;
267 bool m_addressHasBeenSet = false;
268 bool m_vpcSecurityGroupsHasBeenSet = false;
269 bool m_vpcEndpointHasBeenSet = false;
270 bool m_responseMetadataHasBeenSet = true;
271};
272
273} // namespace Model
274} // namespace Redshift
275} // namespace Aws
void SetVpcSecurityGroups(VpcSecurityGroupsT &&value)
EndpointAccess & WithVpcEndpoint(VpcEndpointT &&value)
EndpointAccess & WithEndpointName(EndpointNameT &&value)
AWS_REDSHIFT_API EndpointAccess()=default
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetAddress() const
EndpointAccess & WithResponseMetadata(ResponseMetadataT &&value)
EndpointAccess & WithResourceOwner(ResourceOwnerT &&value)
EndpointAccess & WithVpcSecurityGroups(VpcSecurityGroupsT &&value)
const Aws::Utils::DateTime & GetEndpointCreateTime() const
const Aws::String & GetEndpointName() const
const Aws::String & GetEndpointStatus() const
void SetVpcEndpoint(VpcEndpointT &&value)
EndpointAccess & WithSubnetGroupName(SubnetGroupNameT &&value)
const Aws::String & GetSubnetGroupName() const
AWS_REDSHIFT_API EndpointAccess & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
EndpointAccess & WithEndpointCreateTime(EndpointCreateTimeT &&value)
const ResponseMetadata & GetResponseMetadata() const
void SetResourceOwner(ResourceOwnerT &&value)
EndpointAccess & AddVpcSecurityGroups(VpcSecurityGroupsT &&value)
void SetClusterIdentifier(ClusterIdentifierT &&value)
void SetResponseMetadata(ResponseMetadataT &&value)
void SetSubnetGroupName(SubnetGroupNameT &&value)
AWS_REDSHIFT_API EndpointAccess(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetEndpointCreateTime(EndpointCreateTimeT &&value)
const Aws::String & GetClusterIdentifier() const
const VpcEndpoint & GetVpcEndpoint() const
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
EndpointAccess & WithEndpointStatus(EndpointStatusT &&value)
EndpointAccess & WithPort(int value)
const Aws::Vector< VpcSecurityGroupMembership > & GetVpcSecurityGroups() const
void SetEndpointStatus(EndpointStatusT &&value)
EndpointAccess & WithClusterIdentifier(ClusterIdentifierT &&value)
void SetEndpointName(EndpointNameT &&value)
const Aws::String & GetResourceOwner() const
EndpointAccess & WithAddress(AddressT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream