AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ConnectionDetails.h
1
6#pragma once
7#include <aws/outposts/Outposts_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.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 Outposts
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_OUTPOSTS_API ConnectionDetails();
36 AWS_OUTPOSTS_API ConnectionDetails(Aws::Utils::Json::JsonView jsonValue);
38 AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetClientPublicKey() const{ return m_clientPublicKey; }
46 inline bool ClientPublicKeyHasBeenSet() const { return m_clientPublicKeyHasBeenSet; }
47 inline void SetClientPublicKey(const Aws::String& value) { m_clientPublicKeyHasBeenSet = true; m_clientPublicKey = value; }
48 inline void SetClientPublicKey(Aws::String&& value) { m_clientPublicKeyHasBeenSet = true; m_clientPublicKey = std::move(value); }
49 inline void SetClientPublicKey(const char* value) { m_clientPublicKeyHasBeenSet = true; m_clientPublicKey.assign(value); }
50 inline ConnectionDetails& WithClientPublicKey(const Aws::String& value) { SetClientPublicKey(value); return *this;}
51 inline ConnectionDetails& WithClientPublicKey(Aws::String&& value) { SetClientPublicKey(std::move(value)); return *this;}
52 inline ConnectionDetails& WithClientPublicKey(const char* value) { SetClientPublicKey(value); return *this;}
54
56
59 inline const Aws::String& GetServerPublicKey() const{ return m_serverPublicKey; }
60 inline bool ServerPublicKeyHasBeenSet() const { return m_serverPublicKeyHasBeenSet; }
61 inline void SetServerPublicKey(const Aws::String& value) { m_serverPublicKeyHasBeenSet = true; m_serverPublicKey = value; }
62 inline void SetServerPublicKey(Aws::String&& value) { m_serverPublicKeyHasBeenSet = true; m_serverPublicKey = std::move(value); }
63 inline void SetServerPublicKey(const char* value) { m_serverPublicKeyHasBeenSet = true; m_serverPublicKey.assign(value); }
64 inline ConnectionDetails& WithServerPublicKey(const Aws::String& value) { SetServerPublicKey(value); return *this;}
65 inline ConnectionDetails& WithServerPublicKey(Aws::String&& value) { SetServerPublicKey(std::move(value)); return *this;}
66 inline ConnectionDetails& WithServerPublicKey(const char* value) { SetServerPublicKey(value); return *this;}
68
70
73 inline const Aws::String& GetServerEndpoint() const{ return m_serverEndpoint; }
74 inline bool ServerEndpointHasBeenSet() const { return m_serverEndpointHasBeenSet; }
75 inline void SetServerEndpoint(const Aws::String& value) { m_serverEndpointHasBeenSet = true; m_serverEndpoint = value; }
76 inline void SetServerEndpoint(Aws::String&& value) { m_serverEndpointHasBeenSet = true; m_serverEndpoint = std::move(value); }
77 inline void SetServerEndpoint(const char* value) { m_serverEndpointHasBeenSet = true; m_serverEndpoint.assign(value); }
78 inline ConnectionDetails& WithServerEndpoint(const Aws::String& value) { SetServerEndpoint(value); return *this;}
79 inline ConnectionDetails& WithServerEndpoint(Aws::String&& value) { SetServerEndpoint(std::move(value)); return *this;}
80 inline ConnectionDetails& WithServerEndpoint(const char* value) { SetServerEndpoint(value); return *this;}
82
84
87 inline const Aws::String& GetClientTunnelAddress() const{ return m_clientTunnelAddress; }
88 inline bool ClientTunnelAddressHasBeenSet() const { return m_clientTunnelAddressHasBeenSet; }
89 inline void SetClientTunnelAddress(const Aws::String& value) { m_clientTunnelAddressHasBeenSet = true; m_clientTunnelAddress = value; }
90 inline void SetClientTunnelAddress(Aws::String&& value) { m_clientTunnelAddressHasBeenSet = true; m_clientTunnelAddress = std::move(value); }
91 inline void SetClientTunnelAddress(const char* value) { m_clientTunnelAddressHasBeenSet = true; m_clientTunnelAddress.assign(value); }
92 inline ConnectionDetails& WithClientTunnelAddress(const Aws::String& value) { SetClientTunnelAddress(value); return *this;}
93 inline ConnectionDetails& WithClientTunnelAddress(Aws::String&& value) { SetClientTunnelAddress(std::move(value)); return *this;}
94 inline ConnectionDetails& WithClientTunnelAddress(const char* value) { SetClientTunnelAddress(value); return *this;}
96
98
101 inline const Aws::String& GetServerTunnelAddress() const{ return m_serverTunnelAddress; }
102 inline bool ServerTunnelAddressHasBeenSet() const { return m_serverTunnelAddressHasBeenSet; }
103 inline void SetServerTunnelAddress(const Aws::String& value) { m_serverTunnelAddressHasBeenSet = true; m_serverTunnelAddress = value; }
104 inline void SetServerTunnelAddress(Aws::String&& value) { m_serverTunnelAddressHasBeenSet = true; m_serverTunnelAddress = std::move(value); }
105 inline void SetServerTunnelAddress(const char* value) { m_serverTunnelAddressHasBeenSet = true; m_serverTunnelAddress.assign(value); }
107 inline ConnectionDetails& WithServerTunnelAddress(Aws::String&& value) { SetServerTunnelAddress(std::move(value)); return *this;}
108 inline ConnectionDetails& WithServerTunnelAddress(const char* value) { SetServerTunnelAddress(value); return *this;}
110
112
115 inline const Aws::Vector<Aws::String>& GetAllowedIps() const{ return m_allowedIps; }
116 inline bool AllowedIpsHasBeenSet() const { return m_allowedIpsHasBeenSet; }
117 inline void SetAllowedIps(const Aws::Vector<Aws::String>& value) { m_allowedIpsHasBeenSet = true; m_allowedIps = value; }
118 inline void SetAllowedIps(Aws::Vector<Aws::String>&& value) { m_allowedIpsHasBeenSet = true; m_allowedIps = std::move(value); }
119 inline ConnectionDetails& WithAllowedIps(const Aws::Vector<Aws::String>& value) { SetAllowedIps(value); return *this;}
120 inline ConnectionDetails& WithAllowedIps(Aws::Vector<Aws::String>&& value) { SetAllowedIps(std::move(value)); return *this;}
121 inline ConnectionDetails& AddAllowedIps(const Aws::String& value) { m_allowedIpsHasBeenSet = true; m_allowedIps.push_back(value); return *this; }
122 inline ConnectionDetails& AddAllowedIps(Aws::String&& value) { m_allowedIpsHasBeenSet = true; m_allowedIps.push_back(std::move(value)); return *this; }
123 inline ConnectionDetails& AddAllowedIps(const char* value) { m_allowedIpsHasBeenSet = true; m_allowedIps.push_back(value); return *this; }
125 private:
126
127 Aws::String m_clientPublicKey;
128 bool m_clientPublicKeyHasBeenSet = false;
129
130 Aws::String m_serverPublicKey;
131 bool m_serverPublicKeyHasBeenSet = false;
132
133 Aws::String m_serverEndpoint;
134 bool m_serverEndpointHasBeenSet = false;
135
136 Aws::String m_clientTunnelAddress;
137 bool m_clientTunnelAddressHasBeenSet = false;
138
139 Aws::String m_serverTunnelAddress;
140 bool m_serverTunnelAddressHasBeenSet = false;
141
142 Aws::Vector<Aws::String> m_allowedIps;
143 bool m_allowedIpsHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace Outposts
148} // namespace Aws
ConnectionDetails & WithServerEndpoint(const char *value)
ConnectionDetails & WithClientPublicKey(const char *value)
ConnectionDetails & AddAllowedIps(const char *value)
ConnectionDetails & WithClientTunnelAddress(Aws::String &&value)
ConnectionDetails & WithServerTunnelAddress(Aws::String &&value)
ConnectionDetails & WithClientPublicKey(const Aws::String &value)
const Aws::String & GetServerPublicKey() const
ConnectionDetails & WithClientTunnelAddress(const Aws::String &value)
ConnectionDetails & WithClientTunnelAddress(const char *value)
void SetServerEndpoint(Aws::String &&value)
void SetClientPublicKey(Aws::String &&value)
ConnectionDetails & WithAllowedIps(const Aws::Vector< Aws::String > &value)
ConnectionDetails & WithServerPublicKey(Aws::String &&value)
AWS_OUTPOSTS_API ConnectionDetails(Aws::Utils::Json::JsonView jsonValue)
ConnectionDetails & WithServerPublicKey(const char *value)
void SetClientTunnelAddress(const Aws::String &value)
ConnectionDetails & AddAllowedIps(Aws::String &&value)
void SetServerTunnelAddress(Aws::String &&value)
const Aws::Vector< Aws::String > & GetAllowedIps() const
void SetServerEndpoint(const Aws::String &value)
const Aws::String & GetClientPublicKey() const
void SetClientTunnelAddress(const char *value)
const Aws::String & GetClientTunnelAddress() const
ConnectionDetails & WithClientPublicKey(Aws::String &&value)
void SetClientPublicKey(const Aws::String &value)
void SetClientTunnelAddress(Aws::String &&value)
void SetAllowedIps(const Aws::Vector< Aws::String > &value)
ConnectionDetails & AddAllowedIps(const Aws::String &value)
ConnectionDetails & WithServerTunnelAddress(const char *value)
ConnectionDetails & WithServerEndpoint(Aws::String &&value)
const Aws::String & GetServerEndpoint() const
ConnectionDetails & WithAllowedIps(Aws::Vector< Aws::String > &&value)
void SetAllowedIps(Aws::Vector< Aws::String > &&value)
void SetServerPublicKey(Aws::String &&value)
ConnectionDetails & WithServerEndpoint(const Aws::String &value)
AWS_OUTPOSTS_API ConnectionDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetServerTunnelAddress(const Aws::String &value)
ConnectionDetails & WithServerTunnelAddress(const Aws::String &value)
void SetServerPublicKey(const Aws::String &value)
ConnectionDetails & WithServerPublicKey(const Aws::String &value)
const Aws::String & GetServerTunnelAddress() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue