AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
Endpoint.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/dax/DAX_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace DAX {
20namespace Model {
21
28class Endpoint {
29 public:
30 AWS_DAX_API Endpoint() = default;
31 AWS_DAX_API Endpoint(Aws::Utils::Json::JsonView jsonValue);
34
36
39 inline const Aws::String& GetAddress() const { return m_address; }
40 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
41 template <typename AddressT = Aws::String>
42 void SetAddress(AddressT&& value) {
43 m_addressHasBeenSet = true;
44 m_address = std::forward<AddressT>(value);
45 }
46 template <typename AddressT = Aws::String>
47 Endpoint& WithAddress(AddressT&& value) {
48 SetAddress(std::forward<AddressT>(value));
49 return *this;
50 }
52
54
57 inline int GetPort() const { return m_port; }
58 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
59 inline void SetPort(int value) {
60 m_portHasBeenSet = true;
61 m_port = value;
62 }
63 inline Endpoint& WithPort(int value) {
64 SetPort(value);
65 return *this;
66 }
68
70
74 inline const Aws::String& GetURL() const { return m_uRL; }
75 inline bool URLHasBeenSet() const { return m_uRLHasBeenSet; }
76 template <typename URLT = Aws::String>
77 void SetURL(URLT&& value) {
78 m_uRLHasBeenSet = true;
79 m_uRL = std::forward<URLT>(value);
80 }
81 template <typename URLT = Aws::String>
82 Endpoint& WithURL(URLT&& value) {
83 SetURL(std::forward<URLT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_address;
89
90 int m_port{0};
91
92 Aws::String m_uRL;
93 bool m_addressHasBeenSet = false;
94 bool m_portHasBeenSet = false;
95 bool m_uRLHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace DAX
100} // namespace Aws
void SetPort(int value)
Definition Endpoint.h:59
bool AddressHasBeenSet() const
Definition Endpoint.h:40
bool URLHasBeenSet() const
Definition Endpoint.h:75
const Aws::String & GetURL() const
Definition Endpoint.h:74
bool PortHasBeenSet() const
Definition Endpoint.h:58
Endpoint & WithPort(int value)
Definition Endpoint.h:63
AWS_DAX_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAddress(AddressT &&value)
Definition Endpoint.h:42
AWS_DAX_API Endpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
Endpoint & WithAddress(AddressT &&value)
Definition Endpoint.h:47
const Aws::String & GetAddress() const
Definition Endpoint.h:39
Endpoint & WithURL(URLT &&value)
Definition Endpoint.h:82
AWS_DAX_API Endpoint(Aws::Utils::Json::JsonView jsonValue)
AWS_DAX_API Endpoint()=default
void SetURL(URLT &&value)
Definition Endpoint.h:77
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue