AWS SDK for C++

AWS SDK for C++ Version 1.11.637

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() = default;
37 AWS_PCS_API Endpoint(Aws::Utils::Json::JsonView jsonValue);
40
41
43
46 inline EndpointType GetType() const { return m_type; }
47 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
48 inline void SetType(EndpointType value) { m_typeHasBeenSet = true; m_type = value; }
49 inline Endpoint& WithType(EndpointType value) { SetType(value); return *this;}
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) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = std::forward<PrivateIpAddressT>(value); }
62 template<typename PrivateIpAddressT = Aws::String>
63 Endpoint& WithPrivateIpAddress(PrivateIpAddressT&& value) { SetPrivateIpAddress(std::forward<PrivateIpAddressT>(value)); return *this;}
65
67
70 inline const Aws::String& GetPublicIpAddress() const { return m_publicIpAddress; }
71 inline bool PublicIpAddressHasBeenSet() const { return m_publicIpAddressHasBeenSet; }
72 template<typename PublicIpAddressT = Aws::String>
73 void SetPublicIpAddress(PublicIpAddressT&& value) { m_publicIpAddressHasBeenSet = true; m_publicIpAddress = std::forward<PublicIpAddressT>(value); }
74 template<typename PublicIpAddressT = Aws::String>
75 Endpoint& WithPublicIpAddress(PublicIpAddressT&& value) { SetPublicIpAddress(std::forward<PublicIpAddressT>(value)); return *this;}
77
79
82 inline const Aws::String& GetIpv6Address() const { return m_ipv6Address; }
83 inline bool Ipv6AddressHasBeenSet() const { return m_ipv6AddressHasBeenSet; }
84 template<typename Ipv6AddressT = Aws::String>
85 void SetIpv6Address(Ipv6AddressT&& value) { m_ipv6AddressHasBeenSet = true; m_ipv6Address = std::forward<Ipv6AddressT>(value); }
86 template<typename Ipv6AddressT = Aws::String>
87 Endpoint& WithIpv6Address(Ipv6AddressT&& value) { SetIpv6Address(std::forward<Ipv6AddressT>(value)); return *this;}
89
91
95 inline const Aws::String& GetPort() const { return m_port; }
96 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
97 template<typename PortT = Aws::String>
98 void SetPort(PortT&& value) { m_portHasBeenSet = true; m_port = std::forward<PortT>(value); }
99 template<typename PortT = Aws::String>
100 Endpoint& WithPort(PortT&& value) { SetPort(std::forward<PortT>(value)); return *this;}
102 private:
103
105 bool m_typeHasBeenSet = false;
106
107 Aws::String m_privateIpAddress;
108 bool m_privateIpAddressHasBeenSet = false;
109
110 Aws::String m_publicIpAddress;
111 bool m_publicIpAddressHasBeenSet = false;
112
113 Aws::String m_ipv6Address;
114 bool m_ipv6AddressHasBeenSet = false;
115
116 Aws::String m_port;
117 bool m_portHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace PCS
122} // namespace Aws
Endpoint & WithPrivateIpAddress(PrivateIpAddressT &&value)
Definition Endpoint.h:63
AWS_PCS_API Endpoint()=default
AWS_PCS_API Aws::Utils::Json::JsonValue Jsonize() const
Endpoint & WithPublicIpAddress(PublicIpAddressT &&value)
Definition Endpoint.h:75
bool PortHasBeenSet() const
Definition Endpoint.h:96
bool Ipv6AddressHasBeenSet() const
Definition Endpoint.h:83
bool PublicIpAddressHasBeenSet() const
Definition Endpoint.h:71
AWS_PCS_API Endpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPublicIpAddress() const
Definition Endpoint.h:70
AWS_PCS_API Endpoint(Aws::Utils::Json::JsonView jsonValue)
void SetPublicIpAddress(PublicIpAddressT &&value)
Definition Endpoint.h:73
const Aws::String & GetIpv6Address() const
Definition Endpoint.h:82
Endpoint & WithIpv6Address(Ipv6AddressT &&value)
Definition Endpoint.h:87
EndpointType GetType() const
Definition Endpoint.h:46
bool TypeHasBeenSet() const
Definition Endpoint.h:47
void SetIpv6Address(Ipv6AddressT &&value)
Definition Endpoint.h:85
void SetType(EndpointType value)
Definition Endpoint.h:48
const Aws::String & GetPrivateIpAddress() const
Definition Endpoint.h:58
bool PrivateIpAddressHasBeenSet() const
Definition Endpoint.h:59
Endpoint & WithType(EndpointType value)
Definition Endpoint.h:49
void SetPort(PortT &&value)
Definition Endpoint.h:98
Endpoint & WithPort(PortT &&value)
Definition Endpoint.h:100
const Aws::String & GetPort() const
Definition Endpoint.h:95
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