AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
HostKeyAttributes.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Lightsail
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_LIGHTSAIL_API HostKeyAttributes();
37 AWS_LIGHTSAIL_API HostKeyAttributes(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
49 inline const Aws::String& GetAlgorithm() const{ return m_algorithm; }
50 inline bool AlgorithmHasBeenSet() const { return m_algorithmHasBeenSet; }
51 inline void SetAlgorithm(const Aws::String& value) { m_algorithmHasBeenSet = true; m_algorithm = value; }
52 inline void SetAlgorithm(Aws::String&& value) { m_algorithmHasBeenSet = true; m_algorithm = std::move(value); }
53 inline void SetAlgorithm(const char* value) { m_algorithmHasBeenSet = true; m_algorithm.assign(value); }
54 inline HostKeyAttributes& WithAlgorithm(const Aws::String& value) { SetAlgorithm(value); return *this;}
55 inline HostKeyAttributes& WithAlgorithm(Aws::String&& value) { SetAlgorithm(std::move(value)); return *this;}
56 inline HostKeyAttributes& WithAlgorithm(const char* value) { SetAlgorithm(value); return *this;}
58
60
63 inline const Aws::String& GetPublicKey() const{ return m_publicKey; }
64 inline bool PublicKeyHasBeenSet() const { return m_publicKeyHasBeenSet; }
65 inline void SetPublicKey(const Aws::String& value) { m_publicKeyHasBeenSet = true; m_publicKey = value; }
66 inline void SetPublicKey(Aws::String&& value) { m_publicKeyHasBeenSet = true; m_publicKey = std::move(value); }
67 inline void SetPublicKey(const char* value) { m_publicKeyHasBeenSet = true; m_publicKey.assign(value); }
68 inline HostKeyAttributes& WithPublicKey(const Aws::String& value) { SetPublicKey(value); return *this;}
69 inline HostKeyAttributes& WithPublicKey(Aws::String&& value) { SetPublicKey(std::move(value)); return *this;}
70 inline HostKeyAttributes& WithPublicKey(const char* value) { SetPublicKey(value); return *this;}
72
74
78 inline const Aws::Utils::DateTime& GetWitnessedAt() const{ return m_witnessedAt; }
79 inline bool WitnessedAtHasBeenSet() const { return m_witnessedAtHasBeenSet; }
80 inline void SetWitnessedAt(const Aws::Utils::DateTime& value) { m_witnessedAtHasBeenSet = true; m_witnessedAt = value; }
81 inline void SetWitnessedAt(Aws::Utils::DateTime&& value) { m_witnessedAtHasBeenSet = true; m_witnessedAt = std::move(value); }
82 inline HostKeyAttributes& WithWitnessedAt(const Aws::Utils::DateTime& value) { SetWitnessedAt(value); return *this;}
83 inline HostKeyAttributes& WithWitnessedAt(Aws::Utils::DateTime&& value) { SetWitnessedAt(std::move(value)); return *this;}
85
87
95 inline const Aws::String& GetFingerprintSHA1() const{ return m_fingerprintSHA1; }
96 inline bool FingerprintSHA1HasBeenSet() const { return m_fingerprintSHA1HasBeenSet; }
97 inline void SetFingerprintSHA1(const Aws::String& value) { m_fingerprintSHA1HasBeenSet = true; m_fingerprintSHA1 = value; }
98 inline void SetFingerprintSHA1(Aws::String&& value) { m_fingerprintSHA1HasBeenSet = true; m_fingerprintSHA1 = std::move(value); }
99 inline void SetFingerprintSHA1(const char* value) { m_fingerprintSHA1HasBeenSet = true; m_fingerprintSHA1.assign(value); }
100 inline HostKeyAttributes& WithFingerprintSHA1(const Aws::String& value) { SetFingerprintSHA1(value); return *this;}
101 inline HostKeyAttributes& WithFingerprintSHA1(Aws::String&& value) { SetFingerprintSHA1(std::move(value)); return *this;}
102 inline HostKeyAttributes& WithFingerprintSHA1(const char* value) { SetFingerprintSHA1(value); return *this;}
104
106
114 inline const Aws::String& GetFingerprintSHA256() const{ return m_fingerprintSHA256; }
115 inline bool FingerprintSHA256HasBeenSet() const { return m_fingerprintSHA256HasBeenSet; }
116 inline void SetFingerprintSHA256(const Aws::String& value) { m_fingerprintSHA256HasBeenSet = true; m_fingerprintSHA256 = value; }
117 inline void SetFingerprintSHA256(Aws::String&& value) { m_fingerprintSHA256HasBeenSet = true; m_fingerprintSHA256 = std::move(value); }
118 inline void SetFingerprintSHA256(const char* value) { m_fingerprintSHA256HasBeenSet = true; m_fingerprintSHA256.assign(value); }
119 inline HostKeyAttributes& WithFingerprintSHA256(const Aws::String& value) { SetFingerprintSHA256(value); return *this;}
120 inline HostKeyAttributes& WithFingerprintSHA256(Aws::String&& value) { SetFingerprintSHA256(std::move(value)); return *this;}
121 inline HostKeyAttributes& WithFingerprintSHA256(const char* value) { SetFingerprintSHA256(value); return *this;}
123
125
129 inline const Aws::Utils::DateTime& GetNotValidBefore() const{ return m_notValidBefore; }
130 inline bool NotValidBeforeHasBeenSet() const { return m_notValidBeforeHasBeenSet; }
131 inline void SetNotValidBefore(const Aws::Utils::DateTime& value) { m_notValidBeforeHasBeenSet = true; m_notValidBefore = value; }
132 inline void SetNotValidBefore(Aws::Utils::DateTime&& value) { m_notValidBeforeHasBeenSet = true; m_notValidBefore = std::move(value); }
133 inline HostKeyAttributes& WithNotValidBefore(const Aws::Utils::DateTime& value) { SetNotValidBefore(value); return *this;}
134 inline HostKeyAttributes& WithNotValidBefore(Aws::Utils::DateTime&& value) { SetNotValidBefore(std::move(value)); return *this;}
136
138
142 inline const Aws::Utils::DateTime& GetNotValidAfter() const{ return m_notValidAfter; }
143 inline bool NotValidAfterHasBeenSet() const { return m_notValidAfterHasBeenSet; }
144 inline void SetNotValidAfter(const Aws::Utils::DateTime& value) { m_notValidAfterHasBeenSet = true; m_notValidAfter = value; }
145 inline void SetNotValidAfter(Aws::Utils::DateTime&& value) { m_notValidAfterHasBeenSet = true; m_notValidAfter = std::move(value); }
146 inline HostKeyAttributes& WithNotValidAfter(const Aws::Utils::DateTime& value) { SetNotValidAfter(value); return *this;}
147 inline HostKeyAttributes& WithNotValidAfter(Aws::Utils::DateTime&& value) { SetNotValidAfter(std::move(value)); return *this;}
149 private:
150
151 Aws::String m_algorithm;
152 bool m_algorithmHasBeenSet = false;
153
154 Aws::String m_publicKey;
155 bool m_publicKeyHasBeenSet = false;
156
157 Aws::Utils::DateTime m_witnessedAt;
158 bool m_witnessedAtHasBeenSet = false;
159
160 Aws::String m_fingerprintSHA1;
161 bool m_fingerprintSHA1HasBeenSet = false;
162
163 Aws::String m_fingerprintSHA256;
164 bool m_fingerprintSHA256HasBeenSet = false;
165
166 Aws::Utils::DateTime m_notValidBefore;
167 bool m_notValidBeforeHasBeenSet = false;
168
169 Aws::Utils::DateTime m_notValidAfter;
170 bool m_notValidAfterHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace Lightsail
175} // namespace Aws
void SetAlgorithm(const Aws::String &value)
const Aws::Utils::DateTime & GetNotValidBefore() const
void SetFingerprintSHA1(const Aws::String &value)
void SetNotValidBefore(const Aws::Utils::DateTime &value)
void SetNotValidAfter(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetWitnessedAt() const
void SetFingerprintSHA256(const Aws::String &value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
HostKeyAttributes & WithNotValidAfter(const Aws::Utils::DateTime &value)
HostKeyAttributes & WithFingerprintSHA256(Aws::String &&value)
HostKeyAttributes & WithNotValidBefore(Aws::Utils::DateTime &&value)
void SetNotValidBefore(Aws::Utils::DateTime &&value)
HostKeyAttributes & WithFingerprintSHA1(const Aws::String &value)
HostKeyAttributes & WithPublicKey(Aws::String &&value)
const Aws::String & GetPublicKey() const
const Aws::String & GetAlgorithm() const
void SetNotValidAfter(const Aws::Utils::DateTime &value)
HostKeyAttributes & WithFingerprintSHA1(const char *value)
HostKeyAttributes & WithNotValidAfter(Aws::Utils::DateTime &&value)
HostKeyAttributes & WithAlgorithm(const Aws::String &value)
const Aws::String & GetFingerprintSHA256() const
HostKeyAttributes & WithFingerprintSHA256(const char *value)
void SetWitnessedAt(Aws::Utils::DateTime &&value)
void SetWitnessedAt(const Aws::Utils::DateTime &value)
AWS_LIGHTSAIL_API HostKeyAttributes(Aws::Utils::Json::JsonView jsonValue)
HostKeyAttributes & WithFingerprintSHA256(const Aws::String &value)
HostKeyAttributes & WithFingerprintSHA1(Aws::String &&value)
HostKeyAttributes & WithNotValidBefore(const Aws::Utils::DateTime &value)
HostKeyAttributes & WithWitnessedAt(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetNotValidAfter() const
HostKeyAttributes & WithAlgorithm(Aws::String &&value)
HostKeyAttributes & WithPublicKey(const Aws::String &value)
void SetPublicKey(const Aws::String &value)
AWS_LIGHTSAIL_API HostKeyAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
HostKeyAttributes & WithAlgorithm(const char *value)
HostKeyAttributes & WithPublicKey(const char *value)
const Aws::String & GetFingerprintSHA1() const
HostKeyAttributes & WithWitnessedAt(Aws::Utils::DateTime &&value)
void SetFingerprintSHA256(Aws::String &&value)
void SetFingerprintSHA1(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue