AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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
56 inline const Aws::String& GetPrivateIpAddress() const { return m_privateIpAddress; }
57 inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; }
58 template<typename PrivateIpAddressT = Aws::String>
59 void SetPrivateIpAddress(PrivateIpAddressT&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = std::forward<PrivateIpAddressT>(value); }
60 template<typename PrivateIpAddressT = Aws::String>
61 Endpoint& WithPrivateIpAddress(PrivateIpAddressT&& value) { SetPrivateIpAddress(std::forward<PrivateIpAddressT>(value)); return *this;}
63
65
68 inline const Aws::String& GetPublicIpAddress() const { return m_publicIpAddress; }
69 inline bool PublicIpAddressHasBeenSet() const { return m_publicIpAddressHasBeenSet; }
70 template<typename PublicIpAddressT = Aws::String>
71 void SetPublicIpAddress(PublicIpAddressT&& value) { m_publicIpAddressHasBeenSet = true; m_publicIpAddress = std::forward<PublicIpAddressT>(value); }
72 template<typename PublicIpAddressT = Aws::String>
73 Endpoint& WithPublicIpAddress(PublicIpAddressT&& value) { SetPublicIpAddress(std::forward<PublicIpAddressT>(value)); return *this;}
75
77
81 inline const Aws::String& GetPort() const { return m_port; }
82 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
83 template<typename PortT = Aws::String>
84 void SetPort(PortT&& value) { m_portHasBeenSet = true; m_port = std::forward<PortT>(value); }
85 template<typename PortT = Aws::String>
86 Endpoint& WithPort(PortT&& value) { SetPort(std::forward<PortT>(value)); return *this;}
88 private:
89
91 bool m_typeHasBeenSet = false;
92
93 Aws::String m_privateIpAddress;
94 bool m_privateIpAddressHasBeenSet = false;
95
96 Aws::String m_publicIpAddress;
97 bool m_publicIpAddressHasBeenSet = false;
98
99 Aws::String m_port;
100 bool m_portHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace PCS
105} // namespace Aws
Endpoint & WithPrivateIpAddress(PrivateIpAddressT &&value)
Definition Endpoint.h:61
AWS_PCS_API Endpoint()=default
AWS_PCS_API Aws::Utils::Json::JsonValue Jsonize() const
Endpoint & WithPublicIpAddress(PublicIpAddressT &&value)
Definition Endpoint.h:73
bool PortHasBeenSet() const
Definition Endpoint.h:82
bool PublicIpAddressHasBeenSet() const
Definition Endpoint.h:69
AWS_PCS_API Endpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPublicIpAddress() const
Definition Endpoint.h:68
AWS_PCS_API Endpoint(Aws::Utils::Json::JsonView jsonValue)
void SetPublicIpAddress(PublicIpAddressT &&value)
Definition Endpoint.h:71
EndpointType GetType() const
Definition Endpoint.h:46
bool TypeHasBeenSet() const
Definition Endpoint.h:47
void SetType(EndpointType value)
Definition Endpoint.h:48
const Aws::String & GetPrivateIpAddress() const
Definition Endpoint.h:56
bool PrivateIpAddressHasBeenSet() const
Definition Endpoint.h:57
Endpoint & WithType(EndpointType value)
Definition Endpoint.h:49
void SetPort(PortT &&value)
Definition Endpoint.h:84
Endpoint & WithPort(PortT &&value)
Definition Endpoint.h:86
const Aws::String & GetPort() const
Definition Endpoint.h:81
void SetPrivateIpAddress(PrivateIpAddressT &&value)
Definition Endpoint.h:59
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue