AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename AddressT = Aws::String>
51 void SetAddress(AddressT&& value) { m_addressHasBeenSet = true; m_address = std::forward<AddressT>(value); }
52 template<typename AddressT = Aws::String>
53 Endpoint& WithAddress(AddressT&& value) { SetAddress(std::forward<AddressT>(value)); return *this;}
55
57
60 inline int GetPort() const { return m_port; }
61 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
62 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
63 inline Endpoint& WithPort(int value) { SetPort(value); return *this;}
65
67
70 inline const Aws::Vector<VpcEndpoint>& GetVpcEndpoints() const { return m_vpcEndpoints; }
71 inline bool VpcEndpointsHasBeenSet() const { return m_vpcEndpointsHasBeenSet; }
72 template<typename VpcEndpointsT = Aws::Vector<VpcEndpoint>>
73 void SetVpcEndpoints(VpcEndpointsT&& value) { m_vpcEndpointsHasBeenSet = true; m_vpcEndpoints = std::forward<VpcEndpointsT>(value); }
74 template<typename VpcEndpointsT = Aws::Vector<VpcEndpoint>>
75 Endpoint& WithVpcEndpoints(VpcEndpointsT&& value) { SetVpcEndpoints(std::forward<VpcEndpointsT>(value)); return *this;}
76 template<typename VpcEndpointsT = VpcEndpoint>
77 Endpoint& AddVpcEndpoints(VpcEndpointsT&& value) { m_vpcEndpointsHasBeenSet = true; m_vpcEndpoints.emplace_back(std::forward<VpcEndpointsT>(value)); return *this; }
79 private:
80
81 Aws::String m_address;
82 bool m_addressHasBeenSet = false;
83
84 int m_port{0};
85 bool m_portHasBeenSet = false;
86
87 Aws::Vector<VpcEndpoint> m_vpcEndpoints;
88 bool m_vpcEndpointsHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace Redshift
93} // namespace Aws
const Aws::String & GetAddress() const
Definition Endpoint.h:48
AWS_REDSHIFT_API Endpoint & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetVpcEndpoints(VpcEndpointsT &&value)
Definition Endpoint.h:73
Endpoint & WithAddress(AddressT &&value)
Definition Endpoint.h:53
const Aws::Vector< VpcEndpoint > & GetVpcEndpoints() const
Definition Endpoint.h:70
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
Endpoint & WithVpcEndpoints(VpcEndpointsT &&value)
Definition Endpoint.h:75
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Endpoint & AddVpcEndpoints(VpcEndpointsT &&value)
Definition Endpoint.h:77
AWS_REDSHIFT_API Endpoint(const Aws::Utils::Xml::XmlNode &xmlNode)
Endpoint & WithPort(int value)
Definition Endpoint.h:63
bool VpcEndpointsHasBeenSet() const
Definition Endpoint.h:71
AWS_REDSHIFT_API Endpoint()=default
void SetAddress(AddressT &&value)
Definition Endpoint.h:51
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