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/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();
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 inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; }
55 inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = std::move(value); }
56 inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); }
57 inline Endpoint& WithAddress(const Aws::String& value) { SetAddress(value); return *this;}
58 inline Endpoint& WithAddress(Aws::String&& value) { SetAddress(std::move(value)); return *this;}
59 inline Endpoint& WithAddress(const char* value) { SetAddress(value); return *this;}
61
63
66 inline int GetPort() const{ return m_port; }
67 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
68 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
69 inline Endpoint& WithPort(int value) { SetPort(value); return *this;}
71
73
77 inline const Aws::String& GetHostedZoneId() const{ return m_hostedZoneId; }
78 inline bool HostedZoneIdHasBeenSet() const { return m_hostedZoneIdHasBeenSet; }
79 inline void SetHostedZoneId(const Aws::String& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = value; }
80 inline void SetHostedZoneId(Aws::String&& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = std::move(value); }
81 inline void SetHostedZoneId(const char* value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId.assign(value); }
82 inline Endpoint& WithHostedZoneId(const Aws::String& value) { SetHostedZoneId(value); return *this;}
83 inline Endpoint& WithHostedZoneId(Aws::String&& value) { SetHostedZoneId(std::move(value)); return *this;}
84 inline Endpoint& WithHostedZoneId(const char* value) { SetHostedZoneId(value); return *this;}
86 private:
87
88 Aws::String m_address;
89 bool m_addressHasBeenSet = false;
90
91 int m_port;
92 bool m_portHasBeenSet = false;
93
94 Aws::String m_hostedZoneId;
95 bool m_hostedZoneIdHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace RDS
100} // namespace Aws
Endpoint & WithHostedZoneId(const Aws::String &value)
Definition Endpoint.h:82
Endpoint & WithHostedZoneId(const char *value)
Definition Endpoint.h:84
void SetHostedZoneId(const Aws::String &value)
Definition Endpoint.h:79
AWS_RDS_API Endpoint(const Aws::Utils::Xml::XmlNode &xmlNode)
Endpoint & WithAddress(Aws::String &&value)
Definition Endpoint.h:58
void SetAddress(const char *value)
Definition Endpoint.h:56
void SetHostedZoneId(const char *value)
Definition Endpoint.h:81
const Aws::String & GetAddress() const
Definition Endpoint.h:52
bool PortHasBeenSet() const
Definition Endpoint.h:67
void SetAddress(Aws::String &&value)
Definition Endpoint.h:55
void SetAddress(const Aws::String &value)
Definition Endpoint.h:54
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
void SetPort(int value)
Definition Endpoint.h:68
void SetHostedZoneId(Aws::String &&value)
Definition Endpoint.h:80
Endpoint & WithHostedZoneId(Aws::String &&value)
Definition Endpoint.h:83
Endpoint & WithPort(int value)
Definition Endpoint.h:69
const Aws::String & GetHostedZoneId() const
Definition Endpoint.h:77
Endpoint & WithAddress(const char *value)
Definition Endpoint.h:59
bool HostedZoneIdHasBeenSet() const
Definition Endpoint.h:78
Endpoint & WithAddress(const Aws::String &value)
Definition Endpoint.h:57
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