AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Endpoint.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/rds/RDS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace RDS {
20namespace Model {
21
33class Endpoint {
34 public:
35 AWS_RDS_API Endpoint() = default;
36 AWS_RDS_API Endpoint(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_RDS_API Endpoint& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
43
46 inline const Aws::String& GetAddress() const { return m_address; }
47 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
48 template <typename AddressT = Aws::String>
49 void SetAddress(AddressT&& value) {
50 m_addressHasBeenSet = true;
51 m_address = std::forward<AddressT>(value);
52 }
53 template <typename AddressT = Aws::String>
54 Endpoint& WithAddress(AddressT&& value) {
55 SetAddress(std::forward<AddressT>(value));
56 return *this;
57 }
59
61
64 inline int GetPort() const { return m_port; }
65 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
66 inline void SetPort(int value) {
67 m_portHasBeenSet = true;
68 m_port = value;
69 }
70 inline Endpoint& WithPort(int value) {
71 SetPort(value);
72 return *this;
73 }
75
77
81 inline const Aws::String& GetHostedZoneId() const { return m_hostedZoneId; }
82 inline bool HostedZoneIdHasBeenSet() const { return m_hostedZoneIdHasBeenSet; }
83 template <typename HostedZoneIdT = Aws::String>
84 void SetHostedZoneId(HostedZoneIdT&& value) {
85 m_hostedZoneIdHasBeenSet = true;
86 m_hostedZoneId = std::forward<HostedZoneIdT>(value);
87 }
88 template <typename HostedZoneIdT = Aws::String>
89 Endpoint& WithHostedZoneId(HostedZoneIdT&& value) {
90 SetHostedZoneId(std::forward<HostedZoneIdT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_address;
96
97 int m_port{0};
98
99 Aws::String m_hostedZoneId;
100 bool m_addressHasBeenSet = false;
101 bool m_portHasBeenSet = false;
102 bool m_hostedZoneIdHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace RDS
107} // namespace Aws
AWS_RDS_API Endpoint()=default
AWS_RDS_API Endpoint(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetAddress() const
Definition Endpoint.h:46
void SetHostedZoneId(HostedZoneIdT &&value)
Definition Endpoint.h:84
bool PortHasBeenSet() const
Definition Endpoint.h:65
bool AddressHasBeenSet() const
Definition Endpoint.h:47
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Endpoint & WithHostedZoneId(HostedZoneIdT &&value)
Definition Endpoint.h:89
void SetPort(int value)
Definition Endpoint.h:66
Endpoint & WithPort(int value)
Definition Endpoint.h:70
const Aws::String & GetHostedZoneId() const
Definition Endpoint.h:81
Endpoint & WithAddress(AddressT &&value)
Definition Endpoint.h:54
bool HostedZoneIdHasBeenSet() const
Definition Endpoint.h:82
void SetAddress(AddressT &&value)
Definition Endpoint.h:49
AWS_RDS_API Endpoint & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream