AWS SDK for C++

AWS SDK for C++ Version 1.11.817

Loading...
Searching...
No Matches
CreateCollectionDetail.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/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
34 public:
35 AWS_OPENSEARCHSERVERLESS_API CreateCollectionDetail() = default;
36 AWS_OPENSEARCHSERVERLESS_API CreateCollectionDetail(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OPENSEARCHSERVERLESS_API CreateCollectionDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetId() const { return m_id; }
45 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
46 template <typename IdT = Aws::String>
47 void SetId(IdT&& value) {
48 m_idHasBeenSet = true;
49 m_id = std::forward<IdT>(value);
50 }
51 template <typename IdT = Aws::String>
53 SetId(std::forward<IdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template <typename NameT = Aws::String>
65 void SetName(NameT&& value) {
66 m_nameHasBeenSet = true;
67 m_name = std::forward<NameT>(value);
68 }
69 template <typename NameT = Aws::String>
71 SetName(std::forward<NameT>(value));
72 return *this;
73 }
75
77
80 inline CollectionStatus GetStatus() const { return m_status; }
81 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
82 inline void SetStatus(CollectionStatus value) {
83 m_statusHasBeenSet = true;
84 m_status = value;
85 }
87 SetStatus(value);
88 return *this;
89 }
91
93
96 inline CollectionType GetType() const { return m_type; }
97 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
98 inline void SetType(CollectionType value) {
99 m_typeHasBeenSet = true;
100 m_type = value;
101 }
103 SetType(value);
104 return *this;
105 }
107
109
112 inline const Aws::String& GetDescription() const { return m_description; }
113 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
114 template <typename DescriptionT = Aws::String>
115 void SetDescription(DescriptionT&& value) {
116 m_descriptionHasBeenSet = true;
117 m_description = std::forward<DescriptionT>(value);
118 }
119 template <typename DescriptionT = Aws::String>
121 SetDescription(std::forward<DescriptionT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetArn() const { return m_arn; }
131 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
132 template <typename ArnT = Aws::String>
133 void SetArn(ArnT&& value) {
134 m_arnHasBeenSet = true;
135 m_arn = std::forward<ArnT>(value);
136 }
137 template <typename ArnT = Aws::String>
139 SetArn(std::forward<ArnT>(value));
140 return *this;
141 }
143
145
149 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
150 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
151 template <typename KmsKeyArnT = Aws::String>
152 void SetKmsKeyArn(KmsKeyArnT&& value) {
153 m_kmsKeyArnHasBeenSet = true;
154 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
155 }
156 template <typename KmsKeyArnT = Aws::String>
158 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
159 return *this;
160 }
162
164
167 inline StandbyReplicas GetStandbyReplicas() const { return m_standbyReplicas; }
168 inline bool StandbyReplicasHasBeenSet() const { return m_standbyReplicasHasBeenSet; }
170 m_standbyReplicasHasBeenSet = true;
171 m_standbyReplicas = value;
172 }
174 SetStandbyReplicas(value);
175 return *this;
176 }
178
180
184 inline DeletionProtection GetDeletionProtection() const { return m_deletionProtection; }
185 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
187 m_deletionProtectionHasBeenSet = true;
188 m_deletionProtection = value;
189 }
192 return *this;
193 }
195
197
200 inline const VectorOptions& GetVectorOptions() const { return m_vectorOptions; }
201 inline bool VectorOptionsHasBeenSet() const { return m_vectorOptionsHasBeenSet; }
202 template <typename VectorOptionsT = VectorOptions>
203 void SetVectorOptions(VectorOptionsT&& value) {
204 m_vectorOptionsHasBeenSet = true;
205 m_vectorOptions = std::forward<VectorOptionsT>(value);
206 }
207 template <typename VectorOptionsT = VectorOptions>
208 CreateCollectionDetail& WithVectorOptions(VectorOptionsT&& value) {
209 SetVectorOptions(std::forward<VectorOptionsT>(value));
210 return *this;
211 }
213
215
218 inline long long GetCreatedDate() const { return m_createdDate; }
219 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
220 inline void SetCreatedDate(long long value) {
221 m_createdDateHasBeenSet = true;
222 m_createdDate = value;
223 }
224 inline CreateCollectionDetail& WithCreatedDate(long long value) {
225 SetCreatedDate(value);
226 return *this;
227 }
229
231
234 inline long long GetLastModifiedDate() const { return m_lastModifiedDate; }
235 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
236 inline void SetLastModifiedDate(long long value) {
237 m_lastModifiedDateHasBeenSet = true;
238 m_lastModifiedDate = value;
239 }
241 SetLastModifiedDate(value);
242 return *this;
243 }
245
247
250 inline const Aws::String& GetCollectionGroupName() const { return m_collectionGroupName; }
251 inline bool CollectionGroupNameHasBeenSet() const { return m_collectionGroupNameHasBeenSet; }
252 template <typename CollectionGroupNameT = Aws::String>
253 void SetCollectionGroupName(CollectionGroupNameT&& value) {
254 m_collectionGroupNameHasBeenSet = true;
255 m_collectionGroupName = std::forward<CollectionGroupNameT>(value);
256 }
257 template <typename CollectionGroupNameT = Aws::String>
258 CreateCollectionDetail& WithCollectionGroupName(CollectionGroupNameT&& value) {
259 SetCollectionGroupName(std::forward<CollectionGroupNameT>(value));
260 return *this;
261 }
263 private:
264 Aws::String m_id;
265
266 Aws::String m_name;
267
269
271
272 Aws::String m_description;
273
274 Aws::String m_arn;
275
276 Aws::String m_kmsKeyArn;
277
278 StandbyReplicas m_standbyReplicas{StandbyReplicas::NOT_SET};
279
281
282 VectorOptions m_vectorOptions;
283
284 long long m_createdDate{0};
285
286 long long m_lastModifiedDate{0};
287
288 Aws::String m_collectionGroupName;
289 bool m_idHasBeenSet = false;
290 bool m_nameHasBeenSet = false;
291 bool m_statusHasBeenSet = false;
292 bool m_typeHasBeenSet = false;
293 bool m_descriptionHasBeenSet = false;
294 bool m_arnHasBeenSet = false;
295 bool m_kmsKeyArnHasBeenSet = false;
296 bool m_standbyReplicasHasBeenSet = false;
297 bool m_deletionProtectionHasBeenSet = false;
298 bool m_vectorOptionsHasBeenSet = false;
299 bool m_createdDateHasBeenSet = false;
300 bool m_lastModifiedDateHasBeenSet = false;
301 bool m_collectionGroupNameHasBeenSet = false;
302};
303
304} // namespace Model
305} // namespace OpenSearchServerless
306} // namespace Aws
CreateCollectionDetail & WithVectorOptions(VectorOptionsT &&value)
CreateCollectionDetail & WithKmsKeyArn(KmsKeyArnT &&value)
CreateCollectionDetail & WithLastModifiedDate(long long value)
CreateCollectionDetail & WithDeletionProtection(DeletionProtection value)
AWS_OPENSEARCHSERVERLESS_API CreateCollectionDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
CreateCollectionDetail & WithDescription(DescriptionT &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
CreateCollectionDetail & WithStandbyReplicas(StandbyReplicas value)
CreateCollectionDetail & WithCreatedDate(long long value)
AWS_OPENSEARCHSERVERLESS_API CreateCollectionDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVERLESS_API CreateCollectionDetail()=default
CreateCollectionDetail & WithType(CollectionType value)
CreateCollectionDetail & WithCollectionGroupName(CollectionGroupNameT &&value)
CreateCollectionDetail & WithStatus(CollectionStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue