AWS SDK for C++

AWS SDK for C++ Version 1.11.816

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
147 inline const Aws::String& GetArn() const { return m_arn; }
148 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
149 template <typename ArnT = Aws::String>
150 void SetArn(ArnT&& value) {
151 m_arnHasBeenSet = true;
152 m_arn = std::forward<ArnT>(value);
153 }
154 template <typename ArnT = Aws::String>
156 SetArn(std::forward<ArnT>(value));
157 return *this;
158 }
160
162
165 inline long long GetCreatedDate() const { return m_createdDate; }
166 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
167 inline void SetCreatedDate(long long value) {
168 m_createdDateHasBeenSet = true;
169 m_createdDate = value;
170 }
171 inline UpdateCollectionDetail& WithCreatedDate(long long value) {
172 SetCreatedDate(value);
173 return *this;
174 }
176
178
181 inline long long GetLastModifiedDate() const { return m_lastModifiedDate; }
182 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
183 inline void SetLastModifiedDate(long long value) {
184 m_lastModifiedDateHasBeenSet = true;
185 m_lastModifiedDate = value;
186 }
188 SetLastModifiedDate(value);
189 return *this;
190 }
192
194
198 inline DeletionProtection GetDeletionProtection() const { return m_deletionProtection; }
199 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
201 m_deletionProtectionHasBeenSet = true;
202 m_deletionProtection = value;
203 }
206 return *this;
207 }
209 private:
210 Aws::String m_id;
211
212 Aws::String m_name;
213
215
217
218 Aws::String m_description;
219
220 VectorOptions m_vectorOptions;
221
222 Aws::String m_arn;
223
224 long long m_createdDate{0};
225
226 long long m_lastModifiedDate{0};
227
229 bool m_idHasBeenSet = false;
230 bool m_nameHasBeenSet = false;
231 bool m_statusHasBeenSet = false;
232 bool m_typeHasBeenSet = false;
233 bool m_descriptionHasBeenSet = false;
234 bool m_vectorOptionsHasBeenSet = false;
235 bool m_arnHasBeenSet = false;
236 bool m_createdDateHasBeenSet = false;
237 bool m_lastModifiedDateHasBeenSet = false;
238 bool m_deletionProtectionHasBeenSet = false;
239};
240
241} // namespace Model
242} // namespace OpenSearchServerless
243} // namespace Aws
UpdateCollectionDetail & WithDeletionProtection(DeletionProtection value)
AWS_OPENSEARCHSERVERLESS_API UpdateCollectionDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
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