AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CollectionDetail.h
1
6#pragma once
7#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opensearchserverless/model/StandbyReplicas.h>
10#include <aws/opensearchserverless/model/CollectionStatus.h>
11#include <aws/opensearchserverless/model/CollectionType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace OpenSearchServerless
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_OPENSEARCHSERVERLESS_API CollectionDetail();
39 AWS_OPENSEARCHSERVERLESS_API CollectionDetail(Aws::Utils::Json::JsonView jsonValue);
40 AWS_OPENSEARCHSERVERLESS_API CollectionDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetArn() const{ return m_arn; }
49 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
50 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
51 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
52 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
53 inline CollectionDetail& WithArn(const Aws::String& value) { SetArn(value); return *this;}
54 inline CollectionDetail& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
55 inline CollectionDetail& WithArn(const char* value) { SetArn(value); return *this;}
57
59
63 inline const Aws::String& GetCollectionEndpoint() const{ return m_collectionEndpoint; }
64 inline bool CollectionEndpointHasBeenSet() const { return m_collectionEndpointHasBeenSet; }
65 inline void SetCollectionEndpoint(const Aws::String& value) { m_collectionEndpointHasBeenSet = true; m_collectionEndpoint = value; }
66 inline void SetCollectionEndpoint(Aws::String&& value) { m_collectionEndpointHasBeenSet = true; m_collectionEndpoint = std::move(value); }
67 inline void SetCollectionEndpoint(const char* value) { m_collectionEndpointHasBeenSet = true; m_collectionEndpoint.assign(value); }
68 inline CollectionDetail& WithCollectionEndpoint(const Aws::String& value) { SetCollectionEndpoint(value); return *this;}
69 inline CollectionDetail& WithCollectionEndpoint(Aws::String&& value) { SetCollectionEndpoint(std::move(value)); return *this;}
70 inline CollectionDetail& WithCollectionEndpoint(const char* value) { SetCollectionEndpoint(value); return *this;}
72
74
77 inline long long GetCreatedDate() const{ return m_createdDate; }
78 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
79 inline void SetCreatedDate(long long value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
80 inline CollectionDetail& WithCreatedDate(long long value) { SetCreatedDate(value); return *this;}
82
84
87 inline const Aws::String& GetDashboardEndpoint() const{ return m_dashboardEndpoint; }
88 inline bool DashboardEndpointHasBeenSet() const { return m_dashboardEndpointHasBeenSet; }
89 inline void SetDashboardEndpoint(const Aws::String& value) { m_dashboardEndpointHasBeenSet = true; m_dashboardEndpoint = value; }
90 inline void SetDashboardEndpoint(Aws::String&& value) { m_dashboardEndpointHasBeenSet = true; m_dashboardEndpoint = std::move(value); }
91 inline void SetDashboardEndpoint(const char* value) { m_dashboardEndpointHasBeenSet = true; m_dashboardEndpoint.assign(value); }
92 inline CollectionDetail& WithDashboardEndpoint(const Aws::String& value) { SetDashboardEndpoint(value); return *this;}
93 inline CollectionDetail& WithDashboardEndpoint(Aws::String&& value) { SetDashboardEndpoint(std::move(value)); return *this;}
94 inline CollectionDetail& WithDashboardEndpoint(const char* value) { SetDashboardEndpoint(value); return *this;}
96
98
101 inline const Aws::String& GetDescription() const{ return m_description; }
102 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
103 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
104 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
105 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
106 inline CollectionDetail& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
107 inline CollectionDetail& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
108 inline CollectionDetail& WithDescription(const char* value) { SetDescription(value); return *this;}
110
112
115 inline const Aws::String& GetFailureCode() const{ return m_failureCode; }
116 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
117 inline void SetFailureCode(const Aws::String& value) { m_failureCodeHasBeenSet = true; m_failureCode = value; }
118 inline void SetFailureCode(Aws::String&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::move(value); }
119 inline void SetFailureCode(const char* value) { m_failureCodeHasBeenSet = true; m_failureCode.assign(value); }
120 inline CollectionDetail& WithFailureCode(const Aws::String& value) { SetFailureCode(value); return *this;}
121 inline CollectionDetail& WithFailureCode(Aws::String&& value) { SetFailureCode(std::move(value)); return *this;}
122 inline CollectionDetail& WithFailureCode(const char* value) { SetFailureCode(value); return *this;}
124
126
129 inline const Aws::String& GetFailureMessage() const{ return m_failureMessage; }
130 inline bool FailureMessageHasBeenSet() const { return m_failureMessageHasBeenSet; }
131 inline void SetFailureMessage(const Aws::String& value) { m_failureMessageHasBeenSet = true; m_failureMessage = value; }
132 inline void SetFailureMessage(Aws::String&& value) { m_failureMessageHasBeenSet = true; m_failureMessage = std::move(value); }
133 inline void SetFailureMessage(const char* value) { m_failureMessageHasBeenSet = true; m_failureMessage.assign(value); }
134 inline CollectionDetail& WithFailureMessage(const Aws::String& value) { SetFailureMessage(value); return *this;}
135 inline CollectionDetail& WithFailureMessage(Aws::String&& value) { SetFailureMessage(std::move(value)); return *this;}
136 inline CollectionDetail& WithFailureMessage(const char* value) { SetFailureMessage(value); return *this;}
138
140
143 inline const Aws::String& GetId() const{ return m_id; }
144 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
145 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
146 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
147 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
148 inline CollectionDetail& WithId(const Aws::String& value) { SetId(value); return *this;}
149 inline CollectionDetail& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
150 inline CollectionDetail& WithId(const char* value) { SetId(value); return *this;}
152
154
158 inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
159 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
160 inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; }
161 inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); }
162 inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); }
163 inline CollectionDetail& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
164 inline CollectionDetail& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
165 inline CollectionDetail& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
167
169
172 inline long long GetLastModifiedDate() const{ return m_lastModifiedDate; }
173 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
174 inline void SetLastModifiedDate(long long value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
175 inline CollectionDetail& WithLastModifiedDate(long long value) { SetLastModifiedDate(value); return *this;}
177
179
182 inline const Aws::String& GetName() const{ return m_name; }
183 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
184 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
185 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
186 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
187 inline CollectionDetail& WithName(const Aws::String& value) { SetName(value); return *this;}
188 inline CollectionDetail& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
189 inline CollectionDetail& WithName(const char* value) { SetName(value); return *this;}
191
193
196 inline const StandbyReplicas& GetStandbyReplicas() const{ return m_standbyReplicas; }
197 inline bool StandbyReplicasHasBeenSet() const { return m_standbyReplicasHasBeenSet; }
198 inline void SetStandbyReplicas(const StandbyReplicas& value) { m_standbyReplicasHasBeenSet = true; m_standbyReplicas = value; }
199 inline void SetStandbyReplicas(StandbyReplicas&& value) { m_standbyReplicasHasBeenSet = true; m_standbyReplicas = std::move(value); }
200 inline CollectionDetail& WithStandbyReplicas(const StandbyReplicas& value) { SetStandbyReplicas(value); return *this;}
201 inline CollectionDetail& WithStandbyReplicas(StandbyReplicas&& value) { SetStandbyReplicas(std::move(value)); return *this;}
203
205
208 inline const CollectionStatus& GetStatus() const{ return m_status; }
209 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
210 inline void SetStatus(const CollectionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
211 inline void SetStatus(CollectionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
212 inline CollectionDetail& WithStatus(const CollectionStatus& value) { SetStatus(value); return *this;}
213 inline CollectionDetail& WithStatus(CollectionStatus&& value) { SetStatus(std::move(value)); return *this;}
215
217
220 inline const CollectionType& GetType() const{ return m_type; }
221 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
222 inline void SetType(const CollectionType& value) { m_typeHasBeenSet = true; m_type = value; }
223 inline void SetType(CollectionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
224 inline CollectionDetail& WithType(const CollectionType& value) { SetType(value); return *this;}
225 inline CollectionDetail& WithType(CollectionType&& value) { SetType(std::move(value)); return *this;}
227 private:
228
229 Aws::String m_arn;
230 bool m_arnHasBeenSet = false;
231
232 Aws::String m_collectionEndpoint;
233 bool m_collectionEndpointHasBeenSet = false;
234
235 long long m_createdDate;
236 bool m_createdDateHasBeenSet = false;
237
238 Aws::String m_dashboardEndpoint;
239 bool m_dashboardEndpointHasBeenSet = false;
240
241 Aws::String m_description;
242 bool m_descriptionHasBeenSet = false;
243
244 Aws::String m_failureCode;
245 bool m_failureCodeHasBeenSet = false;
246
247 Aws::String m_failureMessage;
248 bool m_failureMessageHasBeenSet = false;
249
250 Aws::String m_id;
251 bool m_idHasBeenSet = false;
252
253 Aws::String m_kmsKeyArn;
254 bool m_kmsKeyArnHasBeenSet = false;
255
256 long long m_lastModifiedDate;
257 bool m_lastModifiedDateHasBeenSet = false;
258
259 Aws::String m_name;
260 bool m_nameHasBeenSet = false;
261
262 StandbyReplicas m_standbyReplicas;
263 bool m_standbyReplicasHasBeenSet = false;
264
265 CollectionStatus m_status;
266 bool m_statusHasBeenSet = false;
267
268 CollectionType m_type;
269 bool m_typeHasBeenSet = false;
270 };
271
272} // namespace Model
273} // namespace OpenSearchServerless
274} // namespace Aws
CollectionDetail & WithKmsKeyArn(const Aws::String &value)
CollectionDetail & WithDescription(const char *value)
AWS_OPENSEARCHSERVERLESS_API CollectionDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
CollectionDetail & WithDescription(Aws::String &&value)
void SetStandbyReplicas(const StandbyReplicas &value)
CollectionDetail & WithFailureMessage(Aws::String &&value)
CollectionDetail & WithFailureCode(const Aws::String &value)
CollectionDetail & WithCollectionEndpoint(Aws::String &&value)
CollectionDetail & WithCreatedDate(long long value)
CollectionDetail & WithDescription(const Aws::String &value)
CollectionDetail & WithArn(Aws::String &&value)
CollectionDetail & WithCollectionEndpoint(const Aws::String &value)
CollectionDetail & WithFailureMessage(const char *value)
void SetDashboardEndpoint(const Aws::String &value)
CollectionDetail & WithType(const CollectionType &value)
CollectionDetail & WithArn(const char *value)
CollectionDetail & WithId(const char *value)
AWS_OPENSEARCHSERVERLESS_API CollectionDetail()
CollectionDetail & WithStandbyReplicas(StandbyReplicas &&value)
CollectionDetail & WithName(const Aws::String &value)
CollectionDetail & WithKmsKeyArn(Aws::String &&value)
AWS_OPENSEARCHSERVERLESS_API CollectionDetail(Aws::Utils::Json::JsonView jsonValue)
CollectionDetail & WithFailureMessage(const Aws::String &value)
CollectionDetail & WithLastModifiedDate(long long value)
CollectionDetail & WithStatus(const CollectionStatus &value)
CollectionDetail & WithFailureCode(Aws::String &&value)
CollectionDetail & WithStatus(CollectionStatus &&value)
CollectionDetail & WithKmsKeyArn(const char *value)
CollectionDetail & WithId(Aws::String &&value)
CollectionDetail & WithName(const char *value)
CollectionDetail & WithDashboardEndpoint(Aws::String &&value)
CollectionDetail & WithId(const Aws::String &value)
CollectionDetail & WithDashboardEndpoint(const Aws::String &value)
CollectionDetail & WithFailureCode(const char *value)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
CollectionDetail & WithName(Aws::String &&value)
CollectionDetail & WithType(CollectionType &&value)
void SetStatus(const CollectionStatus &value)
CollectionDetail & WithStandbyReplicas(const StandbyReplicas &value)
CollectionDetail & WithDashboardEndpoint(const char *value)
CollectionDetail & WithCollectionEndpoint(const char *value)
void SetCollectionEndpoint(const Aws::String &value)
CollectionDetail & WithArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue