AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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/FipsEndpoints.h>
12#include <aws/opensearchserverless/model/StandbyReplicas.h>
13#include <aws/opensearchserverless/model/VectorOptions.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace OpenSearchServerless {
25namespace Model {
26
35 public:
36 AWS_OPENSEARCHSERVERLESS_API CollectionDetail() = default;
37 AWS_OPENSEARCHSERVERLESS_API CollectionDetail(Aws::Utils::Json::JsonView jsonValue);
38 AWS_OPENSEARCHSERVERLESS_API CollectionDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetId() const { return m_id; }
46 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
47 template <typename IdT = Aws::String>
48 void SetId(IdT&& value) {
49 m_idHasBeenSet = true;
50 m_id = std::forward<IdT>(value);
51 }
52 template <typename IdT = Aws::String>
53 CollectionDetail& WithId(IdT&& value) {
54 SetId(std::forward<IdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetName() const { return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 template <typename NameT = Aws::String>
66 void SetName(NameT&& value) {
67 m_nameHasBeenSet = true;
68 m_name = std::forward<NameT>(value);
69 }
70 template <typename NameT = Aws::String>
71 CollectionDetail& WithName(NameT&& value) {
72 SetName(std::forward<NameT>(value));
73 return *this;
74 }
76
78
81 inline CollectionStatus GetStatus() const { return m_status; }
82 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
83 inline void SetStatus(CollectionStatus value) {
84 m_statusHasBeenSet = true;
85 m_status = value;
86 }
88 SetStatus(value);
89 return *this;
90 }
92
94
97 inline CollectionType GetType() const { return m_type; }
98 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
99 inline void SetType(CollectionType value) {
100 m_typeHasBeenSet = true;
101 m_type = value;
102 }
104 SetType(value);
105 return *this;
106 }
108
110
113 inline const Aws::String& GetDescription() const { return m_description; }
114 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
115 template <typename DescriptionT = Aws::String>
116 void SetDescription(DescriptionT&& value) {
117 m_descriptionHasBeenSet = true;
118 m_description = std::forward<DescriptionT>(value);
119 }
120 template <typename DescriptionT = Aws::String>
121 CollectionDetail& WithDescription(DescriptionT&& value) {
122 SetDescription(std::forward<DescriptionT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetArn() const { return m_arn; }
132 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
133 template <typename ArnT = Aws::String>
134 void SetArn(ArnT&& value) {
135 m_arnHasBeenSet = true;
136 m_arn = std::forward<ArnT>(value);
137 }
138 template <typename ArnT = Aws::String>
139 CollectionDetail& WithArn(ArnT&& value) {
140 SetArn(std::forward<ArnT>(value));
141 return *this;
142 }
144
146
150 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
151 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
152 template <typename KmsKeyArnT = Aws::String>
153 void SetKmsKeyArn(KmsKeyArnT&& value) {
154 m_kmsKeyArnHasBeenSet = true;
155 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
156 }
157 template <typename KmsKeyArnT = Aws::String>
158 CollectionDetail& WithKmsKeyArn(KmsKeyArnT&& value) {
159 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
160 return *this;
161 }
163
165
168 inline StandbyReplicas GetStandbyReplicas() const { return m_standbyReplicas; }
169 inline bool StandbyReplicasHasBeenSet() const { return m_standbyReplicasHasBeenSet; }
171 m_standbyReplicasHasBeenSet = true;
172 m_standbyReplicas = value;
173 }
175 SetStandbyReplicas(value);
176 return *this;
177 }
179
181
184 inline const VectorOptions& GetVectorOptions() const { return m_vectorOptions; }
185 inline bool VectorOptionsHasBeenSet() const { return m_vectorOptionsHasBeenSet; }
186 template <typename VectorOptionsT = VectorOptions>
187 void SetVectorOptions(VectorOptionsT&& value) {
188 m_vectorOptionsHasBeenSet = true;
189 m_vectorOptions = std::forward<VectorOptionsT>(value);
190 }
191 template <typename VectorOptionsT = VectorOptions>
192 CollectionDetail& WithVectorOptions(VectorOptionsT&& value) {
193 SetVectorOptions(std::forward<VectorOptionsT>(value));
194 return *this;
195 }
197
199
202 inline long long GetCreatedDate() const { return m_createdDate; }
203 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
204 inline void SetCreatedDate(long long value) {
205 m_createdDateHasBeenSet = true;
206 m_createdDate = value;
207 }
208 inline CollectionDetail& WithCreatedDate(long long value) {
209 SetCreatedDate(value);
210 return *this;
211 }
213
215
218 inline long long GetLastModifiedDate() const { return m_lastModifiedDate; }
219 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
220 inline void SetLastModifiedDate(long long value) {
221 m_lastModifiedDateHasBeenSet = true;
222 m_lastModifiedDate = value;
223 }
224 inline CollectionDetail& WithLastModifiedDate(long long value) {
225 SetLastModifiedDate(value);
226 return *this;
227 }
229
231
235 inline const Aws::String& GetCollectionEndpoint() const { return m_collectionEndpoint; }
236 inline bool CollectionEndpointHasBeenSet() const { return m_collectionEndpointHasBeenSet; }
237 template <typename CollectionEndpointT = Aws::String>
238 void SetCollectionEndpoint(CollectionEndpointT&& value) {
239 m_collectionEndpointHasBeenSet = true;
240 m_collectionEndpoint = std::forward<CollectionEndpointT>(value);
241 }
242 template <typename CollectionEndpointT = Aws::String>
243 CollectionDetail& WithCollectionEndpoint(CollectionEndpointT&& value) {
244 SetCollectionEndpoint(std::forward<CollectionEndpointT>(value));
245 return *this;
246 }
248
250
253 inline const Aws::String& GetDashboardEndpoint() const { return m_dashboardEndpoint; }
254 inline bool DashboardEndpointHasBeenSet() const { return m_dashboardEndpointHasBeenSet; }
255 template <typename DashboardEndpointT = Aws::String>
256 void SetDashboardEndpoint(DashboardEndpointT&& value) {
257 m_dashboardEndpointHasBeenSet = true;
258 m_dashboardEndpoint = std::forward<DashboardEndpointT>(value);
259 }
260 template <typename DashboardEndpointT = Aws::String>
261 CollectionDetail& WithDashboardEndpoint(DashboardEndpointT&& value) {
262 SetDashboardEndpoint(std::forward<DashboardEndpointT>(value));
263 return *this;
264 }
266
268
273 inline const FipsEndpoints& GetFipsEndpoints() const { return m_fipsEndpoints; }
274 inline bool FipsEndpointsHasBeenSet() const { return m_fipsEndpointsHasBeenSet; }
275 template <typename FipsEndpointsT = FipsEndpoints>
276 void SetFipsEndpoints(FipsEndpointsT&& value) {
277 m_fipsEndpointsHasBeenSet = true;
278 m_fipsEndpoints = std::forward<FipsEndpointsT>(value);
279 }
280 template <typename FipsEndpointsT = FipsEndpoints>
281 CollectionDetail& WithFipsEndpoints(FipsEndpointsT&& value) {
282 SetFipsEndpoints(std::forward<FipsEndpointsT>(value));
283 return *this;
284 }
286
288
291 inline const Aws::String& GetFailureCode() const { return m_failureCode; }
292 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
293 template <typename FailureCodeT = Aws::String>
294 void SetFailureCode(FailureCodeT&& value) {
295 m_failureCodeHasBeenSet = true;
296 m_failureCode = std::forward<FailureCodeT>(value);
297 }
298 template <typename FailureCodeT = Aws::String>
299 CollectionDetail& WithFailureCode(FailureCodeT&& value) {
300 SetFailureCode(std::forward<FailureCodeT>(value));
301 return *this;
302 }
304
306
309 inline const Aws::String& GetFailureMessage() const { return m_failureMessage; }
310 inline bool FailureMessageHasBeenSet() const { return m_failureMessageHasBeenSet; }
311 template <typename FailureMessageT = Aws::String>
312 void SetFailureMessage(FailureMessageT&& value) {
313 m_failureMessageHasBeenSet = true;
314 m_failureMessage = std::forward<FailureMessageT>(value);
315 }
316 template <typename FailureMessageT = Aws::String>
317 CollectionDetail& WithFailureMessage(FailureMessageT&& value) {
318 SetFailureMessage(std::forward<FailureMessageT>(value));
319 return *this;
320 }
322 private:
323 Aws::String m_id;
324
325 Aws::String m_name;
326
328
330
331 Aws::String m_description;
332
333 Aws::String m_arn;
334
335 Aws::String m_kmsKeyArn;
336
337 StandbyReplicas m_standbyReplicas{StandbyReplicas::NOT_SET};
338
339 VectorOptions m_vectorOptions;
340
341 long long m_createdDate{0};
342
343 long long m_lastModifiedDate{0};
344
345 Aws::String m_collectionEndpoint;
346
347 Aws::String m_dashboardEndpoint;
348
349 FipsEndpoints m_fipsEndpoints;
350
351 Aws::String m_failureCode;
352
353 Aws::String m_failureMessage;
354 bool m_idHasBeenSet = false;
355 bool m_nameHasBeenSet = false;
356 bool m_statusHasBeenSet = false;
357 bool m_typeHasBeenSet = false;
358 bool m_descriptionHasBeenSet = false;
359 bool m_arnHasBeenSet = false;
360 bool m_kmsKeyArnHasBeenSet = false;
361 bool m_standbyReplicasHasBeenSet = false;
362 bool m_vectorOptionsHasBeenSet = false;
363 bool m_createdDateHasBeenSet = false;
364 bool m_lastModifiedDateHasBeenSet = false;
365 bool m_collectionEndpointHasBeenSet = false;
366 bool m_dashboardEndpointHasBeenSet = false;
367 bool m_fipsEndpointsHasBeenSet = false;
368 bool m_failureCodeHasBeenSet = false;
369 bool m_failureMessageHasBeenSet = false;
370};
371
372} // namespace Model
373} // namespace OpenSearchServerless
374} // namespace Aws
CollectionDetail & WithDashboardEndpoint(DashboardEndpointT &&value)
AWS_OPENSEARCHSERVERLESS_API CollectionDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
CollectionDetail & WithDescription(DescriptionT &&value)
void SetDashboardEndpoint(DashboardEndpointT &&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)
CollectionDetail & WithType(CollectionType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue