AWS SDK for C++  0.14.3
AWS SDK for C++
Endpoint.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/rds/RDS_EXPORTS.h>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace RDS
30 {
31 namespace Model
32 {
33 
41  {
42  public:
43  Endpoint();
44  Endpoint(const Aws::Utils::Xml::XmlNode& xmlNode);
45  Endpoint& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
46 
47  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
48  void OutputToStream(Aws::OStream& oStream, const char* location) const;
49 
53  inline const Aws::String& GetAddress() const{ return m_address; }
54 
58  inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; }
59 
63  inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = value; }
64 
68  inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); }
69 
73  inline Endpoint& WithAddress(const Aws::String& value) { SetAddress(value); return *this;}
74 
78  inline Endpoint& WithAddress(Aws::String&& value) { SetAddress(value); return *this;}
79 
83  inline Endpoint& WithAddress(const char* value) { SetAddress(value); return *this;}
84 
88  inline int GetPort() const{ return m_port; }
89 
93  inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
94 
98  inline Endpoint& WithPort(int value) { SetPort(value); return *this;}
99 
104  inline const Aws::String& GetHostedZoneId() const{ return m_hostedZoneId; }
105 
110  inline void SetHostedZoneId(const Aws::String& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = value; }
111 
116  inline void SetHostedZoneId(Aws::String&& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = value; }
117 
122  inline void SetHostedZoneId(const char* value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId.assign(value); }
123 
128  inline Endpoint& WithHostedZoneId(const Aws::String& value) { SetHostedZoneId(value); return *this;}
129 
134  inline Endpoint& WithHostedZoneId(Aws::String&& value) { SetHostedZoneId(value); return *this;}
135 
140  inline Endpoint& WithHostedZoneId(const char* value) { SetHostedZoneId(value); return *this;}
141 
142  private:
143  Aws::String m_address;
144  bool m_addressHasBeenSet;
145  int m_port;
146  bool m_portHasBeenSet;
147  Aws::String m_hostedZoneId;
148  bool m_hostedZoneIdHasBeenSet;
149  };
150 
151 } // namespace Model
152 } // namespace RDS
153 } // namespace Aws
void SetAddress(const char *value)
Definition: Endpoint.h:68
void SetHostedZoneId(const Aws::String &value)
Definition: Endpoint.h:110
const Aws::String & GetHostedZoneId() const
Definition: Endpoint.h:104
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:37
Endpoint & WithHostedZoneId(const char *value)
Definition: Endpoint.h:140
void SetHostedZoneId(const char *value)
Definition: Endpoint.h:122
Endpoint & WithHostedZoneId(const Aws::String &value)
Definition: Endpoint.h:128
const Aws::String & GetAddress() const
Definition: Endpoint.h:53
void SetPort(int value)
Definition: Endpoint.h:93
Endpoint & WithAddress(Aws::String &&value)
Definition: Endpoint.h:78
int GetPort() const
Definition: Endpoint.h:88
Endpoint & WithHostedZoneId(Aws::String &&value)
Definition: Endpoint.h:134
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetAddress(const Aws::String &value)
Definition: Endpoint.h:58
void SetAddress(Aws::String &&value)
Definition: Endpoint.h:63
Endpoint & WithAddress(const char *value)
Definition: Endpoint.h:83
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Endpoint & WithAddress(const Aws::String &value)
Definition: Endpoint.h:73
Endpoint & WithPort(int value)
Definition: Endpoint.h:98
void SetHostedZoneId(Aws::String &&value)
Definition: Endpoint.h:116
JSON (JavaScript Object Notation).