AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Endpoint.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/memory/stl/AWSVector.h>
11#include <aws/redshift/model/VpcEndpoint.h>
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:
36 AWS_REDSHIFT_API Endpoint();
37 AWS_REDSHIFT_API Endpoint(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_REDSHIFT_API Endpoint& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
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
45
48 inline const Aws::String& GetAddress() const{ return m_address; }
49 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
50 inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; }
51 inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = std::move(value); }
52 inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); }
53 inline Endpoint& WithAddress(const Aws::String& value) { SetAddress(value); return *this;}
54 inline Endpoint& WithAddress(Aws::String&& value) { SetAddress(std::move(value)); return *this;}
55 inline Endpoint& WithAddress(const char* value) { SetAddress(value); return *this;}
57
59
62 inline int GetPort() const{ return m_port; }
63 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
64 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
65 inline Endpoint& WithPort(int value) { SetPort(value); return *this;}
67
69
72 inline const Aws::Vector<VpcEndpoint>& GetVpcEndpoints() const{ return m_vpcEndpoints; }
73 inline bool VpcEndpointsHasBeenSet() const { return m_vpcEndpointsHasBeenSet; }
74 inline void SetVpcEndpoints(const Aws::Vector<VpcEndpoint>& value) { m_vpcEndpointsHasBeenSet = true; m_vpcEndpoints = value; }
75 inline void SetVpcEndpoints(Aws::Vector<VpcEndpoint>&& value) { m_vpcEndpointsHasBeenSet = true; m_vpcEndpoints = std::move(value); }
76 inline Endpoint& WithVpcEndpoints(const Aws::Vector<VpcEndpoint>& value) { SetVpcEndpoints(value); return *this;}
77 inline Endpoint& WithVpcEndpoints(Aws::Vector<VpcEndpoint>&& value) { SetVpcEndpoints(std::move(value)); return *this;}
78 inline Endpoint& AddVpcEndpoints(const VpcEndpoint& value) { m_vpcEndpointsHasBeenSet = true; m_vpcEndpoints.push_back(value); return *this; }
79 inline Endpoint& AddVpcEndpoints(VpcEndpoint&& value) { m_vpcEndpointsHasBeenSet = true; m_vpcEndpoints.push_back(std::move(value)); return *this; }
81 private:
82
83 Aws::String m_address;
84 bool m_addressHasBeenSet = false;
85
86 int m_port;
87 bool m_portHasBeenSet = false;
88
89 Aws::Vector<VpcEndpoint> m_vpcEndpoints;
90 bool m_vpcEndpointsHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace Redshift
95} // namespace Aws
Endpoint & WithAddress(Aws::String &&value)
Definition Endpoint.h:54
const Aws::String & GetAddress() const
Definition Endpoint.h:48
void SetAddress(const Aws::String &value)
Definition Endpoint.h:50
AWS_REDSHIFT_API Endpoint & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetVpcEndpoints(Aws::Vector< VpcEndpoint > &&value)
Definition Endpoint.h:75
Endpoint & WithVpcEndpoints(const Aws::Vector< VpcEndpoint > &value)
Definition Endpoint.h:76
Endpoint & WithAddress(const char *value)
Definition Endpoint.h:55
const Aws::Vector< VpcEndpoint > & GetVpcEndpoints() const
Definition Endpoint.h:72
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 SetAddress(const char *value)
Definition Endpoint.h:52
Endpoint & WithAddress(const Aws::String &value)
Definition Endpoint.h:53
Endpoint & AddVpcEndpoints(const VpcEndpoint &value)
Definition Endpoint.h:78
void SetVpcEndpoints(const Aws::Vector< VpcEndpoint > &value)
Definition Endpoint.h:74
AWS_REDSHIFT_API Endpoint(const Aws::Utils::Xml::XmlNode &xmlNode)
Endpoint & WithVpcEndpoints(Aws::Vector< VpcEndpoint > &&value)
Definition Endpoint.h:77
AWS_REDSHIFT_API Endpoint()
void SetAddress(Aws::String &&value)
Definition Endpoint.h:51
Endpoint & WithPort(int value)
Definition Endpoint.h:65
Endpoint & AddVpcEndpoints(VpcEndpoint &&value)
Definition Endpoint.h:79
bool VpcEndpointsHasBeenSet() const
Definition Endpoint.h:73
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