AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
HostKeyAttributes.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lightsail/Lightsail_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Lightsail {
21namespace Model {
22
30 public:
31 AWS_LIGHTSAIL_API HostKeyAttributes() = default;
32 AWS_LIGHTSAIL_API HostKeyAttributes(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
43 inline const Aws::String& GetAlgorithm() const { return m_algorithm; }
44 inline bool AlgorithmHasBeenSet() const { return m_algorithmHasBeenSet; }
45 template <typename AlgorithmT = Aws::String>
46 void SetAlgorithm(AlgorithmT&& value) {
47 m_algorithmHasBeenSet = true;
48 m_algorithm = std::forward<AlgorithmT>(value);
49 }
50 template <typename AlgorithmT = Aws::String>
51 HostKeyAttributes& WithAlgorithm(AlgorithmT&& value) {
52 SetAlgorithm(std::forward<AlgorithmT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetPublicKey() const { return m_publicKey; }
62 inline bool PublicKeyHasBeenSet() const { return m_publicKeyHasBeenSet; }
63 template <typename PublicKeyT = Aws::String>
64 void SetPublicKey(PublicKeyT&& value) {
65 m_publicKeyHasBeenSet = true;
66 m_publicKey = std::forward<PublicKeyT>(value);
67 }
68 template <typename PublicKeyT = Aws::String>
69 HostKeyAttributes& WithPublicKey(PublicKeyT&& value) {
70 SetPublicKey(std::forward<PublicKeyT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::Utils::DateTime& GetWitnessedAt() const { return m_witnessedAt; }
81 inline bool WitnessedAtHasBeenSet() const { return m_witnessedAtHasBeenSet; }
82 template <typename WitnessedAtT = Aws::Utils::DateTime>
83 void SetWitnessedAt(WitnessedAtT&& value) {
84 m_witnessedAtHasBeenSet = true;
85 m_witnessedAt = std::forward<WitnessedAtT>(value);
86 }
87 template <typename WitnessedAtT = Aws::Utils::DateTime>
88 HostKeyAttributes& WithWitnessedAt(WitnessedAtT&& value) {
89 SetWitnessedAt(std::forward<WitnessedAtT>(value));
90 return *this;
91 }
93
95
103 inline const Aws::String& GetFingerprintSHA1() const { return m_fingerprintSHA1; }
104 inline bool FingerprintSHA1HasBeenSet() const { return m_fingerprintSHA1HasBeenSet; }
105 template <typename FingerprintSHA1T = Aws::String>
106 void SetFingerprintSHA1(FingerprintSHA1T&& value) {
107 m_fingerprintSHA1HasBeenSet = true;
108 m_fingerprintSHA1 = std::forward<FingerprintSHA1T>(value);
109 }
110 template <typename FingerprintSHA1T = Aws::String>
111 HostKeyAttributes& WithFingerprintSHA1(FingerprintSHA1T&& value) {
112 SetFingerprintSHA1(std::forward<FingerprintSHA1T>(value));
113 return *this;
114 }
116
118
126 inline const Aws::String& GetFingerprintSHA256() const { return m_fingerprintSHA256; }
127 inline bool FingerprintSHA256HasBeenSet() const { return m_fingerprintSHA256HasBeenSet; }
128 template <typename FingerprintSHA256T = Aws::String>
129 void SetFingerprintSHA256(FingerprintSHA256T&& value) {
130 m_fingerprintSHA256HasBeenSet = true;
131 m_fingerprintSHA256 = std::forward<FingerprintSHA256T>(value);
132 }
133 template <typename FingerprintSHA256T = Aws::String>
134 HostKeyAttributes& WithFingerprintSHA256(FingerprintSHA256T&& value) {
135 SetFingerprintSHA256(std::forward<FingerprintSHA256T>(value));
136 return *this;
137 }
139
141
145 inline const Aws::Utils::DateTime& GetNotValidBefore() const { return m_notValidBefore; }
146 inline bool NotValidBeforeHasBeenSet() const { return m_notValidBeforeHasBeenSet; }
147 template <typename NotValidBeforeT = Aws::Utils::DateTime>
148 void SetNotValidBefore(NotValidBeforeT&& value) {
149 m_notValidBeforeHasBeenSet = true;
150 m_notValidBefore = std::forward<NotValidBeforeT>(value);
151 }
152 template <typename NotValidBeforeT = Aws::Utils::DateTime>
153 HostKeyAttributes& WithNotValidBefore(NotValidBeforeT&& value) {
154 SetNotValidBefore(std::forward<NotValidBeforeT>(value));
155 return *this;
156 }
158
160
164 inline const Aws::Utils::DateTime& GetNotValidAfter() const { return m_notValidAfter; }
165 inline bool NotValidAfterHasBeenSet() const { return m_notValidAfterHasBeenSet; }
166 template <typename NotValidAfterT = Aws::Utils::DateTime>
167 void SetNotValidAfter(NotValidAfterT&& value) {
168 m_notValidAfterHasBeenSet = true;
169 m_notValidAfter = std::forward<NotValidAfterT>(value);
170 }
171 template <typename NotValidAfterT = Aws::Utils::DateTime>
172 HostKeyAttributes& WithNotValidAfter(NotValidAfterT&& value) {
173 SetNotValidAfter(std::forward<NotValidAfterT>(value));
174 return *this;
175 }
177 private:
178 Aws::String m_algorithm;
179
180 Aws::String m_publicKey;
181
182 Aws::Utils::DateTime m_witnessedAt{};
183
184 Aws::String m_fingerprintSHA1;
185
186 Aws::String m_fingerprintSHA256;
187
188 Aws::Utils::DateTime m_notValidBefore{};
189
190 Aws::Utils::DateTime m_notValidAfter{};
191 bool m_algorithmHasBeenSet = false;
192 bool m_publicKeyHasBeenSet = false;
193 bool m_witnessedAtHasBeenSet = false;
194 bool m_fingerprintSHA1HasBeenSet = false;
195 bool m_fingerprintSHA256HasBeenSet = false;
196 bool m_notValidBeforeHasBeenSet = false;
197 bool m_notValidAfterHasBeenSet = false;
198};
199
200} // namespace Model
201} // namespace Lightsail
202} // namespace Aws
const Aws::Utils::DateTime & GetNotValidBefore() const
const Aws::Utils::DateTime & GetWitnessedAt() const
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
HostKeyAttributes & WithFingerprintSHA1(FingerprintSHA1T &&value)
void SetWitnessedAt(WitnessedAtT &&value)
const Aws::String & GetPublicKey() const
void SetFingerprintSHA256(FingerprintSHA256T &&value)
void SetNotValidAfter(NotValidAfterT &&value)
const Aws::String & GetAlgorithm() const
void SetFingerprintSHA1(FingerprintSHA1T &&value)
const Aws::String & GetFingerprintSHA256() const
HostKeyAttributes & WithAlgorithm(AlgorithmT &&value)
void SetNotValidBefore(NotValidBeforeT &&value)
AWS_LIGHTSAIL_API HostKeyAttributes(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetNotValidAfter() const
AWS_LIGHTSAIL_API HostKeyAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetFingerprintSHA1() const
HostKeyAttributes & WithPublicKey(PublicKeyT &&value)
HostKeyAttributes & WithNotValidAfter(NotValidAfterT &&value)
HostKeyAttributes & WithNotValidBefore(NotValidBeforeT &&value)
HostKeyAttributes & WithWitnessedAt(WitnessedAtT &&value)
HostKeyAttributes & WithFingerprintSHA256(FingerprintSHA256T &&value)
AWS_LIGHTSAIL_API HostKeyAttributes()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue