AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Endpoint.h
1
6#pragma once
7#include <aws/rds/RDS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace RDS
22{
23namespace Model
24{
25
38 {
39 public:
40 AWS_RDS_API Endpoint() = default;
41 AWS_RDS_API Endpoint(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_RDS_API Endpoint& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
47
49
52 inline const Aws::String& GetAddress() const { return m_address; }
53 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
54 template<typename AddressT = Aws::String>
55 void SetAddress(AddressT&& value) { m_addressHasBeenSet = true; m_address = std::forward<AddressT>(value); }
56 template<typename AddressT = Aws::String>
57 Endpoint& WithAddress(AddressT&& value) { SetAddress(std::forward<AddressT>(value)); return *this;}
59
61
64 inline int GetPort() const { return m_port; }
65 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
66 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
67 inline Endpoint& WithPort(int value) { SetPort(value); return *this;}
69
71
75 inline const Aws::String& GetHostedZoneId() const { return m_hostedZoneId; }
76 inline bool HostedZoneIdHasBeenSet() const { return m_hostedZoneIdHasBeenSet; }
77 template<typename HostedZoneIdT = Aws::String>
78 void SetHostedZoneId(HostedZoneIdT&& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = std::forward<HostedZoneIdT>(value); }
79 template<typename HostedZoneIdT = Aws::String>
80 Endpoint& WithHostedZoneId(HostedZoneIdT&& value) { SetHostedZoneId(std::forward<HostedZoneIdT>(value)); return *this;}
82 private:
83
84 Aws::String m_address;
85 bool m_addressHasBeenSet = false;
86
87 int m_port{0};
88 bool m_portHasBeenSet = false;
89
90 Aws::String m_hostedZoneId;
91 bool m_hostedZoneIdHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace RDS
96} // 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:52
void SetHostedZoneId(HostedZoneIdT &&value)
Definition Endpoint.h:78
bool PortHasBeenSet() const
Definition Endpoint.h:65
bool AddressHasBeenSet() const
Definition Endpoint.h:53
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:80
void SetPort(int value)
Definition Endpoint.h:66
Endpoint & WithPort(int value)
Definition Endpoint.h:67
const Aws::String & GetHostedZoneId() const
Definition Endpoint.h:75
Endpoint & WithAddress(AddressT &&value)
Definition Endpoint.h:57
bool HostedZoneIdHasBeenSet() const
Definition Endpoint.h:76
void SetAddress(AddressT &&value)
Definition Endpoint.h:55
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