AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; }
48 inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = std::move(value); }
49 inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); }
50 inline Endpoint& WithAddress(const Aws::String& value) { SetAddress(value); return *this;}
51 inline Endpoint& WithAddress(Aws::String&& value) { SetAddress(std::move(value)); return *this;}
52 inline Endpoint& WithAddress(const char* value) { SetAddress(value); return *this;}
54
56
59 inline int GetPort() const{ return m_port; }
60 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
61 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
62 inline Endpoint& WithPort(int value) { SetPort(value); return *this;}
64
66
70 inline const Aws::String& GetURL() const{ return m_uRL; }
71 inline bool URLHasBeenSet() const { return m_uRLHasBeenSet; }
72 inline void SetURL(const Aws::String& value) { m_uRLHasBeenSet = true; m_uRL = value; }
73 inline void SetURL(Aws::String&& value) { m_uRLHasBeenSet = true; m_uRL = std::move(value); }
74 inline void SetURL(const char* value) { m_uRLHasBeenSet = true; m_uRL.assign(value); }
75 inline Endpoint& WithURL(const Aws::String& value) { SetURL(value); return *this;}
76 inline Endpoint& WithURL(Aws::String&& value) { SetURL(std::move(value)); return *this;}
77 inline Endpoint& WithURL(const char* value) { SetURL(value); return *this;}
79 private:
80
81 Aws::String m_address;
82 bool m_addressHasBeenSet = false;
83
84 int m_port;
85 bool m_portHasBeenSet = false;
86
87 Aws::String m_uRL;
88 bool m_uRLHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace DAX
93} // namespace Aws
void SetPort(int value)
Definition Endpoint.h:61
void SetAddress(Aws::String &&value)
Definition Endpoint.h:48
bool AddressHasBeenSet() const
Definition Endpoint.h:46
void SetURL(const char *value)
Definition Endpoint.h:74
bool URLHasBeenSet() const
Definition Endpoint.h:71
const Aws::String & GetURL() const
Definition Endpoint.h:70
Endpoint & WithAddress(const char *value)
Definition Endpoint.h:52
void SetURL(const Aws::String &value)
Definition Endpoint.h:72
Endpoint & WithURL(const Aws::String &value)
Definition Endpoint.h:75
bool PortHasBeenSet() const
Definition Endpoint.h:60
void SetURL(Aws::String &&value)
Definition Endpoint.h:73
Endpoint & WithURL(const char *value)
Definition Endpoint.h:77
Endpoint & WithPort(int value)
Definition Endpoint.h:62
AWS_DAX_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DAX_API Endpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
Endpoint & WithURL(Aws::String &&value)
Definition Endpoint.h:76
void SetAddress(const Aws::String &value)
Definition Endpoint.h:47
const Aws::String & GetAddress() const
Definition Endpoint.h:45
void SetAddress(const char *value)
Definition Endpoint.h:49
AWS_DAX_API Endpoint(Aws::Utils::Json::JsonView jsonValue)
Endpoint & WithAddress(Aws::String &&value)
Definition Endpoint.h:51
Endpoint & WithAddress(const Aws::String &value)
Definition Endpoint.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue