AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
50 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
51 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
52 inline DescribedHostKey& WithArn(const Aws::String& value) { SetArn(value); return *this;}
53 inline DescribedHostKey& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
54 inline DescribedHostKey& WithArn(const char* value) { SetArn(value); return *this;}
56
58
61 inline const Aws::String& GetHostKeyId() const{ return m_hostKeyId; }
62 inline bool HostKeyIdHasBeenSet() const { return m_hostKeyIdHasBeenSet; }
63 inline void SetHostKeyId(const Aws::String& value) { m_hostKeyIdHasBeenSet = true; m_hostKeyId = value; }
64 inline void SetHostKeyId(Aws::String&& value) { m_hostKeyIdHasBeenSet = true; m_hostKeyId = std::move(value); }
65 inline void SetHostKeyId(const char* value) { m_hostKeyIdHasBeenSet = true; m_hostKeyId.assign(value); }
66 inline DescribedHostKey& WithHostKeyId(const Aws::String& value) { SetHostKeyId(value); return *this;}
67 inline DescribedHostKey& WithHostKeyId(Aws::String&& value) { SetHostKeyId(std::move(value)); return *this;}
68 inline DescribedHostKey& WithHostKeyId(const char* value) { SetHostKeyId(value); return *this;}
70
72
76 inline const Aws::String& GetHostKeyFingerprint() const{ return m_hostKeyFingerprint; }
77 inline bool HostKeyFingerprintHasBeenSet() const { return m_hostKeyFingerprintHasBeenSet; }
78 inline void SetHostKeyFingerprint(const Aws::String& value) { m_hostKeyFingerprintHasBeenSet = true; m_hostKeyFingerprint = value; }
79 inline void SetHostKeyFingerprint(Aws::String&& value) { m_hostKeyFingerprintHasBeenSet = true; m_hostKeyFingerprint = std::move(value); }
80 inline void SetHostKeyFingerprint(const char* value) { m_hostKeyFingerprintHasBeenSet = true; m_hostKeyFingerprint.assign(value); }
81 inline DescribedHostKey& WithHostKeyFingerprint(const Aws::String& value) { SetHostKeyFingerprint(value); return *this;}
82 inline DescribedHostKey& WithHostKeyFingerprint(Aws::String&& value) { SetHostKeyFingerprint(std::move(value)); return *this;}
83 inline DescribedHostKey& WithHostKeyFingerprint(const char* value) { SetHostKeyFingerprint(value); return *this;}
85
87
90 inline const Aws::String& GetDescription() const{ return m_description; }
91 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
92 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
93 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
94 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
95 inline DescribedHostKey& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
96 inline DescribedHostKey& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
97 inline DescribedHostKey& WithDescription(const char* value) { SetDescription(value); return *this;}
99
101
109 inline const Aws::String& GetType() const{ return m_type; }
110 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
111 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
112 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
113 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
114 inline DescribedHostKey& WithType(const Aws::String& value) { SetType(value); return *this;}
115 inline DescribedHostKey& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
116 inline DescribedHostKey& WithType(const char* value) { SetType(value); return *this;}
118
120
123 inline const Aws::Utils::DateTime& GetDateImported() const{ return m_dateImported; }
124 inline bool DateImportedHasBeenSet() const { return m_dateImportedHasBeenSet; }
125 inline void SetDateImported(const Aws::Utils::DateTime& value) { m_dateImportedHasBeenSet = true; m_dateImported = value; }
126 inline void SetDateImported(Aws::Utils::DateTime&& value) { m_dateImportedHasBeenSet = true; m_dateImported = std::move(value); }
127 inline DescribedHostKey& WithDateImported(const Aws::Utils::DateTime& value) { SetDateImported(value); return *this;}
128 inline DescribedHostKey& WithDateImported(Aws::Utils::DateTime&& value) { SetDateImported(std::move(value)); return *this;}
130
132
135 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
136 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
137 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
138 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
139 inline DescribedHostKey& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
140 inline DescribedHostKey& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
141 inline DescribedHostKey& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
142 inline DescribedHostKey& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
144 private:
145
146 Aws::String m_arn;
147 bool m_arnHasBeenSet = false;
148
149 Aws::String m_hostKeyId;
150 bool m_hostKeyIdHasBeenSet = false;
151
152 Aws::String m_hostKeyFingerprint;
153 bool m_hostKeyFingerprintHasBeenSet = false;
154
155 Aws::String m_description;
156 bool m_descriptionHasBeenSet = false;
157
158 Aws::String m_type;
159 bool m_typeHasBeenSet = false;
160
161 Aws::Utils::DateTime m_dateImported;
162 bool m_dateImportedHasBeenSet = false;
163
164 Aws::Vector<Tag> m_tags;
165 bool m_tagsHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace Transfer
170} // namespace Aws
void SetHostKeyId(Aws::String &&value)
DescribedHostKey & AddTags(Tag &&value)
DescribedHostKey & WithType(const Aws::String &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
void SetType(const Aws::String &value)
void SetHostKeyId(const Aws::String &value)
DescribedHostKey & WithHostKeyFingerprint(const char *value)
DescribedHostKey & WithDateImported(Aws::Utils::DateTime &&value)
void SetDateImported(const Aws::Utils::DateTime &value)
DescribedHostKey & WithArn(const Aws::String &value)
void SetArn(const Aws::String &value)
void SetTags(Aws::Vector< Tag > &&value)
DescribedHostKey & WithDescription(const Aws::String &value)
DescribedHostKey & AddTags(const Tag &value)
DescribedHostKey & WithType(const char *value)
void SetHostKeyFingerprint(const char *value)
DescribedHostKey & WithTags(Aws::Vector< Tag > &&value)
DescribedHostKey & WithHostKeyFingerprint(Aws::String &&value)
DescribedHostKey & WithArn(const char *value)
void SetHostKeyFingerprint(Aws::String &&value)
void SetDescription(const Aws::String &value)
DescribedHostKey & WithTags(const Aws::Vector< Tag > &value)
DescribedHostKey & WithHostKeyId(const char *value)
AWS_TRANSFER_API DescribedHostKey & operator=(Aws::Utils::Json::JsonView jsonValue)
DescribedHostKey & WithDescription(Aws::String &&value)
AWS_TRANSFER_API DescribedHostKey(Aws::Utils::Json::JsonView jsonValue)
void SetHostKeyFingerprint(const Aws::String &value)
void SetDescription(Aws::String &&value)
DescribedHostKey & WithHostKeyId(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
const Aws::Utils::DateTime & GetDateImported() const
void SetDateImported(Aws::Utils::DateTime &&value)
DescribedHostKey & WithHostKeyFingerprint(const Aws::String &value)
DescribedHostKey & WithType(Aws::String &&value)
DescribedHostKey & WithDateImported(const Aws::Utils::DateTime &value)
const Aws::String & GetArn() const
DescribedHostKey & WithDescription(const char *value)
DescribedHostKey & WithHostKeyId(Aws::String &&value)
const Aws::String & GetDescription() const
DescribedHostKey & WithArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue