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/pcs/PCS_EXPORTS.h>
8#include <aws/pcs/model/EndpointType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace PCS
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_PCS_API Endpoint();
37 AWS_PCS_API Endpoint(Aws::Utils::Json::JsonView jsonValue);
40
41
43
46 inline const EndpointType& GetType() const{ return m_type; }
47 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
48 inline void SetType(const EndpointType& value) { m_typeHasBeenSet = true; m_type = value; }
49 inline void SetType(EndpointType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
50 inline Endpoint& WithType(const EndpointType& value) { SetType(value); return *this;}
51 inline Endpoint& WithType(EndpointType&& value) { SetType(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetPrivateIpAddress() const{ return m_privateIpAddress; }
59 inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; }
60 inline void SetPrivateIpAddress(const Aws::String& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; }
61 inline void SetPrivateIpAddress(Aws::String&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = std::move(value); }
62 inline void SetPrivateIpAddress(const char* value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress.assign(value); }
63 inline Endpoint& WithPrivateIpAddress(const Aws::String& value) { SetPrivateIpAddress(value); return *this;}
64 inline Endpoint& WithPrivateIpAddress(Aws::String&& value) { SetPrivateIpAddress(std::move(value)); return *this;}
65 inline Endpoint& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;}
67
69
72 inline const Aws::String& GetPublicIpAddress() const{ return m_publicIpAddress; }
73 inline bool PublicIpAddressHasBeenSet() const { return m_publicIpAddressHasBeenSet; }
74 inline void SetPublicIpAddress(const Aws::String& value) { m_publicIpAddressHasBeenSet = true; m_publicIpAddress = value; }
75 inline void SetPublicIpAddress(Aws::String&& value) { m_publicIpAddressHasBeenSet = true; m_publicIpAddress = std::move(value); }
76 inline void SetPublicIpAddress(const char* value) { m_publicIpAddressHasBeenSet = true; m_publicIpAddress.assign(value); }
77 inline Endpoint& WithPublicIpAddress(const Aws::String& value) { SetPublicIpAddress(value); return *this;}
78 inline Endpoint& WithPublicIpAddress(Aws::String&& value) { SetPublicIpAddress(std::move(value)); return *this;}
79 inline Endpoint& WithPublicIpAddress(const char* value) { SetPublicIpAddress(value); return *this;}
81
83
87 inline const Aws::String& GetPort() const{ return m_port; }
88 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
89 inline void SetPort(const Aws::String& value) { m_portHasBeenSet = true; m_port = value; }
90 inline void SetPort(Aws::String&& value) { m_portHasBeenSet = true; m_port = std::move(value); }
91 inline void SetPort(const char* value) { m_portHasBeenSet = true; m_port.assign(value); }
92 inline Endpoint& WithPort(const Aws::String& value) { SetPort(value); return *this;}
93 inline Endpoint& WithPort(Aws::String&& value) { SetPort(std::move(value)); return *this;}
94 inline Endpoint& WithPort(const char* value) { SetPort(value); return *this;}
96 private:
97
98 EndpointType m_type;
99 bool m_typeHasBeenSet = false;
100
101 Aws::String m_privateIpAddress;
102 bool m_privateIpAddressHasBeenSet = false;
103
104 Aws::String m_publicIpAddress;
105 bool m_publicIpAddressHasBeenSet = false;
106
107 Aws::String m_port;
108 bool m_portHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace PCS
113} // namespace Aws
Endpoint & WithPublicIpAddress(const char *value)
Definition Endpoint.h:79
void SetPort(Aws::String &&value)
Definition Endpoint.h:90
Endpoint & WithType(const EndpointType &value)
Definition Endpoint.h:50
void SetPublicIpAddress(Aws::String &&value)
Definition Endpoint.h:75
void SetType(EndpointType &&value)
Definition Endpoint.h:49
AWS_PCS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPort(const Aws::String &value)
Definition Endpoint.h:89
const EndpointType & GetType() const
Definition Endpoint.h:46
void SetPublicIpAddress(const char *value)
Definition Endpoint.h:76
bool PortHasBeenSet() const
Definition Endpoint.h:88
bool PublicIpAddressHasBeenSet() const
Definition Endpoint.h:73
Endpoint & WithPort(const char *value)
Definition Endpoint.h:94
Endpoint & WithPublicIpAddress(const Aws::String &value)
Definition Endpoint.h:77
AWS_PCS_API Endpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPrivateIpAddress(const char *value)
Definition Endpoint.h:62
void SetPort(const char *value)
Definition Endpoint.h:91
const Aws::String & GetPublicIpAddress() const
Definition Endpoint.h:72
AWS_PCS_API Endpoint(Aws::Utils::Json::JsonView jsonValue)
Endpoint & WithPrivateIpAddress(const Aws::String &value)
Definition Endpoint.h:63
Endpoint & WithPort(Aws::String &&value)
Definition Endpoint.h:93
void SetPrivateIpAddress(Aws::String &&value)
Definition Endpoint.h:61
void SetPublicIpAddress(const Aws::String &value)
Definition Endpoint.h:74
void SetPrivateIpAddress(const Aws::String &value)
Definition Endpoint.h:60
bool TypeHasBeenSet() const
Definition Endpoint.h:47
const Aws::String & GetPrivateIpAddress() const
Definition Endpoint.h:58
void SetType(const EndpointType &value)
Definition Endpoint.h:48
Endpoint & WithPrivateIpAddress(const char *value)
Definition Endpoint.h:65
Endpoint & WithPort(const Aws::String &value)
Definition Endpoint.h:92
bool PrivateIpAddressHasBeenSet() const
Definition Endpoint.h:59
Endpoint & WithType(EndpointType &&value)
Definition Endpoint.h:51
const Aws::String & GetPort() const
Definition Endpoint.h:87
Endpoint & WithPrivateIpAddress(Aws::String &&value)
Definition Endpoint.h:64
Endpoint & WithPublicIpAddress(Aws::String &&value)
Definition Endpoint.h:78
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue