AWS SDK for C++  1.9.105
AWS SDK for C++
Endpoint.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace RDS
22 {
23 namespace Model
24 {
25 
38  {
39  public:
43 
44  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45  void OutputToStream(Aws::OStream& oStream, const char* location) const;
46 
47 
51  inline const Aws::String& GetAddress() const{ return m_address; }
52 
56  inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
57 
61  inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; }
62 
66  inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = std::move(value); }
67 
71  inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); }
72 
76  inline Endpoint& WithAddress(const Aws::String& value) { SetAddress(value); return *this;}
77 
81  inline Endpoint& WithAddress(Aws::String&& value) { SetAddress(std::move(value)); return *this;}
82 
86  inline Endpoint& WithAddress(const char* value) { SetAddress(value); return *this;}
87 
88 
92  inline int GetPort() const{ return m_port; }
93 
97  inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
98 
102  inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
103 
107  inline Endpoint& WithPort(int value) { SetPort(value); return *this;}
108 
109 
114  inline const Aws::String& GetHostedZoneId() const{ return m_hostedZoneId; }
115 
120  inline bool HostedZoneIdHasBeenSet() const { return m_hostedZoneIdHasBeenSet; }
121 
126  inline void SetHostedZoneId(const Aws::String& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = value; }
127 
132  inline void SetHostedZoneId(Aws::String&& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = std::move(value); }
133 
138  inline void SetHostedZoneId(const char* value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId.assign(value); }
139 
144  inline Endpoint& WithHostedZoneId(const Aws::String& value) { SetHostedZoneId(value); return *this;}
145 
150  inline Endpoint& WithHostedZoneId(Aws::String&& value) { SetHostedZoneId(std::move(value)); return *this;}
151 
156  inline Endpoint& WithHostedZoneId(const char* value) { SetHostedZoneId(value); return *this;}
157 
158  private:
159 
160  Aws::String m_address;
161  bool m_addressHasBeenSet;
162 
163  int m_port;
164  bool m_portHasBeenSet;
165 
166  Aws::String m_hostedZoneId;
167  bool m_hostedZoneIdHasBeenSet;
168  };
169 
170 } // namespace Model
171 } // namespace RDS
172 } // namespace Aws
Aws::RDS::Model::Endpoint::Endpoint
Endpoint()
Aws::RDS::Model::Endpoint::SetAddress
void SetAddress(const char *value)
Definition: Endpoint.h:71
Aws::RDS::Model::Endpoint::GetAddress
const Aws::String & GetAddress() const
Definition: Endpoint.h:51
Aws::RDS::Model::Endpoint::WithPort
Endpoint & WithPort(int value)
Definition: Endpoint.h:107
Aws::RDS::Model::Endpoint::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::RDS::Model::Endpoint::SetHostedZoneId
void SetHostedZoneId(const Aws::String &value)
Definition: Endpoint.h:126
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::Endpoint::SetAddress
void SetAddress(Aws::String &&value)
Definition: Endpoint.h:66
Aws::RDS::Model::Endpoint::SetHostedZoneId
void SetHostedZoneId(Aws::String &&value)
Definition: Endpoint.h:132
Aws::RDS::Model::Endpoint::SetHostedZoneId
void SetHostedZoneId(const char *value)
Definition: Endpoint.h:138
AWSStreamFwd.h
Aws::RDS::Model::Endpoint::WithHostedZoneId
Endpoint & WithHostedZoneId(const char *value)
Definition: Endpoint.h:156
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::RDS::Model::Endpoint::PortHasBeenSet
bool PortHasBeenSet() const
Definition: Endpoint.h:97
RDS_EXPORTS.h
Aws::RDS::Model::Endpoint::WithHostedZoneId
Endpoint & WithHostedZoneId(const Aws::String &value)
Definition: Endpoint.h:144
Aws::RDS::Model::Endpoint::GetPort
int GetPort() const
Definition: Endpoint.h:92
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::RDS::Model::Endpoint::HostedZoneIdHasBeenSet
bool HostedZoneIdHasBeenSet() const
Definition: Endpoint.h:120
Aws::RDS::Model::Endpoint::WithAddress
Endpoint & WithAddress(Aws::String &&value)
Definition: Endpoint.h:81
AWSString.h
Aws::RDS::Model::Endpoint::GetHostedZoneId
const Aws::String & GetHostedZoneId() const
Definition: Endpoint.h:114
Aws::RDS::Model::Endpoint::SetAddress
void SetAddress(const Aws::String &value)
Definition: Endpoint.h:61
Aws::RDS::Model::Endpoint::Endpoint
Endpoint(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::Endpoint::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::Endpoint::WithHostedZoneId
Endpoint & WithHostedZoneId(Aws::String &&value)
Definition: Endpoint.h:150
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RDS::Model::Endpoint::SetPort
void SetPort(int value)
Definition: Endpoint.h:102
index
int index
Definition: cJSON.h:181
Aws::RDS::Model::Endpoint::AddressHasBeenSet
bool AddressHasBeenSet() const
Definition: Endpoint.h:56
Aws::RDS::Model::Endpoint
Definition: Endpoint.h:38
Aws::RDS::Model::Endpoint::operator=
Endpoint & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::Endpoint::WithAddress
Endpoint & WithAddress(const char *value)
Definition: Endpoint.h:86
Aws::RDS::Model::Endpoint::WithAddress
Endpoint & WithAddress(const Aws::String &value)
Definition: Endpoint.h:76