AWS SDK for C++

AWS SDK for C++ Version 1.11.918

Loading...
Searching...
No Matches
UpdateCollectionDetail.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/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 UpdateCollectionDetail() = default;
35 AWS_OPENSEARCHSERVERLESS_API UpdateCollectionDetail(Aws::Utils::Json::JsonView jsonValue);
36 AWS_OPENSEARCHSERVERLESS_API UpdateCollectionDetail& 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 VectorOptions& GetVectorOptions() const { return m_vectorOptions; }
130 inline bool VectorOptionsHasBeenSet() const { return m_vectorOptionsHasBeenSet; }
131 template <typename VectorOptionsT = VectorOptions>
132 void SetVectorOptions(VectorOptionsT&& value) {
133 m_vectorOptionsHasBeenSet = true;
134 m_vectorOptions = std::forward<VectorOptionsT>(value);
135 }
136 template <typename VectorOptionsT = VectorOptions>
137 UpdateCollectionDetail& WithVectorOptions(VectorOptionsT&& value) {
138 SetVectorOptions(std::forward<VectorOptionsT>(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 const Aws::String& GetArn() const { return m_arn; }
167 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
168 template <typename ArnT = Aws::String>
169 void SetArn(ArnT&& value) {
170 m_arnHasBeenSet = true;
171 m_arn = std::forward<ArnT>(value);
172 }
173 template <typename ArnT = Aws::String>
175 SetArn(std::forward<ArnT>(value));
176 return *this;
177 }
179
181
184 inline long long GetCreatedDate() const { return m_createdDate; }
185 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
186 inline void SetCreatedDate(long long value) {
187 m_createdDateHasBeenSet = true;
188 m_createdDate = value;
189 }
190 inline UpdateCollectionDetail& WithCreatedDate(long long value) {
191 SetCreatedDate(value);
192 return *this;
193 }
195
197
200 inline long long GetLastModifiedDate() const { return m_lastModifiedDate; }
201 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
202 inline void SetLastModifiedDate(long long value) {
203 m_lastModifiedDateHasBeenSet = true;
204 m_lastModifiedDate = value;
205 }
207 SetLastModifiedDate(value);
208 return *this;
209 }
211
213
217 inline DeletionProtection GetDeletionProtection() const { return m_deletionProtection; }
218 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
220 m_deletionProtectionHasBeenSet = true;
221 m_deletionProtection = value;
222 }
225 return *this;
226 }
228 private:
229 Aws::String m_id;
230
231 Aws::String m_name;
232
234
236
237 Aws::String m_description;
238
239 VectorOptions m_vectorOptions;
240
241 Aws::String m_kmsKeyArn;
242
243 Aws::String m_arn;
244
245 long long m_createdDate{0};
246
247 long long m_lastModifiedDate{0};
248
250 bool m_idHasBeenSet = false;
251 bool m_nameHasBeenSet = false;
252 bool m_statusHasBeenSet = false;
253 bool m_typeHasBeenSet = false;
254 bool m_descriptionHasBeenSet = false;
255 bool m_vectorOptionsHasBeenSet = false;
256 bool m_kmsKeyArnHasBeenSet = false;
257 bool m_arnHasBeenSet = false;
258 bool m_createdDateHasBeenSet = false;
259 bool m_lastModifiedDateHasBeenSet = false;
260 bool m_deletionProtectionHasBeenSet = false;
261};
262
263} // namespace Model
264} // namespace OpenSearchServerless
265} // namespace Aws
UpdateCollectionDetail & WithDeletionProtection(DeletionProtection value)
AWS_OPENSEARCHSERVERLESS_API UpdateCollectionDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
UpdateCollectionDetail & WithKmsKeyArn(KmsKeyArnT &&value)
AWS_OPENSEARCHSERVERLESS_API UpdateCollectionDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
UpdateCollectionDetail & WithLastModifiedDate(long long value)
UpdateCollectionDetail & WithType(CollectionType value)
AWS_OPENSEARCHSERVERLESS_API UpdateCollectionDetail()=default
UpdateCollectionDetail & WithStatus(CollectionStatus value)
UpdateCollectionDetail & WithCreatedDate(long long value)
UpdateCollectionDetail & WithDescription(DescriptionT &&value)
UpdateCollectionDetail & WithVectorOptions(VectorOptionsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue