AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceAccessDetails.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/lightsail/model/PasswordData.h>
12#include <aws/lightsail/model/InstanceAccessProtocol.h>
13#include <aws/lightsail/model/HostKeyAttributes.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Lightsail
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_LIGHTSAIL_API InstanceAccessDetails();
43 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
52 inline const Aws::String& GetCertKey() const{ return m_certKey; }
53 inline bool CertKeyHasBeenSet() const { return m_certKeyHasBeenSet; }
54 inline void SetCertKey(const Aws::String& value) { m_certKeyHasBeenSet = true; m_certKey = value; }
55 inline void SetCertKey(Aws::String&& value) { m_certKeyHasBeenSet = true; m_certKey = std::move(value); }
56 inline void SetCertKey(const char* value) { m_certKeyHasBeenSet = true; m_certKey.assign(value); }
57 inline InstanceAccessDetails& WithCertKey(const Aws::String& value) { SetCertKey(value); return *this;}
58 inline InstanceAccessDetails& WithCertKey(Aws::String&& value) { SetCertKey(std::move(value)); return *this;}
59 inline InstanceAccessDetails& WithCertKey(const char* value) { SetCertKey(value); return *this;}
61
63
66 inline const Aws::Utils::DateTime& GetExpiresAt() const{ return m_expiresAt; }
67 inline bool ExpiresAtHasBeenSet() const { return m_expiresAtHasBeenSet; }
68 inline void SetExpiresAt(const Aws::Utils::DateTime& value) { m_expiresAtHasBeenSet = true; m_expiresAt = value; }
69 inline void SetExpiresAt(Aws::Utils::DateTime&& value) { m_expiresAtHasBeenSet = true; m_expiresAt = std::move(value); }
70 inline InstanceAccessDetails& WithExpiresAt(const Aws::Utils::DateTime& value) { SetExpiresAt(value); return *this;}
71 inline InstanceAccessDetails& WithExpiresAt(Aws::Utils::DateTime&& value) { SetExpiresAt(std::move(value)); return *this;}
73
75
78 inline const Aws::String& GetIpAddress() const{ return m_ipAddress; }
79 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
80 inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
81 inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::move(value); }
82 inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); }
83 inline InstanceAccessDetails& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;}
84 inline InstanceAccessDetails& WithIpAddress(Aws::String&& value) { SetIpAddress(std::move(value)); return *this;}
85 inline InstanceAccessDetails& WithIpAddress(const char* value) { SetIpAddress(value); return *this;}
87
89
92 inline const Aws::Vector<Aws::String>& GetIpv6Addresses() const{ return m_ipv6Addresses; }
93 inline bool Ipv6AddressesHasBeenSet() const { return m_ipv6AddressesHasBeenSet; }
94 inline void SetIpv6Addresses(const Aws::Vector<Aws::String>& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses = value; }
95 inline void SetIpv6Addresses(Aws::Vector<Aws::String>&& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses = std::move(value); }
97 inline InstanceAccessDetails& WithIpv6Addresses(Aws::Vector<Aws::String>&& value) { SetIpv6Addresses(std::move(value)); return *this;}
98 inline InstanceAccessDetails& AddIpv6Addresses(const Aws::String& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(value); return *this; }
99 inline InstanceAccessDetails& AddIpv6Addresses(Aws::String&& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(std::move(value)); return *this; }
100 inline InstanceAccessDetails& AddIpv6Addresses(const char* value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(value); return *this; }
102
104
115 inline const Aws::String& GetPassword() const{ return m_password; }
116 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
117 inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
118 inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
119 inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
120 inline InstanceAccessDetails& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
121 inline InstanceAccessDetails& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
122 inline InstanceAccessDetails& WithPassword(const char* value) { SetPassword(value); return *this;}
124
126
133 inline const PasswordData& GetPasswordData() const{ return m_passwordData; }
134 inline bool PasswordDataHasBeenSet() const { return m_passwordDataHasBeenSet; }
135 inline void SetPasswordData(const PasswordData& value) { m_passwordDataHasBeenSet = true; m_passwordData = value; }
136 inline void SetPasswordData(PasswordData&& value) { m_passwordDataHasBeenSet = true; m_passwordData = std::move(value); }
137 inline InstanceAccessDetails& WithPasswordData(const PasswordData& value) { SetPasswordData(value); return *this;}
138 inline InstanceAccessDetails& WithPasswordData(PasswordData&& value) { SetPasswordData(std::move(value)); return *this;}
140
142
146 inline const Aws::String& GetPrivateKey() const{ return m_privateKey; }
147 inline bool PrivateKeyHasBeenSet() const { return m_privateKeyHasBeenSet; }
148 inline void SetPrivateKey(const Aws::String& value) { m_privateKeyHasBeenSet = true; m_privateKey = value; }
149 inline void SetPrivateKey(Aws::String&& value) { m_privateKeyHasBeenSet = true; m_privateKey = std::move(value); }
150 inline void SetPrivateKey(const char* value) { m_privateKeyHasBeenSet = true; m_privateKey.assign(value); }
151 inline InstanceAccessDetails& WithPrivateKey(const Aws::String& value) { SetPrivateKey(value); return *this;}
152 inline InstanceAccessDetails& WithPrivateKey(Aws::String&& value) { SetPrivateKey(std::move(value)); return *this;}
153 inline InstanceAccessDetails& WithPrivateKey(const char* value) { SetPrivateKey(value); return *this;}
155
157
160 inline const InstanceAccessProtocol& GetProtocol() const{ return m_protocol; }
161 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
162 inline void SetProtocol(const InstanceAccessProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
163 inline void SetProtocol(InstanceAccessProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
164 inline InstanceAccessDetails& WithProtocol(const InstanceAccessProtocol& value) { SetProtocol(value); return *this;}
165 inline InstanceAccessDetails& WithProtocol(InstanceAccessProtocol&& value) { SetProtocol(std::move(value)); return *this;}
167
169
172 inline const Aws::String& GetInstanceName() const{ return m_instanceName; }
173 inline bool InstanceNameHasBeenSet() const { return m_instanceNameHasBeenSet; }
174 inline void SetInstanceName(const Aws::String& value) { m_instanceNameHasBeenSet = true; m_instanceName = value; }
175 inline void SetInstanceName(Aws::String&& value) { m_instanceNameHasBeenSet = true; m_instanceName = std::move(value); }
176 inline void SetInstanceName(const char* value) { m_instanceNameHasBeenSet = true; m_instanceName.assign(value); }
177 inline InstanceAccessDetails& WithInstanceName(const Aws::String& value) { SetInstanceName(value); return *this;}
178 inline InstanceAccessDetails& WithInstanceName(Aws::String&& value) { SetInstanceName(std::move(value)); return *this;}
179 inline InstanceAccessDetails& WithInstanceName(const char* value) { SetInstanceName(value); return *this;}
181
183
186 inline const Aws::String& GetUsername() const{ return m_username; }
187 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
188 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
189 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
190 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
191 inline InstanceAccessDetails& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
192 inline InstanceAccessDetails& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
193 inline InstanceAccessDetails& WithUsername(const char* value) { SetUsername(value); return *this;}
195
197
200 inline const Aws::Vector<HostKeyAttributes>& GetHostKeys() const{ return m_hostKeys; }
201 inline bool HostKeysHasBeenSet() const { return m_hostKeysHasBeenSet; }
202 inline void SetHostKeys(const Aws::Vector<HostKeyAttributes>& value) { m_hostKeysHasBeenSet = true; m_hostKeys = value; }
203 inline void SetHostKeys(Aws::Vector<HostKeyAttributes>&& value) { m_hostKeysHasBeenSet = true; m_hostKeys = std::move(value); }
205 inline InstanceAccessDetails& WithHostKeys(Aws::Vector<HostKeyAttributes>&& value) { SetHostKeys(std::move(value)); return *this;}
206 inline InstanceAccessDetails& AddHostKeys(const HostKeyAttributes& value) { m_hostKeysHasBeenSet = true; m_hostKeys.push_back(value); return *this; }
207 inline InstanceAccessDetails& AddHostKeys(HostKeyAttributes&& value) { m_hostKeysHasBeenSet = true; m_hostKeys.push_back(std::move(value)); return *this; }
209 private:
210
211 Aws::String m_certKey;
212 bool m_certKeyHasBeenSet = false;
213
214 Aws::Utils::DateTime m_expiresAt;
215 bool m_expiresAtHasBeenSet = false;
216
217 Aws::String m_ipAddress;
218 bool m_ipAddressHasBeenSet = false;
219
220 Aws::Vector<Aws::String> m_ipv6Addresses;
221 bool m_ipv6AddressesHasBeenSet = false;
222
223 Aws::String m_password;
224 bool m_passwordHasBeenSet = false;
225
226 PasswordData m_passwordData;
227 bool m_passwordDataHasBeenSet = false;
228
229 Aws::String m_privateKey;
230 bool m_privateKeyHasBeenSet = false;
231
232 InstanceAccessProtocol m_protocol;
233 bool m_protocolHasBeenSet = false;
234
235 Aws::String m_instanceName;
236 bool m_instanceNameHasBeenSet = false;
237
238 Aws::String m_username;
239 bool m_usernameHasBeenSet = false;
240
242 bool m_hostKeysHasBeenSet = false;
243 };
244
245} // namespace Model
246} // namespace Lightsail
247} // namespace Aws
const Aws::Vector< HostKeyAttributes > & GetHostKeys() const
void SetIpv6Addresses(Aws::Vector< Aws::String > &&value)
void SetProtocol(const InstanceAccessProtocol &value)
AWS_LIGHTSAIL_API InstanceAccessDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
InstanceAccessDetails & WithPrivateKey(Aws::String &&value)
InstanceAccessDetails & AddHostKeys(HostKeyAttributes &&value)
void SetHostKeys(Aws::Vector< HostKeyAttributes > &&value)
const Aws::Vector< Aws::String > & GetIpv6Addresses() const
InstanceAccessDetails & WithPasswordData(const PasswordData &value)
InstanceAccessDetails & WithProtocol(InstanceAccessProtocol &&value)
void SetProtocol(InstanceAccessProtocol &&value)
AWS_LIGHTSAIL_API InstanceAccessDetails(Aws::Utils::Json::JsonView jsonValue)
InstanceAccessDetails & AddIpv6Addresses(const Aws::String &value)
InstanceAccessDetails & WithIpv6Addresses(Aws::Vector< Aws::String > &&value)
InstanceAccessDetails & WithPrivateKey(const Aws::String &value)
InstanceAccessDetails & WithIpAddress(Aws::String &&value)
InstanceAccessDetails & WithUsername(Aws::String &&value)
InstanceAccessDetails & WithHostKeys(const Aws::Vector< HostKeyAttributes > &value)
InstanceAccessDetails & WithIpv6Addresses(const Aws::Vector< Aws::String > &value)
InstanceAccessDetails & WithProtocol(const InstanceAccessProtocol &value)
void SetIpv6Addresses(const Aws::Vector< Aws::String > &value)
InstanceAccessDetails & WithPassword(const Aws::String &value)
InstanceAccessDetails & WithUsername(const char *value)
InstanceAccessDetails & WithIpAddress(const Aws::String &value)
void SetExpiresAt(Aws::Utils::DateTime &&value)
InstanceAccessDetails & WithCertKey(const char *value)
InstanceAccessDetails & WithHostKeys(Aws::Vector< HostKeyAttributes > &&value)
InstanceAccessDetails & WithUsername(const Aws::String &value)
InstanceAccessDetails & AddHostKeys(const HostKeyAttributes &value)
InstanceAccessDetails & WithCertKey(Aws::String &&value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetExpiresAt() const
InstanceAccessDetails & WithPrivateKey(const char *value)
const InstanceAccessProtocol & GetProtocol() const
InstanceAccessDetails & WithPassword(const char *value)
InstanceAccessDetails & WithPassword(Aws::String &&value)
InstanceAccessDetails & WithExpiresAt(Aws::Utils::DateTime &&value)
InstanceAccessDetails & WithCertKey(const Aws::String &value)
InstanceAccessDetails & WithInstanceName(Aws::String &&value)
InstanceAccessDetails & WithInstanceName(const Aws::String &value)
InstanceAccessDetails & WithInstanceName(const char *value)
InstanceAccessDetails & AddIpv6Addresses(const char *value)
void SetHostKeys(const Aws::Vector< HostKeyAttributes > &value)
InstanceAccessDetails & WithIpAddress(const char *value)
InstanceAccessDetails & WithExpiresAt(const Aws::Utils::DateTime &value)
InstanceAccessDetails & AddIpv6Addresses(Aws::String &&value)
void SetExpiresAt(const Aws::Utils::DateTime &value)
InstanceAccessDetails & WithPasswordData(PasswordData &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue