AWS SDK for C++  1.9.107
AWS SDK for C++
RelationalDatabaseEndpoint.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Lightsail
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
43  inline int GetPort() const{ return m_port; }
44 
48  inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
49 
53  inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
54 
58  inline RelationalDatabaseEndpoint& WithPort(int value) { SetPort(value); return *this;}
59 
60 
64  inline const Aws::String& GetAddress() const{ return m_address; }
65 
69  inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
70 
74  inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; }
75 
79  inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = std::move(value); }
80 
84  inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); }
85 
89  inline RelationalDatabaseEndpoint& WithAddress(const Aws::String& value) { SetAddress(value); return *this;}
90 
94  inline RelationalDatabaseEndpoint& WithAddress(Aws::String&& value) { SetAddress(std::move(value)); return *this;}
95 
99  inline RelationalDatabaseEndpoint& WithAddress(const char* value) { SetAddress(value); return *this;}
100 
101  private:
102 
103  int m_port;
104  bool m_portHasBeenSet;
105 
106  Aws::String m_address;
107  bool m_addressHasBeenSet;
108  };
109 
110 } // namespace Model
111 } // namespace Lightsail
112 } // namespace Aws
Aws::Lightsail::Model::RelationalDatabaseEndpoint::SetAddress
void SetAddress(Aws::String &&value)
Definition: RelationalDatabaseEndpoint.h:79
Aws::Lightsail::Model::RelationalDatabaseEndpoint::RelationalDatabaseEndpoint
RelationalDatabaseEndpoint()
Aws::Lightsail::Model::RelationalDatabaseEndpoint::WithAddress
RelationalDatabaseEndpoint & WithAddress(const Aws::String &value)
Definition: RelationalDatabaseEndpoint.h:89
Aws::Lightsail::Model::RelationalDatabaseEndpoint::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::RelationalDatabaseEndpoint::AddressHasBeenSet
bool AddressHasBeenSet() const
Definition: RelationalDatabaseEndpoint.h:69
Aws::Lightsail::Model::RelationalDatabaseEndpoint::SetPort
void SetPort(int value)
Definition: RelationalDatabaseEndpoint.h:53
Aws::Lightsail::Model::RelationalDatabaseEndpoint::GetAddress
const Aws::String & GetAddress() const
Definition: RelationalDatabaseEndpoint.h:64
Aws::Lightsail::Model::RelationalDatabaseEndpoint::PortHasBeenSet
bool PortHasBeenSet() const
Definition: RelationalDatabaseEndpoint.h:48
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Lightsail::Model::RelationalDatabaseEndpoint::operator=
RelationalDatabaseEndpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::RelationalDatabaseEndpoint
Definition: RelationalDatabaseEndpoint.h:32
Aws::Lightsail::Model::RelationalDatabaseEndpoint::GetPort
int GetPort() const
Definition: RelationalDatabaseEndpoint.h:43
Lightsail_EXPORTS.h
Aws::Lightsail::Model::RelationalDatabaseEndpoint::SetAddress
void SetAddress(const Aws::String &value)
Definition: RelationalDatabaseEndpoint.h:74
Aws::Lightsail::Model::RelationalDatabaseEndpoint::SetAddress
void SetAddress(const char *value)
Definition: RelationalDatabaseEndpoint.h:84
Aws::Lightsail::Model::RelationalDatabaseEndpoint::WithPort
RelationalDatabaseEndpoint & WithPort(int value)
Definition: RelationalDatabaseEndpoint.h:58
Aws::Lightsail::Model::RelationalDatabaseEndpoint::RelationalDatabaseEndpoint
RelationalDatabaseEndpoint(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::RelationalDatabaseEndpoint::WithAddress
RelationalDatabaseEndpoint & WithAddress(const char *value)
Definition: RelationalDatabaseEndpoint.h:99
Aws::Lightsail::Model::RelationalDatabaseEndpoint::WithAddress
RelationalDatabaseEndpoint & WithAddress(Aws::String &&value)
Definition: RelationalDatabaseEndpoint.h:94