AWS SDK for C++

AWS SDK for C++ Version 1.11.764

Loading...
Searching...
No Matches
DescribedHostKey.h
1
6#pragma once
7#include <aws/awstransfer/Transfer_EXPORTS.h>
8#include <aws/awstransfer/model/Tag.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Transfer {
23namespace Model {
24
31 public:
32 AWS_TRANSFER_API DescribedHostKey() = default;
33 AWS_TRANSFER_API DescribedHostKey(Aws::Utils::Json::JsonView jsonValue);
35 AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetArn() const { return m_arn; }
42 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
43 template <typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) {
45 m_arnHasBeenSet = true;
46 m_arn = std::forward<ArnT>(value);
47 }
48 template <typename ArnT = Aws::String>
49 DescribedHostKey& WithArn(ArnT&& value) {
50 SetArn(std::forward<ArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetHostKeyId() const { return m_hostKeyId; }
60 inline bool HostKeyIdHasBeenSet() const { return m_hostKeyIdHasBeenSet; }
61 template <typename HostKeyIdT = Aws::String>
62 void SetHostKeyId(HostKeyIdT&& value) {
63 m_hostKeyIdHasBeenSet = true;
64 m_hostKeyId = std::forward<HostKeyIdT>(value);
65 }
66 template <typename HostKeyIdT = Aws::String>
67 DescribedHostKey& WithHostKeyId(HostKeyIdT&& value) {
68 SetHostKeyId(std::forward<HostKeyIdT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetHostKeyFingerprint() const { return m_hostKeyFingerprint; }
79 inline bool HostKeyFingerprintHasBeenSet() const { return m_hostKeyFingerprintHasBeenSet; }
80 template <typename HostKeyFingerprintT = Aws::String>
81 void SetHostKeyFingerprint(HostKeyFingerprintT&& value) {
82 m_hostKeyFingerprintHasBeenSet = true;
83 m_hostKeyFingerprint = std::forward<HostKeyFingerprintT>(value);
84 }
85 template <typename HostKeyFingerprintT = Aws::String>
86 DescribedHostKey& WithHostKeyFingerprint(HostKeyFingerprintT&& value) {
87 SetHostKeyFingerprint(std::forward<HostKeyFingerprintT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetDescription() const { return m_description; }
97 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
98 template <typename DescriptionT = Aws::String>
99 void SetDescription(DescriptionT&& value) {
100 m_descriptionHasBeenSet = true;
101 m_description = std::forward<DescriptionT>(value);
102 }
103 template <typename DescriptionT = Aws::String>
104 DescribedHostKey& WithDescription(DescriptionT&& value) {
105 SetDescription(std::forward<DescriptionT>(value));
106 return *this;
107 }
109
111
119 inline const Aws::String& GetType() const { return m_type; }
120 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
121 template <typename TypeT = Aws::String>
122 void SetType(TypeT&& value) {
123 m_typeHasBeenSet = true;
124 m_type = std::forward<TypeT>(value);
125 }
126 template <typename TypeT = Aws::String>
127 DescribedHostKey& WithType(TypeT&& value) {
128 SetType(std::forward<TypeT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::Utils::DateTime& GetDateImported() const { return m_dateImported; }
138 inline bool DateImportedHasBeenSet() const { return m_dateImportedHasBeenSet; }
139 template <typename DateImportedT = Aws::Utils::DateTime>
140 void SetDateImported(DateImportedT&& value) {
141 m_dateImportedHasBeenSet = true;
142 m_dateImported = std::forward<DateImportedT>(value);
143 }
144 template <typename DateImportedT = Aws::Utils::DateTime>
145 DescribedHostKey& WithDateImported(DateImportedT&& value) {
146 SetDateImported(std::forward<DateImportedT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
156 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
157 template <typename TagsT = Aws::Vector<Tag>>
158 void SetTags(TagsT&& value) {
159 m_tagsHasBeenSet = true;
160 m_tags = std::forward<TagsT>(value);
161 }
162 template <typename TagsT = Aws::Vector<Tag>>
163 DescribedHostKey& WithTags(TagsT&& value) {
164 SetTags(std::forward<TagsT>(value));
165 return *this;
166 }
167 template <typename TagsT = Tag>
168 DescribedHostKey& AddTags(TagsT&& value) {
169 m_tagsHasBeenSet = true;
170 m_tags.emplace_back(std::forward<TagsT>(value));
171 return *this;
172 }
174 private:
175 Aws::String m_arn;
176
177 Aws::String m_hostKeyId;
178
179 Aws::String m_hostKeyFingerprint;
180
181 Aws::String m_description;
182
183 Aws::String m_type;
184
185 Aws::Utils::DateTime m_dateImported{};
186
187 Aws::Vector<Tag> m_tags;
188 bool m_arnHasBeenSet = false;
189 bool m_hostKeyIdHasBeenSet = false;
190 bool m_hostKeyFingerprintHasBeenSet = false;
191 bool m_descriptionHasBeenSet = false;
192 bool m_typeHasBeenSet = false;
193 bool m_dateImportedHasBeenSet = false;
194 bool m_tagsHasBeenSet = false;
195};
196
197} // namespace Model
198} // namespace Transfer
199} // 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 & WithHostKeyId(HostKeyIdT &&value)
void SetHostKeyFingerprint(HostKeyFingerprintT &&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)
DescribedHostKey & WithDateImported(DateImportedT &&value)
const Aws::String & GetDescription() 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