AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
Endpoint.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/pcs/PCS_EXPORTS.h>
9#include <aws/pcs/model/EndpointType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace PCS {
21namespace Model {
22
29class Endpoint {
30 public:
31 AWS_PCS_API Endpoint() = default;
32 AWS_PCS_API Endpoint(Aws::Utils::Json::JsonView jsonValue);
35
37
40 inline EndpointType GetType() const { return m_type; }
41 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
42 inline void SetType(EndpointType value) {
43 m_typeHasBeenSet = true;
44 m_type = value;
45 }
47 SetType(value);
48 return *this;
49 }
51
53
58 inline const Aws::String& GetPrivateIpAddress() const { return m_privateIpAddress; }
59 inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; }
60 template <typename PrivateIpAddressT = Aws::String>
61 void SetPrivateIpAddress(PrivateIpAddressT&& value) {
62 m_privateIpAddressHasBeenSet = true;
63 m_privateIpAddress = std::forward<PrivateIpAddressT>(value);
64 }
65 template <typename PrivateIpAddressT = Aws::String>
66 Endpoint& WithPrivateIpAddress(PrivateIpAddressT&& value) {
67 SetPrivateIpAddress(std::forward<PrivateIpAddressT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetPublicIpAddress() const { return m_publicIpAddress; }
77 inline bool PublicIpAddressHasBeenSet() const { return m_publicIpAddressHasBeenSet; }
78 template <typename PublicIpAddressT = Aws::String>
79 void SetPublicIpAddress(PublicIpAddressT&& value) {
80 m_publicIpAddressHasBeenSet = true;
81 m_publicIpAddress = std::forward<PublicIpAddressT>(value);
82 }
83 template <typename PublicIpAddressT = Aws::String>
84 Endpoint& WithPublicIpAddress(PublicIpAddressT&& value) {
85 SetPublicIpAddress(std::forward<PublicIpAddressT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetIpv6Address() const { return m_ipv6Address; }
95 inline bool Ipv6AddressHasBeenSet() const { return m_ipv6AddressHasBeenSet; }
96 template <typename Ipv6AddressT = Aws::String>
97 void SetIpv6Address(Ipv6AddressT&& value) {
98 m_ipv6AddressHasBeenSet = true;
99 m_ipv6Address = std::forward<Ipv6AddressT>(value);
100 }
101 template <typename Ipv6AddressT = Aws::String>
102 Endpoint& WithIpv6Address(Ipv6AddressT&& value) {
103 SetIpv6Address(std::forward<Ipv6AddressT>(value));
104 return *this;
105 }
107
109
113 inline const Aws::String& GetPort() const { return m_port; }
114 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
115 template <typename PortT = Aws::String>
116 void SetPort(PortT&& value) {
117 m_portHasBeenSet = true;
118 m_port = std::forward<PortT>(value);
119 }
120 template <typename PortT = Aws::String>
121 Endpoint& WithPort(PortT&& value) {
122 SetPort(std::forward<PortT>(value));
123 return *this;
124 }
126 private:
128
129 Aws::String m_privateIpAddress;
130
131 Aws::String m_publicIpAddress;
132
133 Aws::String m_ipv6Address;
134
135 Aws::String m_port;
136 bool m_typeHasBeenSet = false;
137 bool m_privateIpAddressHasBeenSet = false;
138 bool m_publicIpAddressHasBeenSet = false;
139 bool m_ipv6AddressHasBeenSet = false;
140 bool m_portHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace PCS
145} // namespace Aws
Endpoint & WithPrivateIpAddress(PrivateIpAddressT &&value)
Definition Endpoint.h:66
AWS_PCS_API Endpoint()=default
AWS_PCS_API Aws::Utils::Json::JsonValue Jsonize() const
Endpoint & WithPublicIpAddress(PublicIpAddressT &&value)
Definition Endpoint.h:84
bool PortHasBeenSet() const
Definition Endpoint.h:114
bool Ipv6AddressHasBeenSet() const
Definition Endpoint.h:95
bool PublicIpAddressHasBeenSet() const
Definition Endpoint.h:77
AWS_PCS_API Endpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPublicIpAddress() const
Definition Endpoint.h:76
AWS_PCS_API Endpoint(Aws::Utils::Json::JsonView jsonValue)
void SetPublicIpAddress(PublicIpAddressT &&value)
Definition Endpoint.h:79
const Aws::String & GetIpv6Address() const
Definition Endpoint.h:94
Endpoint & WithIpv6Address(Ipv6AddressT &&value)
Definition Endpoint.h:102
EndpointType GetType() const
Definition Endpoint.h:40
bool TypeHasBeenSet() const
Definition Endpoint.h:41
void SetIpv6Address(Ipv6AddressT &&value)
Definition Endpoint.h:97
void SetType(EndpointType value)
Definition Endpoint.h:42
const Aws::String & GetPrivateIpAddress() const
Definition Endpoint.h:58
bool PrivateIpAddressHasBeenSet() const
Definition Endpoint.h:59
Endpoint & WithType(EndpointType value)
Definition Endpoint.h:46
void SetPort(PortT &&value)
Definition Endpoint.h:116
Endpoint & WithPort(PortT &&value)
Definition Endpoint.h:121
const Aws::String & GetPort() const
Definition Endpoint.h:113
void SetPrivateIpAddress(PrivateIpAddressT &&value)
Definition Endpoint.h:61
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue