AWS SDK for C++

AWS SDK for C++ Version 1.11.787

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/VectorOptions.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace OpenSearchServerless {
23namespace Model {
24
32 public:
33 AWS_OPENSEARCHSERVERLESS_API UpdateCollectionDetail() = default;
34 AWS_OPENSEARCHSERVERLESS_API UpdateCollectionDetail(Aws::Utils::Json::JsonView jsonValue);
35 AWS_OPENSEARCHSERVERLESS_API UpdateCollectionDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetId() const { return m_id; }
43 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
44 template <typename IdT = Aws::String>
45 void SetId(IdT&& value) {
46 m_idHasBeenSet = true;
47 m_id = std::forward<IdT>(value);
48 }
49 template <typename IdT = Aws::String>
51 SetId(std::forward<IdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
78 inline CollectionStatus GetStatus() const { return m_status; }
79 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
80 inline void SetStatus(CollectionStatus value) {
81 m_statusHasBeenSet = true;
82 m_status = value;
83 }
85 SetStatus(value);
86 return *this;
87 }
89
91
94 inline CollectionType GetType() const { return m_type; }
95 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
96 inline void SetType(CollectionType value) {
97 m_typeHasBeenSet = true;
98 m_type = value;
99 }
101 SetType(value);
102 return *this;
103 }
105
107
110 inline const Aws::String& GetDescription() const { return m_description; }
111 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
112 template <typename DescriptionT = Aws::String>
113 void SetDescription(DescriptionT&& value) {
114 m_descriptionHasBeenSet = true;
115 m_description = std::forward<DescriptionT>(value);
116 }
117 template <typename DescriptionT = Aws::String>
119 SetDescription(std::forward<DescriptionT>(value));
120 return *this;
121 }
123
125
128 inline const VectorOptions& GetVectorOptions() const { return m_vectorOptions; }
129 inline bool VectorOptionsHasBeenSet() const { return m_vectorOptionsHasBeenSet; }
130 template <typename VectorOptionsT = VectorOptions>
131 void SetVectorOptions(VectorOptionsT&& value) {
132 m_vectorOptionsHasBeenSet = true;
133 m_vectorOptions = std::forward<VectorOptionsT>(value);
134 }
135 template <typename VectorOptionsT = VectorOptions>
136 UpdateCollectionDetail& WithVectorOptions(VectorOptionsT&& value) {
137 SetVectorOptions(std::forward<VectorOptionsT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::String& GetArn() const { return m_arn; }
147 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
148 template <typename ArnT = Aws::String>
149 void SetArn(ArnT&& value) {
150 m_arnHasBeenSet = true;
151 m_arn = std::forward<ArnT>(value);
152 }
153 template <typename ArnT = Aws::String>
155 SetArn(std::forward<ArnT>(value));
156 return *this;
157 }
159
161
164 inline long long GetCreatedDate() const { return m_createdDate; }
165 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
166 inline void SetCreatedDate(long long value) {
167 m_createdDateHasBeenSet = true;
168 m_createdDate = value;
169 }
170 inline UpdateCollectionDetail& WithCreatedDate(long long value) {
171 SetCreatedDate(value);
172 return *this;
173 }
175
177
180 inline long long GetLastModifiedDate() const { return m_lastModifiedDate; }
181 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
182 inline void SetLastModifiedDate(long long value) {
183 m_lastModifiedDateHasBeenSet = true;
184 m_lastModifiedDate = value;
185 }
187 SetLastModifiedDate(value);
188 return *this;
189 }
191 private:
192 Aws::String m_id;
193
194 Aws::String m_name;
195
197
199
200 Aws::String m_description;
201
202 VectorOptions m_vectorOptions;
203
204 Aws::String m_arn;
205
206 long long m_createdDate{0};
207
208 long long m_lastModifiedDate{0};
209 bool m_idHasBeenSet = false;
210 bool m_nameHasBeenSet = false;
211 bool m_statusHasBeenSet = false;
212 bool m_typeHasBeenSet = false;
213 bool m_descriptionHasBeenSet = false;
214 bool m_vectorOptionsHasBeenSet = false;
215 bool m_arnHasBeenSet = false;
216 bool m_createdDateHasBeenSet = false;
217 bool m_lastModifiedDateHasBeenSet = false;
218};
219
220} // namespace Model
221} // namespace OpenSearchServerless
222} // namespace Aws
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