AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
Endpoint.h
Go to the documentation of this file.
1
6#pragma once
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace Redshift
24{
25namespace Model
26{
27
34 {
35 public:
39
40 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_REDSHIFT_API 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 = false;
150
151 int m_port;
152 bool m_portHasBeenSet = false;
153
154 Aws::Vector<VpcEndpoint> m_vpcEndpoints;
155 bool m_vpcEndpointsHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace Redshift
160} // namespace Aws
#define AWS_REDSHIFT_API
Endpoint & WithAddress(Aws::String &&value)
Definition: Endpoint.h:77
const Aws::String & GetAddress() const
Definition: Endpoint.h:47
void SetAddress(const Aws::String &value)
Definition: Endpoint.h:57
AWS_REDSHIFT_API Endpoint & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetVpcEndpoints(Aws::Vector< VpcEndpoint > &&value)
Definition: Endpoint.h:124
Endpoint & WithVpcEndpoints(const Aws::Vector< VpcEndpoint > &value)
Definition: Endpoint.h:129
Endpoint & WithAddress(const char *value)
Definition: Endpoint.h:82
const Aws::Vector< VpcEndpoint > & GetVpcEndpoints() const
Definition: Endpoint.h:109
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetPort(int value)
Definition: Endpoint.h:98
void SetAddress(const char *value)
Definition: Endpoint.h:67
bool AddressHasBeenSet() const
Definition: Endpoint.h:52
Endpoint & WithAddress(const Aws::String &value)
Definition: Endpoint.h:72
Endpoint & AddVpcEndpoints(const VpcEndpoint &value)
Definition: Endpoint.h:139
void SetVpcEndpoints(const Aws::Vector< VpcEndpoint > &value)
Definition: Endpoint.h:119
AWS_REDSHIFT_API Endpoint(const Aws::Utils::Xml::XmlNode &xmlNode)
Endpoint & WithVpcEndpoints(Aws::Vector< VpcEndpoint > &&value)
Definition: Endpoint.h:134
AWS_REDSHIFT_API Endpoint()
void SetAddress(Aws::String &&value)
Definition: Endpoint.h:62
Endpoint & WithPort(int value)
Definition: Endpoint.h:103
Endpoint & AddVpcEndpoints(VpcEndpoint &&value)
Definition: Endpoint.h:144
bool VpcEndpointsHasBeenSet() const
Definition: Endpoint.h:114
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