AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
CollectionDetail.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
9#include <aws/opensearchserverless/model/CollectionStatus.h>
10#include <aws/opensearchserverless/model/CollectionType.h>
11#include <aws/opensearchserverless/model/DeletionProtection.h>
12#include <aws/opensearchserverless/model/FipsEndpoints.h>
13#include <aws/opensearchserverless/model/StandbyReplicas.h>
14#include <aws/opensearchserverless/model/VectorOptions.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace OpenSearchServerless {
26namespace Model {
27
36 public:
37 AWS_OPENSEARCHSERVERLESS_API CollectionDetail() = default;
38 AWS_OPENSEARCHSERVERLESS_API CollectionDetail(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OPENSEARCHSERVERLESS_API CollectionDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetId() const { return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 template <typename IdT = Aws::String>
49 void SetId(IdT&& value) {
50 m_idHasBeenSet = true;
51 m_id = std::forward<IdT>(value);
52 }
53 template <typename IdT = Aws::String>
54 CollectionDetail& WithId(IdT&& value) {
55 SetId(std::forward<IdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetName() const { return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 template <typename NameT = Aws::String>
67 void SetName(NameT&& value) {
68 m_nameHasBeenSet = true;
69 m_name = std::forward<NameT>(value);
70 }
71 template <typename NameT = Aws::String>
72 CollectionDetail& WithName(NameT&& value) {
73 SetName(std::forward<NameT>(value));
74 return *this;
75 }
77
79
82 inline CollectionStatus GetStatus() const { return m_status; }
83 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
84 inline void SetStatus(CollectionStatus value) {
85 m_statusHasBeenSet = true;
86 m_status = value;
87 }
89 SetStatus(value);
90 return *this;
91 }
93
95
98 inline CollectionType GetType() const { return m_type; }
99 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
100 inline void SetType(CollectionType value) {
101 m_typeHasBeenSet = true;
102 m_type = value;
103 }
105 SetType(value);
106 return *this;
107 }
109
111
114 inline const Aws::String& GetDescription() const { return m_description; }
115 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
116 template <typename DescriptionT = Aws::String>
117 void SetDescription(DescriptionT&& value) {
118 m_descriptionHasBeenSet = true;
119 m_description = std::forward<DescriptionT>(value);
120 }
121 template <typename DescriptionT = Aws::String>
122 CollectionDetail& WithDescription(DescriptionT&& value) {
123 SetDescription(std::forward<DescriptionT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetArn() const { return m_arn; }
133 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
134 template <typename ArnT = Aws::String>
135 void SetArn(ArnT&& value) {
136 m_arnHasBeenSet = true;
137 m_arn = std::forward<ArnT>(value);
138 }
139 template <typename ArnT = Aws::String>
140 CollectionDetail& WithArn(ArnT&& value) {
141 SetArn(std::forward<ArnT>(value));
142 return *this;
143 }
145
147
151 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
152 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
153 template <typename KmsKeyArnT = Aws::String>
154 void SetKmsKeyArn(KmsKeyArnT&& value) {
155 m_kmsKeyArnHasBeenSet = true;
156 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
157 }
158 template <typename KmsKeyArnT = Aws::String>
159 CollectionDetail& WithKmsKeyArn(KmsKeyArnT&& value) {
160 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
161 return *this;
162 }
164
166
169 inline StandbyReplicas GetStandbyReplicas() const { return m_standbyReplicas; }
170 inline bool StandbyReplicasHasBeenSet() const { return m_standbyReplicasHasBeenSet; }
172 m_standbyReplicasHasBeenSet = true;
173 m_standbyReplicas = value;
174 }
176 SetStandbyReplicas(value);
177 return *this;
178 }
180
182
186 inline DeletionProtection GetDeletionProtection() const { return m_deletionProtection; }
187 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
189 m_deletionProtectionHasBeenSet = true;
190 m_deletionProtection = value;
191 }
194 return *this;
195 }
197
199
202 inline const VectorOptions& GetVectorOptions() const { return m_vectorOptions; }
203 inline bool VectorOptionsHasBeenSet() const { return m_vectorOptionsHasBeenSet; }
204 template <typename VectorOptionsT = VectorOptions>
205 void SetVectorOptions(VectorOptionsT&& value) {
206 m_vectorOptionsHasBeenSet = true;
207 m_vectorOptions = std::forward<VectorOptionsT>(value);
208 }
209 template <typename VectorOptionsT = VectorOptions>
210 CollectionDetail& WithVectorOptions(VectorOptionsT&& value) {
211 SetVectorOptions(std::forward<VectorOptionsT>(value));
212 return *this;
213 }
215
217
220 inline long long GetCreatedDate() const { return m_createdDate; }
221 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
222 inline void SetCreatedDate(long long value) {
223 m_createdDateHasBeenSet = true;
224 m_createdDate = value;
225 }
226 inline CollectionDetail& WithCreatedDate(long long value) {
227 SetCreatedDate(value);
228 return *this;
229 }
231
233
236 inline long long GetLastModifiedDate() const { return m_lastModifiedDate; }
237 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
238 inline void SetLastModifiedDate(long long value) {
239 m_lastModifiedDateHasBeenSet = true;
240 m_lastModifiedDate = value;
241 }
242 inline CollectionDetail& WithLastModifiedDate(long long value) {
243 SetLastModifiedDate(value);
244 return *this;
245 }
247
249
253 inline const Aws::String& GetCollectionEndpoint() const { return m_collectionEndpoint; }
254 inline bool CollectionEndpointHasBeenSet() const { return m_collectionEndpointHasBeenSet; }
255 template <typename CollectionEndpointT = Aws::String>
256 void SetCollectionEndpoint(CollectionEndpointT&& value) {
257 m_collectionEndpointHasBeenSet = true;
258 m_collectionEndpoint = std::forward<CollectionEndpointT>(value);
259 }
260 template <typename CollectionEndpointT = Aws::String>
261 CollectionDetail& WithCollectionEndpoint(CollectionEndpointT&& value) {
262 SetCollectionEndpoint(std::forward<CollectionEndpointT>(value));
263 return *this;
264 }
266
268
271 inline const Aws::String& GetDashboardEndpoint() const { return m_dashboardEndpoint; }
272 inline bool DashboardEndpointHasBeenSet() const { return m_dashboardEndpointHasBeenSet; }
273 template <typename DashboardEndpointT = Aws::String>
274 void SetDashboardEndpoint(DashboardEndpointT&& value) {
275 m_dashboardEndpointHasBeenSet = true;
276 m_dashboardEndpoint = std::forward<DashboardEndpointT>(value);
277 }
278 template <typename DashboardEndpointT = Aws::String>
279 CollectionDetail& WithDashboardEndpoint(DashboardEndpointT&& value) {
280 SetDashboardEndpoint(std::forward<DashboardEndpointT>(value));
281 return *this;
282 }
284
286
291 inline const FipsEndpoints& GetFipsEndpoints() const { return m_fipsEndpoints; }
292 inline bool FipsEndpointsHasBeenSet() const { return m_fipsEndpointsHasBeenSet; }
293 template <typename FipsEndpointsT = FipsEndpoints>
294 void SetFipsEndpoints(FipsEndpointsT&& value) {
295 m_fipsEndpointsHasBeenSet = true;
296 m_fipsEndpoints = std::forward<FipsEndpointsT>(value);
297 }
298 template <typename FipsEndpointsT = FipsEndpoints>
299 CollectionDetail& WithFipsEndpoints(FipsEndpointsT&& value) {
300 SetFipsEndpoints(std::forward<FipsEndpointsT>(value));
301 return *this;
302 }
304
306
309 inline const Aws::String& GetFailureCode() const { return m_failureCode; }
310 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
311 template <typename FailureCodeT = Aws::String>
312 void SetFailureCode(FailureCodeT&& value) {
313 m_failureCodeHasBeenSet = true;
314 m_failureCode = std::forward<FailureCodeT>(value);
315 }
316 template <typename FailureCodeT = Aws::String>
317 CollectionDetail& WithFailureCode(FailureCodeT&& value) {
318 SetFailureCode(std::forward<FailureCodeT>(value));
319 return *this;
320 }
322
324
327 inline const Aws::String& GetFailureMessage() const { return m_failureMessage; }
328 inline bool FailureMessageHasBeenSet() const { return m_failureMessageHasBeenSet; }
329 template <typename FailureMessageT = Aws::String>
330 void SetFailureMessage(FailureMessageT&& value) {
331 m_failureMessageHasBeenSet = true;
332 m_failureMessage = std::forward<FailureMessageT>(value);
333 }
334 template <typename FailureMessageT = Aws::String>
335 CollectionDetail& WithFailureMessage(FailureMessageT&& value) {
336 SetFailureMessage(std::forward<FailureMessageT>(value));
337 return *this;
338 }
340
342
345 inline const Aws::String& GetCollectionGroupName() const { return m_collectionGroupName; }
346 inline bool CollectionGroupNameHasBeenSet() const { return m_collectionGroupNameHasBeenSet; }
347 template <typename CollectionGroupNameT = Aws::String>
348 void SetCollectionGroupName(CollectionGroupNameT&& value) {
349 m_collectionGroupNameHasBeenSet = true;
350 m_collectionGroupName = std::forward<CollectionGroupNameT>(value);
351 }
352 template <typename CollectionGroupNameT = Aws::String>
353 CollectionDetail& WithCollectionGroupName(CollectionGroupNameT&& value) {
354 SetCollectionGroupName(std::forward<CollectionGroupNameT>(value));
355 return *this;
356 }
358 private:
359 Aws::String m_id;
360
361 Aws::String m_name;
362
364
366
367 Aws::String m_description;
368
369 Aws::String m_arn;
370
371 Aws::String m_kmsKeyArn;
372
373 StandbyReplicas m_standbyReplicas{StandbyReplicas::NOT_SET};
374
376
377 VectorOptions m_vectorOptions;
378
379 long long m_createdDate{0};
380
381 long long m_lastModifiedDate{0};
382
383 Aws::String m_collectionEndpoint;
384
385 Aws::String m_dashboardEndpoint;
386
387 FipsEndpoints m_fipsEndpoints;
388
389 Aws::String m_failureCode;
390
391 Aws::String m_failureMessage;
392
393 Aws::String m_collectionGroupName;
394 bool m_idHasBeenSet = false;
395 bool m_nameHasBeenSet = false;
396 bool m_statusHasBeenSet = false;
397 bool m_typeHasBeenSet = false;
398 bool m_descriptionHasBeenSet = false;
399 bool m_arnHasBeenSet = false;
400 bool m_kmsKeyArnHasBeenSet = false;
401 bool m_standbyReplicasHasBeenSet = false;
402 bool m_deletionProtectionHasBeenSet = false;
403 bool m_vectorOptionsHasBeenSet = false;
404 bool m_createdDateHasBeenSet = false;
405 bool m_lastModifiedDateHasBeenSet = false;
406 bool m_collectionEndpointHasBeenSet = false;
407 bool m_dashboardEndpointHasBeenSet = false;
408 bool m_fipsEndpointsHasBeenSet = false;
409 bool m_failureCodeHasBeenSet = false;
410 bool m_failureMessageHasBeenSet = false;
411 bool m_collectionGroupNameHasBeenSet = false;
412};
413
414} // namespace Model
415} // namespace OpenSearchServerless
416} // namespace Aws
CollectionDetail & WithDashboardEndpoint(DashboardEndpointT &&value)
AWS_OPENSEARCHSERVERLESS_API CollectionDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
CollectionDetail & WithDescription(DescriptionT &&value)
CollectionDetail & WithCollectionGroupName(CollectionGroupNameT &&value)
void SetDashboardEndpoint(DashboardEndpointT &&value)
CollectionDetail & WithDeletionProtection(DeletionProtection value)
CollectionDetail & WithCreatedDate(long long value)
CollectionDetail & WithStatus(CollectionStatus value)
CollectionDetail & WithFipsEndpoints(FipsEndpointsT &&value)
AWS_OPENSEARCHSERVERLESS_API CollectionDetail(Aws::Utils::Json::JsonView jsonValue)
CollectionDetail & WithLastModifiedDate(long long value)
void SetCollectionEndpoint(CollectionEndpointT &&value)
CollectionDetail & WithFailureCode(FailureCodeT &&value)
CollectionDetail & WithKmsKeyArn(KmsKeyArnT &&value)
CollectionDetail & WithCollectionEndpoint(CollectionEndpointT &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
CollectionDetail & WithVectorOptions(VectorOptionsT &&value)
CollectionDetail & WithStandbyReplicas(StandbyReplicas value)
AWS_OPENSEARCHSERVERLESS_API CollectionDetail()=default
CollectionDetail & WithFailureMessage(FailureMessageT &&value)
void SetCollectionGroupName(CollectionGroupNameT &&value)
CollectionDetail & WithType(CollectionType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue