AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Endpoint.h
1
6#pragma once
7#include <aws/dax/DAX_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 DAX
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_DAX_API Endpoint() = default;
36 AWS_DAX_API Endpoint(Aws::Utils::Json::JsonView jsonValue);
39
40
42
45 inline const Aws::String& GetAddress() const { return m_address; }
46 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
47 template<typename AddressT = Aws::String>
48 void SetAddress(AddressT&& value) { m_addressHasBeenSet = true; m_address = std::forward<AddressT>(value); }
49 template<typename AddressT = Aws::String>
50 Endpoint& WithAddress(AddressT&& value) { SetAddress(std::forward<AddressT>(value)); return *this;}
52
54
57 inline int GetPort() const { return m_port; }
58 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
59 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
60 inline Endpoint& WithPort(int value) { SetPort(value); return *this;}
62
64
68 inline const Aws::String& GetURL() const { return m_uRL; }
69 inline bool URLHasBeenSet() const { return m_uRLHasBeenSet; }
70 template<typename URLT = Aws::String>
71 void SetURL(URLT&& value) { m_uRLHasBeenSet = true; m_uRL = std::forward<URLT>(value); }
72 template<typename URLT = Aws::String>
73 Endpoint& WithURL(URLT&& value) { SetURL(std::forward<URLT>(value)); return *this;}
75 private:
76
77 Aws::String m_address;
78 bool m_addressHasBeenSet = false;
79
80 int m_port{0};
81 bool m_portHasBeenSet = false;
82
83 Aws::String m_uRL;
84 bool m_uRLHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace DAX
89} // namespace Aws
void SetPort(int value)
Definition Endpoint.h:59
bool AddressHasBeenSet() const
Definition Endpoint.h:46
bool URLHasBeenSet() const
Definition Endpoint.h:69
const Aws::String & GetURL() const
Definition Endpoint.h:68
bool PortHasBeenSet() const
Definition Endpoint.h:58
Endpoint & WithPort(int value)
Definition Endpoint.h:60
AWS_DAX_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAddress(AddressT &&value)
Definition Endpoint.h:48
AWS_DAX_API Endpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
Endpoint & WithAddress(AddressT &&value)
Definition Endpoint.h:50
const Aws::String & GetAddress() const
Definition Endpoint.h:45
Endpoint & WithURL(URLT &&value)
Definition Endpoint.h:73
AWS_DAX_API Endpoint(Aws::Utils::Json::JsonView jsonValue)
AWS_DAX_API Endpoint()=default
void SetURL(URLT &&value)
Definition Endpoint.h:71
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue