AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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/StandbyReplicas.h>
12#include <aws/opensearchserverless/model/VectorOptions.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace OpenSearchServerless {
24namespace Model {
25
33 public:
34 AWS_OPENSEARCHSERVERLESS_API CreateCollectionDetail() = default;
35 AWS_OPENSEARCHSERVERLESS_API CreateCollectionDetail(Aws::Utils::Json::JsonView jsonValue);
36 AWS_OPENSEARCHSERVERLESS_API CreateCollectionDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 template <typename IdT = Aws::String>
46 void SetId(IdT&& value) {
47 m_idHasBeenSet = true;
48 m_id = std::forward<IdT>(value);
49 }
50 template <typename IdT = Aws::String>
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
79 inline CollectionStatus GetStatus() const { return m_status; }
80 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
81 inline void SetStatus(CollectionStatus value) {
82 m_statusHasBeenSet = true;
83 m_status = value;
84 }
86 SetStatus(value);
87 return *this;
88 }
90
92
95 inline CollectionType GetType() const { return m_type; }
96 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
97 inline void SetType(CollectionType value) {
98 m_typeHasBeenSet = true;
99 m_type = value;
100 }
102 SetType(value);
103 return *this;
104 }
106
108
111 inline const Aws::String& GetDescription() const { return m_description; }
112 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
113 template <typename DescriptionT = Aws::String>
114 void SetDescription(DescriptionT&& value) {
115 m_descriptionHasBeenSet = true;
116 m_description = std::forward<DescriptionT>(value);
117 }
118 template <typename DescriptionT = Aws::String>
120 SetDescription(std::forward<DescriptionT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetArn() const { return m_arn; }
130 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
131 template <typename ArnT = Aws::String>
132 void SetArn(ArnT&& value) {
133 m_arnHasBeenSet = true;
134 m_arn = std::forward<ArnT>(value);
135 }
136 template <typename ArnT = Aws::String>
138 SetArn(std::forward<ArnT>(value));
139 return *this;
140 }
142
144
148 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
149 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
150 template <typename KmsKeyArnT = Aws::String>
151 void SetKmsKeyArn(KmsKeyArnT&& value) {
152 m_kmsKeyArnHasBeenSet = true;
153 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
154 }
155 template <typename KmsKeyArnT = Aws::String>
157 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
158 return *this;
159 }
161
163
166 inline StandbyReplicas GetStandbyReplicas() const { return m_standbyReplicas; }
167 inline bool StandbyReplicasHasBeenSet() const { return m_standbyReplicasHasBeenSet; }
169 m_standbyReplicasHasBeenSet = true;
170 m_standbyReplicas = value;
171 }
173 SetStandbyReplicas(value);
174 return *this;
175 }
177
179
182 inline const VectorOptions& GetVectorOptions() const { return m_vectorOptions; }
183 inline bool VectorOptionsHasBeenSet() const { return m_vectorOptionsHasBeenSet; }
184 template <typename VectorOptionsT = VectorOptions>
185 void SetVectorOptions(VectorOptionsT&& value) {
186 m_vectorOptionsHasBeenSet = true;
187 m_vectorOptions = std::forward<VectorOptionsT>(value);
188 }
189 template <typename VectorOptionsT = VectorOptions>
190 CreateCollectionDetail& WithVectorOptions(VectorOptionsT&& value) {
191 SetVectorOptions(std::forward<VectorOptionsT>(value));
192 return *this;
193 }
195
197
200 inline long long GetCreatedDate() const { return m_createdDate; }
201 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
202 inline void SetCreatedDate(long long value) {
203 m_createdDateHasBeenSet = true;
204 m_createdDate = value;
205 }
206 inline CreateCollectionDetail& WithCreatedDate(long long value) {
207 SetCreatedDate(value);
208 return *this;
209 }
211
213
216 inline long long GetLastModifiedDate() const { return m_lastModifiedDate; }
217 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
218 inline void SetLastModifiedDate(long long value) {
219 m_lastModifiedDateHasBeenSet = true;
220 m_lastModifiedDate = value;
221 }
223 SetLastModifiedDate(value);
224 return *this;
225 }
227 private:
228 Aws::String m_id;
229
230 Aws::String m_name;
231
233
235
236 Aws::String m_description;
237
238 Aws::String m_arn;
239
240 Aws::String m_kmsKeyArn;
241
242 StandbyReplicas m_standbyReplicas{StandbyReplicas::NOT_SET};
243
244 VectorOptions m_vectorOptions;
245
246 long long m_createdDate{0};
247
248 long long m_lastModifiedDate{0};
249 bool m_idHasBeenSet = false;
250 bool m_nameHasBeenSet = false;
251 bool m_statusHasBeenSet = false;
252 bool m_typeHasBeenSet = false;
253 bool m_descriptionHasBeenSet = false;
254 bool m_arnHasBeenSet = false;
255 bool m_kmsKeyArnHasBeenSet = false;
256 bool m_standbyReplicasHasBeenSet = false;
257 bool m_vectorOptionsHasBeenSet = false;
258 bool m_createdDateHasBeenSet = false;
259 bool m_lastModifiedDateHasBeenSet = false;
260};
261
262} // namespace Model
263} // namespace OpenSearchServerless
264} // namespace Aws
CreateCollectionDetail & WithVectorOptions(VectorOptionsT &&value)
CreateCollectionDetail & WithKmsKeyArn(KmsKeyArnT &&value)
CreateCollectionDetail & WithLastModifiedDate(long long 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 & WithStatus(CollectionStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue