AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename AlgorithmT = Aws::String>
52 void SetAlgorithm(AlgorithmT&& value) { m_algorithmHasBeenSet = true; m_algorithm = std::forward<AlgorithmT>(value); }
53 template<typename AlgorithmT = Aws::String>
54 HostKeyAttributes& WithAlgorithm(AlgorithmT&& value) { SetAlgorithm(std::forward<AlgorithmT>(value)); return *this;}
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) { m_publicKeyHasBeenSet = true; m_publicKey = std::forward<PublicKeyT>(value); }
65 template<typename PublicKeyT = Aws::String>
66 HostKeyAttributes& WithPublicKey(PublicKeyT&& value) { SetPublicKey(std::forward<PublicKeyT>(value)); return *this;}
68
70
74 inline const Aws::Utils::DateTime& GetWitnessedAt() const { return m_witnessedAt; }
75 inline bool WitnessedAtHasBeenSet() const { return m_witnessedAtHasBeenSet; }
76 template<typename WitnessedAtT = Aws::Utils::DateTime>
77 void SetWitnessedAt(WitnessedAtT&& value) { m_witnessedAtHasBeenSet = true; m_witnessedAt = std::forward<WitnessedAtT>(value); }
78 template<typename WitnessedAtT = Aws::Utils::DateTime>
79 HostKeyAttributes& WithWitnessedAt(WitnessedAtT&& value) { SetWitnessedAt(std::forward<WitnessedAtT>(value)); return *this;}
81
83
91 inline const Aws::String& GetFingerprintSHA1() const { return m_fingerprintSHA1; }
92 inline bool FingerprintSHA1HasBeenSet() const { return m_fingerprintSHA1HasBeenSet; }
93 template<typename FingerprintSHA1T = Aws::String>
94 void SetFingerprintSHA1(FingerprintSHA1T&& value) { m_fingerprintSHA1HasBeenSet = true; m_fingerprintSHA1 = std::forward<FingerprintSHA1T>(value); }
95 template<typename FingerprintSHA1T = Aws::String>
96 HostKeyAttributes& WithFingerprintSHA1(FingerprintSHA1T&& value) { SetFingerprintSHA1(std::forward<FingerprintSHA1T>(value)); return *this;}
98
100
108 inline const Aws::String& GetFingerprintSHA256() const { return m_fingerprintSHA256; }
109 inline bool FingerprintSHA256HasBeenSet() const { return m_fingerprintSHA256HasBeenSet; }
110 template<typename FingerprintSHA256T = Aws::String>
111 void SetFingerprintSHA256(FingerprintSHA256T&& value) { m_fingerprintSHA256HasBeenSet = true; m_fingerprintSHA256 = std::forward<FingerprintSHA256T>(value); }
112 template<typename FingerprintSHA256T = Aws::String>
113 HostKeyAttributes& WithFingerprintSHA256(FingerprintSHA256T&& value) { SetFingerprintSHA256(std::forward<FingerprintSHA256T>(value)); return *this;}
115
117
121 inline const Aws::Utils::DateTime& GetNotValidBefore() const { return m_notValidBefore; }
122 inline bool NotValidBeforeHasBeenSet() const { return m_notValidBeforeHasBeenSet; }
123 template<typename NotValidBeforeT = Aws::Utils::DateTime>
124 void SetNotValidBefore(NotValidBeforeT&& value) { m_notValidBeforeHasBeenSet = true; m_notValidBefore = std::forward<NotValidBeforeT>(value); }
125 template<typename NotValidBeforeT = Aws::Utils::DateTime>
126 HostKeyAttributes& WithNotValidBefore(NotValidBeforeT&& value) { SetNotValidBefore(std::forward<NotValidBeforeT>(value)); return *this;}
128
130
134 inline const Aws::Utils::DateTime& GetNotValidAfter() const { return m_notValidAfter; }
135 inline bool NotValidAfterHasBeenSet() const { return m_notValidAfterHasBeenSet; }
136 template<typename NotValidAfterT = Aws::Utils::DateTime>
137 void SetNotValidAfter(NotValidAfterT&& value) { m_notValidAfterHasBeenSet = true; m_notValidAfter = std::forward<NotValidAfterT>(value); }
138 template<typename NotValidAfterT = Aws::Utils::DateTime>
139 HostKeyAttributes& WithNotValidAfter(NotValidAfterT&& value) { SetNotValidAfter(std::forward<NotValidAfterT>(value)); return *this;}
141 private:
142
143 Aws::String m_algorithm;
144 bool m_algorithmHasBeenSet = false;
145
146 Aws::String m_publicKey;
147 bool m_publicKeyHasBeenSet = false;
148
149 Aws::Utils::DateTime m_witnessedAt{};
150 bool m_witnessedAtHasBeenSet = false;
151
152 Aws::String m_fingerprintSHA1;
153 bool m_fingerprintSHA1HasBeenSet = false;
154
155 Aws::String m_fingerprintSHA256;
156 bool m_fingerprintSHA256HasBeenSet = false;
157
158 Aws::Utils::DateTime m_notValidBefore{};
159 bool m_notValidBeforeHasBeenSet = false;
160
161 Aws::Utils::DateTime m_notValidAfter{};
162 bool m_notValidAfterHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace Lightsail
167} // 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