AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
EndpointAccess.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/redshift/model/VpcEndpoint.h>
13#include <aws/redshift/model/ResponseMetadata.h>
14#include <aws/redshift/model/VpcSecurityGroupMembership.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace Redshift
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_REDSHIFT_API EndpointAccess() = default;
40 AWS_REDSHIFT_API EndpointAccess(const Aws::Utils::Xml::XmlNode& xmlNode);
41 AWS_REDSHIFT_API EndpointAccess& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
51 inline const Aws::String& GetClusterIdentifier() const { return m_clusterIdentifier; }
52 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
53 template<typename ClusterIdentifierT = Aws::String>
54 void SetClusterIdentifier(ClusterIdentifierT&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::forward<ClusterIdentifierT>(value); }
55 template<typename ClusterIdentifierT = Aws::String>
56 EndpointAccess& WithClusterIdentifier(ClusterIdentifierT&& value) { SetClusterIdentifier(std::forward<ClusterIdentifierT>(value)); return *this;}
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) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = std::forward<ResourceOwnerT>(value); }
67 template<typename ResourceOwnerT = Aws::String>
68 EndpointAccess& WithResourceOwner(ResourceOwnerT&& value) { SetResourceOwner(std::forward<ResourceOwnerT>(value)); return *this;}
70
72
76 inline const Aws::String& GetSubnetGroupName() const { return m_subnetGroupName; }
77 inline bool SubnetGroupNameHasBeenSet() const { return m_subnetGroupNameHasBeenSet; }
78 template<typename SubnetGroupNameT = Aws::String>
79 void SetSubnetGroupName(SubnetGroupNameT&& value) { m_subnetGroupNameHasBeenSet = true; m_subnetGroupName = std::forward<SubnetGroupNameT>(value); }
80 template<typename SubnetGroupNameT = Aws::String>
81 EndpointAccess& WithSubnetGroupName(SubnetGroupNameT&& value) { SetSubnetGroupName(std::forward<SubnetGroupNameT>(value)); return *this;}
83
85
88 inline const Aws::String& GetEndpointStatus() const { return m_endpointStatus; }
89 inline bool EndpointStatusHasBeenSet() const { return m_endpointStatusHasBeenSet; }
90 template<typename EndpointStatusT = Aws::String>
91 void SetEndpointStatus(EndpointStatusT&& value) { m_endpointStatusHasBeenSet = true; m_endpointStatus = std::forward<EndpointStatusT>(value); }
92 template<typename EndpointStatusT = Aws::String>
93 EndpointAccess& WithEndpointStatus(EndpointStatusT&& value) { SetEndpointStatus(std::forward<EndpointStatusT>(value)); return *this;}
95
97
100 inline const Aws::String& GetEndpointName() const { return m_endpointName; }
101 inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
102 template<typename EndpointNameT = Aws::String>
103 void SetEndpointName(EndpointNameT&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::forward<EndpointNameT>(value); }
104 template<typename EndpointNameT = Aws::String>
105 EndpointAccess& WithEndpointName(EndpointNameT&& value) { SetEndpointName(std::forward<EndpointNameT>(value)); return *this;}
107
109
112 inline const Aws::Utils::DateTime& GetEndpointCreateTime() const { return m_endpointCreateTime; }
113 inline bool EndpointCreateTimeHasBeenSet() const { return m_endpointCreateTimeHasBeenSet; }
114 template<typename EndpointCreateTimeT = Aws::Utils::DateTime>
115 void SetEndpointCreateTime(EndpointCreateTimeT&& value) { m_endpointCreateTimeHasBeenSet = true; m_endpointCreateTime = std::forward<EndpointCreateTimeT>(value); }
116 template<typename EndpointCreateTimeT = Aws::Utils::DateTime>
117 EndpointAccess& WithEndpointCreateTime(EndpointCreateTimeT&& value) { SetEndpointCreateTime(std::forward<EndpointCreateTimeT>(value)); return *this;}
119
121
124 inline int GetPort() const { return m_port; }
125 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
126 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
127 inline EndpointAccess& WithPort(int value) { SetPort(value); return *this;}
129
131
134 inline const Aws::String& GetAddress() const { return m_address; }
135 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
136 template<typename AddressT = Aws::String>
137 void SetAddress(AddressT&& value) { m_addressHasBeenSet = true; m_address = std::forward<AddressT>(value); }
138 template<typename AddressT = Aws::String>
139 EndpointAccess& WithAddress(AddressT&& value) { SetAddress(std::forward<AddressT>(value)); return *this;}
141
143
146 inline const Aws::Vector<VpcSecurityGroupMembership>& GetVpcSecurityGroups() const { return m_vpcSecurityGroups; }
147 inline bool VpcSecurityGroupsHasBeenSet() const { return m_vpcSecurityGroupsHasBeenSet; }
148 template<typename VpcSecurityGroupsT = Aws::Vector<VpcSecurityGroupMembership>>
149 void SetVpcSecurityGroups(VpcSecurityGroupsT&& value) { m_vpcSecurityGroupsHasBeenSet = true; m_vpcSecurityGroups = std::forward<VpcSecurityGroupsT>(value); }
150 template<typename VpcSecurityGroupsT = Aws::Vector<VpcSecurityGroupMembership>>
151 EndpointAccess& WithVpcSecurityGroups(VpcSecurityGroupsT&& value) { SetVpcSecurityGroups(std::forward<VpcSecurityGroupsT>(value)); return *this;}
152 template<typename VpcSecurityGroupsT = VpcSecurityGroupMembership>
153 EndpointAccess& AddVpcSecurityGroups(VpcSecurityGroupsT&& value) { m_vpcSecurityGroupsHasBeenSet = true; m_vpcSecurityGroups.emplace_back(std::forward<VpcSecurityGroupsT>(value)); return *this; }
155
157
158 inline const VpcEndpoint& GetVpcEndpoint() const { return m_vpcEndpoint; }
159 inline bool VpcEndpointHasBeenSet() const { return m_vpcEndpointHasBeenSet; }
160 template<typename VpcEndpointT = VpcEndpoint>
161 void SetVpcEndpoint(VpcEndpointT&& value) { m_vpcEndpointHasBeenSet = true; m_vpcEndpoint = std::forward<VpcEndpointT>(value); }
162 template<typename VpcEndpointT = VpcEndpoint>
163 EndpointAccess& WithVpcEndpoint(VpcEndpointT&& value) { SetVpcEndpoint(std::forward<VpcEndpointT>(value)); return *this;}
165
167
168 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
169 template<typename ResponseMetadataT = ResponseMetadata>
170 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
171 template<typename ResponseMetadataT = ResponseMetadata>
172 EndpointAccess& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
174 private:
175
176 Aws::String m_clusterIdentifier;
177 bool m_clusterIdentifierHasBeenSet = false;
178
179 Aws::String m_resourceOwner;
180 bool m_resourceOwnerHasBeenSet = false;
181
182 Aws::String m_subnetGroupName;
183 bool m_subnetGroupNameHasBeenSet = false;
184
185 Aws::String m_endpointStatus;
186 bool m_endpointStatusHasBeenSet = false;
187
188 Aws::String m_endpointName;
189 bool m_endpointNameHasBeenSet = false;
190
191 Aws::Utils::DateTime m_endpointCreateTime{};
192 bool m_endpointCreateTimeHasBeenSet = false;
193
194 int m_port{0};
195 bool m_portHasBeenSet = false;
196
197 Aws::String m_address;
198 bool m_addressHasBeenSet = false;
199
200 Aws::Vector<VpcSecurityGroupMembership> m_vpcSecurityGroups;
201 bool m_vpcSecurityGroupsHasBeenSet = false;
202
203 VpcEndpoint m_vpcEndpoint;
204 bool m_vpcEndpointHasBeenSet = false;
205
206 ResponseMetadata m_responseMetadata;
207 bool m_responseMetadataHasBeenSet = true;
208 };
209
210} // namespace Model
211} // namespace Redshift
212} // 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