AWS SDK for C++

AWS SDK for C++ Version 1.11.912

Loading...
Searching...
No Matches
DescribedHostKey.h
1
6#pragma once
7#include <aws/awstransfer/Transfer_EXPORTS.h>
8#include <aws/awstransfer/model/HostKeyStorageType.h>
9#include <aws/awstransfer/model/Tag.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Transfer {
24namespace Model {
25
32 public:
33 AWS_TRANSFER_API DescribedHostKey() = default;
34 AWS_TRANSFER_API DescribedHostKey(Aws::Utils::Json::JsonView jsonValue);
36 AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetArn() const { return m_arn; }
43 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
44 template <typename ArnT = Aws::String>
45 void SetArn(ArnT&& value) {
46 m_arnHasBeenSet = true;
47 m_arn = std::forward<ArnT>(value);
48 }
49 template <typename ArnT = Aws::String>
50 DescribedHostKey& WithArn(ArnT&& value) {
51 SetArn(std::forward<ArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetHostKeyId() const { return m_hostKeyId; }
61 inline bool HostKeyIdHasBeenSet() const { return m_hostKeyIdHasBeenSet; }
62 template <typename HostKeyIdT = Aws::String>
63 void SetHostKeyId(HostKeyIdT&& value) {
64 m_hostKeyIdHasBeenSet = true;
65 m_hostKeyId = std::forward<HostKeyIdT>(value);
66 }
67 template <typename HostKeyIdT = Aws::String>
68 DescribedHostKey& WithHostKeyId(HostKeyIdT&& value) {
69 SetHostKeyId(std::forward<HostKeyIdT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetHostKeyFingerprint() const { return m_hostKeyFingerprint; }
80 inline bool HostKeyFingerprintHasBeenSet() const { return m_hostKeyFingerprintHasBeenSet; }
81 template <typename HostKeyFingerprintT = Aws::String>
82 void SetHostKeyFingerprint(HostKeyFingerprintT&& value) {
83 m_hostKeyFingerprintHasBeenSet = true;
84 m_hostKeyFingerprint = std::forward<HostKeyFingerprintT>(value);
85 }
86 template <typename HostKeyFingerprintT = Aws::String>
87 DescribedHostKey& WithHostKeyFingerprint(HostKeyFingerprintT&& value) {
88 SetHostKeyFingerprint(std::forward<HostKeyFingerprintT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetDescription() const { return m_description; }
98 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
99 template <typename DescriptionT = Aws::String>
100 void SetDescription(DescriptionT&& value) {
101 m_descriptionHasBeenSet = true;
102 m_description = std::forward<DescriptionT>(value);
103 }
104 template <typename DescriptionT = Aws::String>
105 DescribedHostKey& WithDescription(DescriptionT&& value) {
106 SetDescription(std::forward<DescriptionT>(value));
107 return *this;
108 }
110
112
120 inline const Aws::String& GetType() const { return m_type; }
121 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
122 template <typename TypeT = Aws::String>
123 void SetType(TypeT&& value) {
124 m_typeHasBeenSet = true;
125 m_type = std::forward<TypeT>(value);
126 }
127 template <typename TypeT = Aws::String>
128 DescribedHostKey& WithType(TypeT&& value) {
129 SetType(std::forward<TypeT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::Utils::DateTime& GetDateImported() const { return m_dateImported; }
139 inline bool DateImportedHasBeenSet() const { return m_dateImportedHasBeenSet; }
140 template <typename DateImportedT = Aws::Utils::DateTime>
141 void SetDateImported(DateImportedT&& value) {
142 m_dateImportedHasBeenSet = true;
143 m_dateImported = std::forward<DateImportedT>(value);
144 }
145 template <typename DateImportedT = Aws::Utils::DateTime>
146 DescribedHostKey& WithDateImported(DateImportedT&& value) {
147 SetDateImported(std::forward<DateImportedT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
157 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
158 template <typename TagsT = Aws::Vector<Tag>>
159 void SetTags(TagsT&& value) {
160 m_tagsHasBeenSet = true;
161 m_tags = std::forward<TagsT>(value);
162 }
163 template <typename TagsT = Aws::Vector<Tag>>
164 DescribedHostKey& WithTags(TagsT&& value) {
165 SetTags(std::forward<TagsT>(value));
166 return *this;
167 }
168 template <typename TagsT = Tag>
169 DescribedHostKey& AddTags(TagsT&& value) {
170 m_tagsHasBeenSet = true;
171 m_tags.emplace_back(std::forward<TagsT>(value));
172 return *this;
173 }
175
177
182 inline HostKeyStorageType GetStorageType() const { return m_storageType; }
183 inline bool StorageTypeHasBeenSet() const { return m_storageTypeHasBeenSet; }
185 m_storageTypeHasBeenSet = true;
186 m_storageType = value;
187 }
189 SetStorageType(value);
190 return *this;
191 }
193
195
199 inline const Aws::String& GetSecretId() const { return m_secretId; }
200 inline bool SecretIdHasBeenSet() const { return m_secretIdHasBeenSet; }
201 template <typename SecretIdT = Aws::String>
202 void SetSecretId(SecretIdT&& value) {
203 m_secretIdHasBeenSet = true;
204 m_secretId = std::forward<SecretIdT>(value);
205 }
206 template <typename SecretIdT = Aws::String>
207 DescribedHostKey& WithSecretId(SecretIdT&& value) {
208 SetSecretId(std::forward<SecretIdT>(value));
209 return *this;
210 }
212 private:
213 Aws::String m_arn;
214
215 Aws::String m_hostKeyId;
216
217 Aws::String m_hostKeyFingerprint;
218
219 Aws::String m_description;
220
221 Aws::String m_type;
222
223 Aws::Utils::DateTime m_dateImported{};
224
225 Aws::Vector<Tag> m_tags;
226
228
229 Aws::String m_secretId;
230 bool m_arnHasBeenSet = false;
231 bool m_hostKeyIdHasBeenSet = false;
232 bool m_hostKeyFingerprintHasBeenSet = false;
233 bool m_descriptionHasBeenSet = false;
234 bool m_typeHasBeenSet = false;
235 bool m_dateImportedHasBeenSet = false;
236 bool m_tagsHasBeenSet = false;
237 bool m_storageTypeHasBeenSet = false;
238 bool m_secretIdHasBeenSet = false;
239};
240
241} // namespace Model
242} // namespace Transfer
243} // namespace Aws
DescribedHostKey & AddTags(TagsT &&value)
AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetHostKeyId() const
const Aws::String & GetType() const
const Aws::String & GetHostKeyFingerprint() const
const Aws::Vector< Tag > & GetTags() const
DescribedHostKey & WithStorageType(HostKeyStorageType value)
DescribedHostKey & WithHostKeyId(HostKeyIdT &&value)
void SetHostKeyFingerprint(HostKeyFingerprintT &&value)
DescribedHostKey & WithSecretId(SecretIdT &&value)
DescribedHostKey & WithDescription(DescriptionT &&value)
AWS_TRANSFER_API DescribedHostKey()=default
AWS_TRANSFER_API DescribedHostKey & operator=(Aws::Utils::Json::JsonView jsonValue)
DescribedHostKey & WithType(TypeT &&value)
AWS_TRANSFER_API DescribedHostKey(Aws::Utils::Json::JsonView jsonValue)
DescribedHostKey & WithTags(TagsT &&value)
DescribedHostKey & WithArn(ArnT &&value)
DescribedHostKey & WithHostKeyFingerprint(HostKeyFingerprintT &&value)
const Aws::Utils::DateTime & GetDateImported() const
const Aws::String & GetArn() const
void SetDateImported(DateImportedT &&value)
void SetDescription(DescriptionT &&value)
void SetStorageType(HostKeyStorageType value)
DescribedHostKey & WithDateImported(DateImportedT &&value)
const Aws::String & GetDescription() const
HostKeyStorageType GetStorageType() const
const Aws::String & GetSecretId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue