AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
PublicRecord.h
1
6#pragma once
7#include <aws/agent-discovery/AgentDiscovery_EXPORTS.h>
8#include <aws/agent-discovery/model/DescriptorEntry.h>
9#include <aws/agent-discovery/model/Identifier.h>
10#include <aws/agent-discovery/model/RecordType.h>
11#include <aws/agent-discovery/model/TrustManifest.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace AgentDiscovery {
27namespace Model {
28
36 public:
37 AWS_AGENTDISCOVERY_API PublicRecord() = default;
38 AWS_AGENTDISCOVERY_API PublicRecord(Aws::Utils::Json::JsonView jsonValue);
39 AWS_AGENTDISCOVERY_API PublicRecord& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_AGENTDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
44 inline const Identifier& GetIdentifier() const { return m_identifier; }
45 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
46 template <typename IdentifierT = Identifier>
47 void SetIdentifier(IdentifierT&& value) {
48 m_identifierHasBeenSet = true;
49 m_identifier = std::forward<IdentifierT>(value);
50 }
51 template <typename IdentifierT = Identifier>
52 PublicRecord& WithIdentifier(IdentifierT&& value) {
53 SetIdentifier(std::forward<IdentifierT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetDisplayName() const { return m_displayName; }
63 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
64 template <typename DisplayNameT = Aws::String>
65 void SetDisplayName(DisplayNameT&& value) {
66 m_displayNameHasBeenSet = true;
67 m_displayName = std::forward<DisplayNameT>(value);
68 }
69 template <typename DisplayNameT = Aws::String>
70 PublicRecord& WithDisplayName(DisplayNameT&& value) {
71 SetDisplayName(std::forward<DisplayNameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetDescription() const { return m_description; }
81 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
82 template <typename DescriptionT = Aws::String>
83 void SetDescription(DescriptionT&& value) {
84 m_descriptionHasBeenSet = true;
85 m_description = std::forward<DescriptionT>(value);
86 }
87 template <typename DescriptionT = Aws::String>
88 PublicRecord& WithDescription(DescriptionT&& value) {
89 SetDescription(std::forward<DescriptionT>(value));
90 return *this;
91 }
93
95
99 inline RecordType GetRecordType() const { return m_recordType; }
100 inline bool RecordTypeHasBeenSet() const { return m_recordTypeHasBeenSet; }
101 inline void SetRecordType(RecordType value) {
102 m_recordTypeHasBeenSet = true;
103 m_recordType = value;
104 }
106 SetRecordType(value);
107 return *this;
108 }
110
112
113 inline const Aws::String& GetDomain() const { return m_domain; }
114 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
115 template <typename DomainT = Aws::String>
116 void SetDomain(DomainT&& value) {
117 m_domainHasBeenSet = true;
118 m_domain = std::forward<DomainT>(value);
119 }
120 template <typename DomainT = Aws::String>
121 PublicRecord& WithDomain(DomainT&& value) {
122 SetDomain(std::forward<DomainT>(value));
123 return *this;
124 }
126
128
135 inline const Aws::Map<Aws::String, DescriptorEntry>& GetDescriptors() const { return m_descriptors; }
136 inline bool DescriptorsHasBeenSet() const { return m_descriptorsHasBeenSet; }
137 template <typename DescriptorsT = Aws::Map<Aws::String, DescriptorEntry>>
138 void SetDescriptors(DescriptorsT&& value) {
139 m_descriptorsHasBeenSet = true;
140 m_descriptors = std::forward<DescriptorsT>(value);
141 }
142 template <typename DescriptorsT = Aws::Map<Aws::String, DescriptorEntry>>
143 PublicRecord& WithDescriptors(DescriptorsT&& value) {
144 SetDescriptors(std::forward<DescriptorsT>(value));
145 return *this;
146 }
147 template <typename DescriptorsKeyT = Aws::String, typename DescriptorsValueT = DescriptorEntry>
148 PublicRecord& AddDescriptors(DescriptorsKeyT&& key, DescriptorsValueT&& value) {
149 m_descriptorsHasBeenSet = true;
150 m_descriptors.emplace(std::forward<DescriptorsKeyT>(key), std::forward<DescriptorsValueT>(value));
151 return *this;
152 }
154
156
171 inline const Aws::Vector<TrustManifest>& GetTrustManifests() const { return m_trustManifests; }
172 inline bool TrustManifestsHasBeenSet() const { return m_trustManifestsHasBeenSet; }
173 template <typename TrustManifestsT = Aws::Vector<TrustManifest>>
174 void SetTrustManifests(TrustManifestsT&& value) {
175 m_trustManifestsHasBeenSet = true;
176 m_trustManifests = std::forward<TrustManifestsT>(value);
177 }
178 template <typename TrustManifestsT = Aws::Vector<TrustManifest>>
179 PublicRecord& WithTrustManifests(TrustManifestsT&& value) {
180 SetTrustManifests(std::forward<TrustManifestsT>(value));
181 return *this;
182 }
183 template <typename TrustManifestsT = TrustManifest>
184 PublicRecord& AddTrustManifests(TrustManifestsT&& value) {
185 m_trustManifestsHasBeenSet = true;
186 m_trustManifests.emplace_back(std::forward<TrustManifestsT>(value));
187 return *this;
188 }
190
192
196 inline const Aws::String& GetRecordVersion() const { return m_recordVersion; }
197 inline bool RecordVersionHasBeenSet() const { return m_recordVersionHasBeenSet; }
198 template <typename RecordVersionT = Aws::String>
199 void SetRecordVersion(RecordVersionT&& value) {
200 m_recordVersionHasBeenSet = true;
201 m_recordVersion = std::forward<RecordVersionT>(value);
202 }
203 template <typename RecordVersionT = Aws::String>
204 PublicRecord& WithRecordVersion(RecordVersionT&& value) {
205 SetRecordVersion(std::forward<RecordVersionT>(value));
206 return *this;
207 }
209
211
214 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
215 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
216 template <typename CreatedAtT = Aws::Utils::DateTime>
217 void SetCreatedAt(CreatedAtT&& value) {
218 m_createdAtHasBeenSet = true;
219 m_createdAt = std::forward<CreatedAtT>(value);
220 }
221 template <typename CreatedAtT = Aws::Utils::DateTime>
222 PublicRecord& WithCreatedAt(CreatedAtT&& value) {
223 SetCreatedAt(std::forward<CreatedAtT>(value));
224 return *this;
225 }
227
229
232 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
233 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
234 template <typename UpdatedAtT = Aws::Utils::DateTime>
235 void SetUpdatedAt(UpdatedAtT&& value) {
236 m_updatedAtHasBeenSet = true;
237 m_updatedAt = std::forward<UpdatedAtT>(value);
238 }
239 template <typename UpdatedAtT = Aws::Utils::DateTime>
240 PublicRecord& WithUpdatedAt(UpdatedAtT&& value) {
241 SetUpdatedAt(std::forward<UpdatedAtT>(value));
242 return *this;
243 }
245 private:
246 Identifier m_identifier;
247
248 Aws::String m_displayName;
249
250 Aws::String m_description;
251
252 RecordType m_recordType{RecordType::NOT_SET};
253
254 Aws::String m_domain;
255
257
258 Aws::Vector<TrustManifest> m_trustManifests;
259
260 Aws::String m_recordVersion;
261
262 Aws::Utils::DateTime m_createdAt{};
263
264 Aws::Utils::DateTime m_updatedAt{};
265 bool m_identifierHasBeenSet = false;
266 bool m_displayNameHasBeenSet = false;
267 bool m_descriptionHasBeenSet = false;
268 bool m_recordTypeHasBeenSet = false;
269 bool m_domainHasBeenSet = false;
270 bool m_descriptorsHasBeenSet = false;
271 bool m_trustManifestsHasBeenSet = false;
272 bool m_recordVersionHasBeenSet = false;
273 bool m_createdAtHasBeenSet = false;
274 bool m_updatedAtHasBeenSet = false;
275};
276
277} // namespace Model
278} // namespace AgentDiscovery
279} // namespace Aws
PublicRecord & WithIdentifier(IdentifierT &&value)
PublicRecord & WithDisplayName(DisplayNameT &&value)
PublicRecord & WithTrustManifests(TrustManifestsT &&value)
PublicRecord & WithUpdatedAt(UpdatedAtT &&value)
PublicRecord & WithRecordVersion(RecordVersionT &&value)
AWS_AGENTDISCOVERY_API PublicRecord & operator=(Aws::Utils::Json::JsonView jsonValue)
const Identifier & GetIdentifier() const
const Aws::String & GetDisplayName() const
PublicRecord & WithDescription(DescriptionT &&value)
const Aws::String & GetDomain() const
void SetUpdatedAt(UpdatedAtT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_AGENTDISCOVERY_API PublicRecord(Aws::Utils::Json::JsonView jsonValue)
PublicRecord & WithDescriptors(DescriptorsT &&value)
void SetDisplayName(DisplayNameT &&value)
AWS_AGENTDISCOVERY_API PublicRecord()=default
AWS_AGENTDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDescription(DescriptionT &&value)
const Aws::String & GetRecordVersion() const
void SetDescriptors(DescriptorsT &&value)
void SetRecordVersion(RecordVersionT &&value)
void SetTrustManifests(TrustManifestsT &&value)
void SetCreatedAt(CreatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::Map< Aws::String, DescriptorEntry > & GetDescriptors() const
PublicRecord & WithCreatedAt(CreatedAtT &&value)
PublicRecord & WithRecordType(RecordType value)
void SetIdentifier(IdentifierT &&value)
PublicRecord & AddTrustManifests(TrustManifestsT &&value)
PublicRecord & WithDomain(DomainT &&value)
PublicRecord & AddDescriptors(DescriptorsKeyT &&key, DescriptorsValueT &&value)
const Aws::String & GetDescription() const
const Aws::Vector< TrustManifest > & GetTrustManifests() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue