AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribedHostKey.h
1
6#pragma once
7#include <aws/awstransfer/Transfer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/awstransfer/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Transfer
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_TRANSFER_API DescribedHostKey() = default;
38 AWS_TRANSFER_API DescribedHostKey(Aws::Utils::Json::JsonView jsonValue);
40 AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetArn() const { return m_arn; }
48 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
49 template<typename ArnT = Aws::String>
50 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
51 template<typename ArnT = Aws::String>
52 DescribedHostKey& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_hostKeyIdHasBeenSet = true; m_hostKeyId = std::forward<HostKeyIdT>(value); }
63 template<typename HostKeyIdT = Aws::String>
64 DescribedHostKey& WithHostKeyId(HostKeyIdT&& value) { SetHostKeyId(std::forward<HostKeyIdT>(value)); return *this;}
66
68
72 inline const Aws::String& GetHostKeyFingerprint() const { return m_hostKeyFingerprint; }
73 inline bool HostKeyFingerprintHasBeenSet() const { return m_hostKeyFingerprintHasBeenSet; }
74 template<typename HostKeyFingerprintT = Aws::String>
75 void SetHostKeyFingerprint(HostKeyFingerprintT&& value) { m_hostKeyFingerprintHasBeenSet = true; m_hostKeyFingerprint = std::forward<HostKeyFingerprintT>(value); }
76 template<typename HostKeyFingerprintT = Aws::String>
77 DescribedHostKey& WithHostKeyFingerprint(HostKeyFingerprintT&& value) { SetHostKeyFingerprint(std::forward<HostKeyFingerprintT>(value)); return *this;}
79
81
84 inline const Aws::String& GetDescription() const { return m_description; }
85 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 template<typename DescriptionT = Aws::String>
87 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
88 template<typename DescriptionT = Aws::String>
89 DescribedHostKey& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
91
93
101 inline const Aws::String& GetType() const { return m_type; }
102 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
103 template<typename TypeT = Aws::String>
104 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
105 template<typename TypeT = Aws::String>
106 DescribedHostKey& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
108
110
113 inline const Aws::Utils::DateTime& GetDateImported() const { return m_dateImported; }
114 inline bool DateImportedHasBeenSet() const { return m_dateImportedHasBeenSet; }
115 template<typename DateImportedT = Aws::Utils::DateTime>
116 void SetDateImported(DateImportedT&& value) { m_dateImportedHasBeenSet = true; m_dateImported = std::forward<DateImportedT>(value); }
117 template<typename DateImportedT = Aws::Utils::DateTime>
118 DescribedHostKey& WithDateImported(DateImportedT&& value) { SetDateImported(std::forward<DateImportedT>(value)); return *this;}
120
122
125 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
126 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
127 template<typename TagsT = Aws::Vector<Tag>>
128 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
129 template<typename TagsT = Aws::Vector<Tag>>
130 DescribedHostKey& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
131 template<typename TagsT = Tag>
132 DescribedHostKey& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
134 private:
135
136 Aws::String m_arn;
137 bool m_arnHasBeenSet = false;
138
139 Aws::String m_hostKeyId;
140 bool m_hostKeyIdHasBeenSet = false;
141
142 Aws::String m_hostKeyFingerprint;
143 bool m_hostKeyFingerprintHasBeenSet = false;
144
145 Aws::String m_description;
146 bool m_descriptionHasBeenSet = false;
147
148 Aws::String m_type;
149 bool m_typeHasBeenSet = false;
150
151 Aws::Utils::DateTime m_dateImported{};
152 bool m_dateImportedHasBeenSet = false;
153
154 Aws::Vector<Tag> m_tags;
155 bool m_tagsHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace Transfer
160} // 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