AWS SDK for C++  1.9.131
AWS SDK for C++
HostKeyAttributes.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Lightsail
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
48  inline const Aws::String& GetAlgorithm() const{ return m_algorithm; }
49 
56  inline bool AlgorithmHasBeenSet() const { return m_algorithmHasBeenSet; }
57 
64  inline void SetAlgorithm(const Aws::String& value) { m_algorithmHasBeenSet = true; m_algorithm = value; }
65 
72  inline void SetAlgorithm(Aws::String&& value) { m_algorithmHasBeenSet = true; m_algorithm = std::move(value); }
73 
80  inline void SetAlgorithm(const char* value) { m_algorithmHasBeenSet = true; m_algorithm.assign(value); }
81 
88  inline HostKeyAttributes& WithAlgorithm(const Aws::String& value) { SetAlgorithm(value); return *this;}
89 
96  inline HostKeyAttributes& WithAlgorithm(Aws::String&& value) { SetAlgorithm(std::move(value)); return *this;}
97 
104  inline HostKeyAttributes& WithAlgorithm(const char* value) { SetAlgorithm(value); return *this;}
105 
106 
110  inline const Aws::String& GetPublicKey() const{ return m_publicKey; }
111 
115  inline bool PublicKeyHasBeenSet() const { return m_publicKeyHasBeenSet; }
116 
120  inline void SetPublicKey(const Aws::String& value) { m_publicKeyHasBeenSet = true; m_publicKey = value; }
121 
125  inline void SetPublicKey(Aws::String&& value) { m_publicKeyHasBeenSet = true; m_publicKey = std::move(value); }
126 
130  inline void SetPublicKey(const char* value) { m_publicKeyHasBeenSet = true; m_publicKey.assign(value); }
131 
135  inline HostKeyAttributes& WithPublicKey(const Aws::String& value) { SetPublicKey(value); return *this;}
136 
140  inline HostKeyAttributes& WithPublicKey(Aws::String&& value) { SetPublicKey(std::move(value)); return *this;}
141 
145  inline HostKeyAttributes& WithPublicKey(const char* value) { SetPublicKey(value); return *this;}
146 
147 
152  inline const Aws::Utils::DateTime& GetWitnessedAt() const{ return m_witnessedAt; }
153 
158  inline bool WitnessedAtHasBeenSet() const { return m_witnessedAtHasBeenSet; }
159 
164  inline void SetWitnessedAt(const Aws::Utils::DateTime& value) { m_witnessedAtHasBeenSet = true; m_witnessedAt = value; }
165 
170  inline void SetWitnessedAt(Aws::Utils::DateTime&& value) { m_witnessedAtHasBeenSet = true; m_witnessedAt = std::move(value); }
171 
176  inline HostKeyAttributes& WithWitnessedAt(const Aws::Utils::DateTime& value) { SetWitnessedAt(value); return *this;}
177 
182  inline HostKeyAttributes& WithWitnessedAt(Aws::Utils::DateTime&& value) { SetWitnessedAt(std::move(value)); return *this;}
183 
184 
193  inline const Aws::String& GetFingerprintSHA1() const{ return m_fingerprintSHA1; }
194 
203  inline bool FingerprintSHA1HasBeenSet() const { return m_fingerprintSHA1HasBeenSet; }
204 
213  inline void SetFingerprintSHA1(const Aws::String& value) { m_fingerprintSHA1HasBeenSet = true; m_fingerprintSHA1 = value; }
214 
223  inline void SetFingerprintSHA1(Aws::String&& value) { m_fingerprintSHA1HasBeenSet = true; m_fingerprintSHA1 = std::move(value); }
224 
233  inline void SetFingerprintSHA1(const char* value) { m_fingerprintSHA1HasBeenSet = true; m_fingerprintSHA1.assign(value); }
234 
243  inline HostKeyAttributes& WithFingerprintSHA1(const Aws::String& value) { SetFingerprintSHA1(value); return *this;}
244 
253  inline HostKeyAttributes& WithFingerprintSHA1(Aws::String&& value) { SetFingerprintSHA1(std::move(value)); return *this;}
254 
263  inline HostKeyAttributes& WithFingerprintSHA1(const char* value) { SetFingerprintSHA1(value); return *this;}
264 
265 
274  inline const Aws::String& GetFingerprintSHA256() const{ return m_fingerprintSHA256; }
275 
284  inline bool FingerprintSHA256HasBeenSet() const { return m_fingerprintSHA256HasBeenSet; }
285 
294  inline void SetFingerprintSHA256(const Aws::String& value) { m_fingerprintSHA256HasBeenSet = true; m_fingerprintSHA256 = value; }
295 
304  inline void SetFingerprintSHA256(Aws::String&& value) { m_fingerprintSHA256HasBeenSet = true; m_fingerprintSHA256 = std::move(value); }
305 
314  inline void SetFingerprintSHA256(const char* value) { m_fingerprintSHA256HasBeenSet = true; m_fingerprintSHA256.assign(value); }
315 
324  inline HostKeyAttributes& WithFingerprintSHA256(const Aws::String& value) { SetFingerprintSHA256(value); return *this;}
325 
334  inline HostKeyAttributes& WithFingerprintSHA256(Aws::String&& value) { SetFingerprintSHA256(std::move(value)); return *this;}
335 
344  inline HostKeyAttributes& WithFingerprintSHA256(const char* value) { SetFingerprintSHA256(value); return *this;}
345 
346 
351  inline const Aws::Utils::DateTime& GetNotValidBefore() const{ return m_notValidBefore; }
352 
357  inline bool NotValidBeforeHasBeenSet() const { return m_notValidBeforeHasBeenSet; }
358 
363  inline void SetNotValidBefore(const Aws::Utils::DateTime& value) { m_notValidBeforeHasBeenSet = true; m_notValidBefore = value; }
364 
369  inline void SetNotValidBefore(Aws::Utils::DateTime&& value) { m_notValidBeforeHasBeenSet = true; m_notValidBefore = std::move(value); }
370 
375  inline HostKeyAttributes& WithNotValidBefore(const Aws::Utils::DateTime& value) { SetNotValidBefore(value); return *this;}
376 
381  inline HostKeyAttributes& WithNotValidBefore(Aws::Utils::DateTime&& value) { SetNotValidBefore(std::move(value)); return *this;}
382 
383 
388  inline const Aws::Utils::DateTime& GetNotValidAfter() const{ return m_notValidAfter; }
389 
394  inline bool NotValidAfterHasBeenSet() const { return m_notValidAfterHasBeenSet; }
395 
400  inline void SetNotValidAfter(const Aws::Utils::DateTime& value) { m_notValidAfterHasBeenSet = true; m_notValidAfter = value; }
401 
406  inline void SetNotValidAfter(Aws::Utils::DateTime&& value) { m_notValidAfterHasBeenSet = true; m_notValidAfter = std::move(value); }
407 
412  inline HostKeyAttributes& WithNotValidAfter(const Aws::Utils::DateTime& value) { SetNotValidAfter(value); return *this;}
413 
418  inline HostKeyAttributes& WithNotValidAfter(Aws::Utils::DateTime&& value) { SetNotValidAfter(std::move(value)); return *this;}
419 
420  private:
421 
422  Aws::String m_algorithm;
423  bool m_algorithmHasBeenSet;
424 
425  Aws::String m_publicKey;
426  bool m_publicKeyHasBeenSet;
427 
428  Aws::Utils::DateTime m_witnessedAt;
429  bool m_witnessedAtHasBeenSet;
430 
431  Aws::String m_fingerprintSHA1;
432  bool m_fingerprintSHA1HasBeenSet;
433 
434  Aws::String m_fingerprintSHA256;
435  bool m_fingerprintSHA256HasBeenSet;
436 
437  Aws::Utils::DateTime m_notValidBefore;
438  bool m_notValidBeforeHasBeenSet;
439 
440  Aws::Utils::DateTime m_notValidAfter;
441  bool m_notValidAfterHasBeenSet;
442  };
443 
444 } // namespace Model
445 } // namespace Lightsail
446 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Lightsail::Model::HostKeyAttributes::AlgorithmHasBeenSet
bool AlgorithmHasBeenSet() const
Definition: HostKeyAttributes.h:56
Aws::Lightsail::Model::HostKeyAttributes::SetFingerprintSHA1
void SetFingerprintSHA1(const char *value)
Definition: HostKeyAttributes.h:233
Aws::Lightsail::Model::HostKeyAttributes::GetNotValidBefore
const Aws::Utils::DateTime & GetNotValidBefore() const
Definition: HostKeyAttributes.h:351
Aws::Lightsail::Model::HostKeyAttributes::NotValidAfterHasBeenSet
bool NotValidAfterHasBeenSet() const
Definition: HostKeyAttributes.h:394
Aws::Lightsail::Model::HostKeyAttributes::GetAlgorithm
const Aws::String & GetAlgorithm() const
Definition: HostKeyAttributes.h:48
Aws::Lightsail::Model::HostKeyAttributes::WithFingerprintSHA1
HostKeyAttributes & WithFingerprintSHA1(const Aws::String &value)
Definition: HostKeyAttributes.h:243
Aws::Lightsail::Model::HostKeyAttributes::SetAlgorithm
void SetAlgorithm(const char *value)
Definition: HostKeyAttributes.h:80
Aws::Lightsail::Model::HostKeyAttributes::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
DateTime.h
Aws::Lightsail::Model::HostKeyAttributes::WithFingerprintSHA256
HostKeyAttributes & WithFingerprintSHA256(Aws::String &&value)
Definition: HostKeyAttributes.h:334
Aws::Lightsail::Model::HostKeyAttributes::WithAlgorithm
HostKeyAttributes & WithAlgorithm(const char *value)
Definition: HostKeyAttributes.h:104
Aws::Lightsail::Model::HostKeyAttributes::NotValidBeforeHasBeenSet
bool NotValidBeforeHasBeenSet() const
Definition: HostKeyAttributes.h:357
Aws::Lightsail::Model::HostKeyAttributes::SetFingerprintSHA256
void SetFingerprintSHA256(const Aws::String &value)
Definition: HostKeyAttributes.h:294
Aws::Lightsail::Model::HostKeyAttributes::WithFingerprintSHA256
HostKeyAttributes & WithFingerprintSHA256(const char *value)
Definition: HostKeyAttributes.h:344
Aws::Lightsail::Model::HostKeyAttributes::GetFingerprintSHA256
const Aws::String & GetFingerprintSHA256() const
Definition: HostKeyAttributes.h:274
Aws::Lightsail::Model::HostKeyAttributes::SetFingerprintSHA256
void SetFingerprintSHA256(const char *value)
Definition: HostKeyAttributes.h:314
Aws::Lightsail::Model::HostKeyAttributes::FingerprintSHA256HasBeenSet
bool FingerprintSHA256HasBeenSet() const
Definition: HostKeyAttributes.h:284
Aws::Lightsail::Model::HostKeyAttributes::GetWitnessedAt
const Aws::Utils::DateTime & GetWitnessedAt() const
Definition: HostKeyAttributes.h:152
Aws::Lightsail::Model::HostKeyAttributes::WithNotValidAfter
HostKeyAttributes & WithNotValidAfter(Aws::Utils::DateTime &&value)
Definition: HostKeyAttributes.h:418
Aws::Lightsail::Model::HostKeyAttributes::SetAlgorithm
void SetAlgorithm(Aws::String &&value)
Definition: HostKeyAttributes.h:72
Aws::Lightsail::Model::HostKeyAttributes::HostKeyAttributes
HostKeyAttributes()
Aws::Lightsail::Model::HostKeyAttributes::WithFingerprintSHA256
HostKeyAttributes & WithFingerprintSHA256(const Aws::String &value)
Definition: HostKeyAttributes.h:324
Aws::Lightsail::Model::HostKeyAttributes::GetPublicKey
const Aws::String & GetPublicKey() const
Definition: HostKeyAttributes.h:110
Aws::Lightsail::Model::HostKeyAttributes::SetNotValidBefore
void SetNotValidBefore(Aws::Utils::DateTime &&value)
Definition: HostKeyAttributes.h:369
Aws::Lightsail::Model::HostKeyAttributes::WithAlgorithm
HostKeyAttributes & WithAlgorithm(Aws::String &&value)
Definition: HostKeyAttributes.h:96
Aws::Lightsail::Model::HostKeyAttributes::FingerprintSHA1HasBeenSet
bool FingerprintSHA1HasBeenSet() const
Definition: HostKeyAttributes.h:203
Aws::Lightsail::Model::HostKeyAttributes::SetNotValidAfter
void SetNotValidAfter(const Aws::Utils::DateTime &value)
Definition: HostKeyAttributes.h:400
Aws::Lightsail::Model::HostKeyAttributes::SetFingerprintSHA1
void SetFingerprintSHA1(Aws::String &&value)
Definition: HostKeyAttributes.h:223
Aws::Lightsail::Model::HostKeyAttributes::SetPublicKey
void SetPublicKey(const char *value)
Definition: HostKeyAttributes.h:130
Aws::Lightsail::Model::HostKeyAttributes::WithWitnessedAt
HostKeyAttributes & WithWitnessedAt(const Aws::Utils::DateTime &value)
Definition: HostKeyAttributes.h:176
Aws::Lightsail::Model::HostKeyAttributes
Definition: HostKeyAttributes.h:34
Aws::Lightsail::Model::HostKeyAttributes::operator=
HostKeyAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::HostKeyAttributes::SetWitnessedAt
void SetWitnessedAt(Aws::Utils::DateTime &&value)
Definition: HostKeyAttributes.h:170
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Lightsail::Model::HostKeyAttributes::SetPublicKey
void SetPublicKey(Aws::String &&value)
Definition: HostKeyAttributes.h:125
Aws::Lightsail::Model::HostKeyAttributes::WithNotValidBefore
HostKeyAttributes & WithNotValidBefore(const Aws::Utils::DateTime &value)
Definition: HostKeyAttributes.h:375
Aws::Lightsail::Model::HostKeyAttributes::WithAlgorithm
HostKeyAttributes & WithAlgorithm(const Aws::String &value)
Definition: HostKeyAttributes.h:88
Lightsail_EXPORTS.h
Aws::Lightsail::Model::HostKeyAttributes::SetPublicKey
void SetPublicKey(const Aws::String &value)
Definition: HostKeyAttributes.h:120
Aws::Lightsail::Model::HostKeyAttributes::SetFingerprintSHA1
void SetFingerprintSHA1(const Aws::String &value)
Definition: HostKeyAttributes.h:213
Aws::Lightsail::Model::HostKeyAttributes::SetNotValidAfter
void SetNotValidAfter(Aws::Utils::DateTime &&value)
Definition: HostKeyAttributes.h:406
Aws::Lightsail::Model::HostKeyAttributes::HostKeyAttributes
HostKeyAttributes(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::HostKeyAttributes::GetFingerprintSHA1
const Aws::String & GetFingerprintSHA1() const
Definition: HostKeyAttributes.h:193
Aws::Lightsail::Model::HostKeyAttributes::WithPublicKey
HostKeyAttributes & WithPublicKey(const char *value)
Definition: HostKeyAttributes.h:145
Aws::Lightsail::Model::HostKeyAttributes::WithFingerprintSHA1
HostKeyAttributes & WithFingerprintSHA1(const char *value)
Definition: HostKeyAttributes.h:263
Aws::Lightsail::Model::HostKeyAttributes::WithFingerprintSHA1
HostKeyAttributes & WithFingerprintSHA1(Aws::String &&value)
Definition: HostKeyAttributes.h:253
Aws::Lightsail::Model::HostKeyAttributes::SetNotValidBefore
void SetNotValidBefore(const Aws::Utils::DateTime &value)
Definition: HostKeyAttributes.h:363
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::HostKeyAttributes::WithPublicKey
HostKeyAttributes & WithPublicKey(Aws::String &&value)
Definition: HostKeyAttributes.h:140
Aws::Lightsail::Model::HostKeyAttributes::SetFingerprintSHA256
void SetFingerprintSHA256(Aws::String &&value)
Definition: HostKeyAttributes.h:304
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::HostKeyAttributes::SetWitnessedAt
void SetWitnessedAt(const Aws::Utils::DateTime &value)
Definition: HostKeyAttributes.h:164
Aws::Lightsail::Model::HostKeyAttributes::WitnessedAtHasBeenSet
bool WitnessedAtHasBeenSet() const
Definition: HostKeyAttributes.h:158
Aws::Lightsail::Model::HostKeyAttributes::SetAlgorithm
void SetAlgorithm(const Aws::String &value)
Definition: HostKeyAttributes.h:64
Aws::Lightsail::Model::HostKeyAttributes::WithPublicKey
HostKeyAttributes & WithPublicKey(const Aws::String &value)
Definition: HostKeyAttributes.h:135
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::HostKeyAttributes::GetNotValidAfter
const Aws::Utils::DateTime & GetNotValidAfter() const
Definition: HostKeyAttributes.h:388
Aws::Lightsail::Model::HostKeyAttributes::PublicKeyHasBeenSet
bool PublicKeyHasBeenSet() const
Definition: HostKeyAttributes.h:115
Aws::Lightsail::Model::HostKeyAttributes::WithNotValidBefore
HostKeyAttributes & WithNotValidBefore(Aws::Utils::DateTime &&value)
Definition: HostKeyAttributes.h:381
Aws::Lightsail::Model::HostKeyAttributes::WithNotValidAfter
HostKeyAttributes & WithNotValidAfter(const Aws::Utils::DateTime &value)
Definition: HostKeyAttributes.h:412
Aws::Lightsail::Model::HostKeyAttributes::WithWitnessedAt
HostKeyAttributes & WithWitnessedAt(Aws::Utils::DateTime &&value)
Definition: HostKeyAttributes.h:182