AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RelationalDatabaseEndpoint.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Lightsail
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_LIGHTSAIL_API RelationalDatabaseEndpoint() = default;
37 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline int GetPort() const { return m_port; }
45 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
46 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
47 inline RelationalDatabaseEndpoint& WithPort(int value) { SetPort(value); return *this;}
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) { m_addressHasBeenSet = true; m_address = std::forward<AddressT>(value); }
58 template<typename AddressT = Aws::String>
59 RelationalDatabaseEndpoint& WithAddress(AddressT&& value) { SetAddress(std::forward<AddressT>(value)); return *this;}
61 private:
62
63 int m_port{0};
64 bool m_portHasBeenSet = false;
65
66 Aws::String m_address;
67 bool m_addressHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace Lightsail
72} // 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