AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
RelationalDatabaseEndpoint.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lightsail/Lightsail_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Lightsail {
20namespace Model {
21
28 public:
29 AWS_LIGHTSAIL_API RelationalDatabaseEndpoint() = default;
32 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline int GetPort() const { return m_port; }
39 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
40 inline void SetPort(int value) {
41 m_portHasBeenSet = true;
42 m_port = value;
43 }
45 SetPort(value);
46 return *this;
47 }
49
51
54 inline const Aws::String& GetAddress() const { return m_address; }
55 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
56 template <typename AddressT = Aws::String>
57 void SetAddress(AddressT&& value) {
58 m_addressHasBeenSet = true;
59 m_address = std::forward<AddressT>(value);
60 }
61 template <typename AddressT = Aws::String>
63 SetAddress(std::forward<AddressT>(value));
64 return *this;
65 }
67 private:
68 int m_port{0};
69
70 Aws::String m_address;
71 bool m_portHasBeenSet = false;
72 bool m_addressHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace Lightsail
77} // namespace Aws
RelationalDatabaseEndpoint & WithAddress(AddressT &&value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LIGHTSAIL_API RelationalDatabaseEndpoint()=default
AWS_LIGHTSAIL_API RelationalDatabaseEndpoint(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API RelationalDatabaseEndpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue