AWS SDK for C++  1.9.110
AWS SDK for C++
Endpoint.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace Redshift
24 {
25 namespace Model
26 {
27 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const Aws::String& GetAddress() const{ return m_address; }
48 
52  inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
53 
57  inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; }
58 
62  inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = std::move(value); }
63 
67  inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); }
68 
72  inline Endpoint& WithAddress(const Aws::String& value) { SetAddress(value); return *this;}
73 
77  inline Endpoint& WithAddress(Aws::String&& value) { SetAddress(std::move(value)); return *this;}
78 
82  inline Endpoint& WithAddress(const char* value) { SetAddress(value); return *this;}
83 
84 
88  inline int GetPort() const{ return m_port; }
89 
93  inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
94 
98  inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
99 
103  inline Endpoint& WithPort(int value) { SetPort(value); return *this;}
104 
105 
109  inline const Aws::Vector<VpcEndpoint>& GetVpcEndpoints() const{ return m_vpcEndpoints; }
110 
114  inline bool VpcEndpointsHasBeenSet() const { return m_vpcEndpointsHasBeenSet; }
115 
119  inline void SetVpcEndpoints(const Aws::Vector<VpcEndpoint>& value) { m_vpcEndpointsHasBeenSet = true; m_vpcEndpoints = value; }
120 
124  inline void SetVpcEndpoints(Aws::Vector<VpcEndpoint>&& value) { m_vpcEndpointsHasBeenSet = true; m_vpcEndpoints = std::move(value); }
125 
129  inline Endpoint& WithVpcEndpoints(const Aws::Vector<VpcEndpoint>& value) { SetVpcEndpoints(value); return *this;}
130 
134  inline Endpoint& WithVpcEndpoints(Aws::Vector<VpcEndpoint>&& value) { SetVpcEndpoints(std::move(value)); return *this;}
135 
139  inline Endpoint& AddVpcEndpoints(const VpcEndpoint& value) { m_vpcEndpointsHasBeenSet = true; m_vpcEndpoints.push_back(value); return *this; }
140 
144  inline Endpoint& AddVpcEndpoints(VpcEndpoint&& value) { m_vpcEndpointsHasBeenSet = true; m_vpcEndpoints.push_back(std::move(value)); return *this; }
145 
146  private:
147 
148  Aws::String m_address;
149  bool m_addressHasBeenSet;
150 
151  int m_port;
152  bool m_portHasBeenSet;
153 
154  Aws::Vector<VpcEndpoint> m_vpcEndpoints;
155  bool m_vpcEndpointsHasBeenSet;
156  };
157 
158 } // namespace Model
159 } // namespace Redshift
160 } // namespace Aws
Aws::Redshift::Model::Endpoint::SetVpcEndpoints
void SetVpcEndpoints(Aws::Vector< VpcEndpoint > &&value)
Definition: Endpoint.h:124
Aws::Redshift::Model::Endpoint::GetAddress
const Aws::String & GetAddress() const
Definition: Endpoint.h:47
Aws::Redshift::Model::Endpoint::WithAddress
Endpoint & WithAddress(const char *value)
Definition: Endpoint.h:82
Aws::Redshift::Model::Endpoint::WithVpcEndpoints
Endpoint & WithVpcEndpoints(Aws::Vector< VpcEndpoint > &&value)
Definition: Endpoint.h:134
Aws::Redshift::Model::Endpoint::WithVpcEndpoints
Endpoint & WithVpcEndpoints(const Aws::Vector< VpcEndpoint > &value)
Definition: Endpoint.h:129
Aws::Redshift::Model::Endpoint::SetAddress
void SetAddress(Aws::String &&value)
Definition: Endpoint.h:62
Aws::Redshift::Model::Endpoint::WithPort
Endpoint & WithPort(int value)
Definition: Endpoint.h:103
Aws::Redshift::Model::Endpoint::Endpoint
Endpoint(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::Endpoint::AddVpcEndpoints
Endpoint & AddVpcEndpoints(const VpcEndpoint &value)
Definition: Endpoint.h:139
Aws::Redshift::Model::Endpoint::AddVpcEndpoints
Endpoint & AddVpcEndpoints(VpcEndpoint &&value)
Definition: Endpoint.h:144
Aws::Redshift::Model::Endpoint::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Redshift::Model::Endpoint::Endpoint
Endpoint()
Aws::Redshift::Model::Endpoint::SetAddress
void SetAddress(const Aws::String &value)
Definition: Endpoint.h:57
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
AWSVector.h
Aws::Redshift::Model::Endpoint::AddressHasBeenSet
bool AddressHasBeenSet() const
Definition: Endpoint.h:52
Aws::Redshift::Model::Endpoint::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Redshift::Model::Endpoint::WithAddress
Endpoint & WithAddress(Aws::String &&value)
Definition: Endpoint.h:77
Aws::Redshift::Model::Endpoint::SetVpcEndpoints
void SetVpcEndpoints(const Aws::Vector< VpcEndpoint > &value)
Definition: Endpoint.h:119
Aws::Redshift::Model::VpcEndpoint
Definition: VpcEndpoint.h:35
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
AWSString.h
Aws::Redshift::Model::Endpoint::WithAddress
Endpoint & WithAddress(const Aws::String &value)
Definition: Endpoint.h:72
Aws::Redshift::Model::Endpoint::GetPort
int GetPort() const
Definition: Endpoint.h:88
Aws::Redshift::Model::Endpoint
Definition: Endpoint.h:34
Aws::Redshift::Model::Endpoint::SetAddress
void SetAddress(const char *value)
Definition: Endpoint.h:67
Aws::Redshift::Model::Endpoint::GetVpcEndpoints
const Aws::Vector< VpcEndpoint > & GetVpcEndpoints() const
Definition: Endpoint.h:109
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
VpcEndpoint.h
index
int index
Definition: cJSON.h:181
Aws::Redshift::Model::Endpoint::operator=
Endpoint & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::Endpoint::VpcEndpointsHasBeenSet
bool VpcEndpointsHasBeenSet() const
Definition: Endpoint.h:114
Aws::Redshift::Model::Endpoint::SetPort
void SetPort(int value)
Definition: Endpoint.h:98
Aws::Redshift::Model::Endpoint::PortHasBeenSet
bool PortHasBeenSet() const
Definition: Endpoint.h:93