AWS SDK for C++

AWS SDK for C++ Version 1.11.644

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/CollectionStatus.h>
10#include <aws/opensearchserverless/model/CollectionType.h>
11#include <aws/opensearchserverless/model/StandbyReplicas.h>
12#include <aws/opensearchserverless/model/FipsEndpoints.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace OpenSearchServerless
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_OPENSEARCHSERVERLESS_API CollectionDetail() = default;
41 AWS_OPENSEARCHSERVERLESS_API CollectionDetail(Aws::Utils::Json::JsonView jsonValue);
42 AWS_OPENSEARCHSERVERLESS_API CollectionDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetId() const { return m_id; }
51 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 template<typename IdT = Aws::String>
53 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
54 template<typename IdT = Aws::String>
55 CollectionDetail& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
57
59
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template<typename NameT = Aws::String>
65 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
66 template<typename NameT = Aws::String>
67 CollectionDetail& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
69
71
74 inline CollectionStatus GetStatus() const { return m_status; }
75 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
76 inline void SetStatus(CollectionStatus value) { m_statusHasBeenSet = true; m_status = value; }
77 inline CollectionDetail& WithStatus(CollectionStatus value) { SetStatus(value); return *this;}
79
81
84 inline CollectionType GetType() const { return m_type; }
85 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
86 inline void SetType(CollectionType value) { m_typeHasBeenSet = true; m_type = value; }
87 inline CollectionDetail& WithType(CollectionType value) { SetType(value); return *this;}
89
91
94 inline const Aws::String& GetDescription() const { return m_description; }
95 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
96 template<typename DescriptionT = Aws::String>
97 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
98 template<typename DescriptionT = Aws::String>
99 CollectionDetail& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
101
103
106 inline const Aws::String& GetArn() const { return m_arn; }
107 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
108 template<typename ArnT = Aws::String>
109 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
110 template<typename ArnT = Aws::String>
111 CollectionDetail& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
113
115
119 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
120 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
121 template<typename KmsKeyArnT = Aws::String>
122 void SetKmsKeyArn(KmsKeyArnT&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::forward<KmsKeyArnT>(value); }
123 template<typename KmsKeyArnT = Aws::String>
124 CollectionDetail& WithKmsKeyArn(KmsKeyArnT&& value) { SetKmsKeyArn(std::forward<KmsKeyArnT>(value)); return *this;}
126
128
131 inline StandbyReplicas GetStandbyReplicas() const { return m_standbyReplicas; }
132 inline bool StandbyReplicasHasBeenSet() const { return m_standbyReplicasHasBeenSet; }
133 inline void SetStandbyReplicas(StandbyReplicas value) { m_standbyReplicasHasBeenSet = true; m_standbyReplicas = value; }
136
138
141 inline long long GetCreatedDate() const { return m_createdDate; }
142 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
143 inline void SetCreatedDate(long long value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
144 inline CollectionDetail& WithCreatedDate(long long value) { SetCreatedDate(value); return *this;}
146
148
151 inline long long GetLastModifiedDate() const { return m_lastModifiedDate; }
152 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
153 inline void SetLastModifiedDate(long long value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
154 inline CollectionDetail& WithLastModifiedDate(long long value) { SetLastModifiedDate(value); return *this;}
156
158
162 inline const Aws::String& GetCollectionEndpoint() const { return m_collectionEndpoint; }
163 inline bool CollectionEndpointHasBeenSet() const { return m_collectionEndpointHasBeenSet; }
164 template<typename CollectionEndpointT = Aws::String>
165 void SetCollectionEndpoint(CollectionEndpointT&& value) { m_collectionEndpointHasBeenSet = true; m_collectionEndpoint = std::forward<CollectionEndpointT>(value); }
166 template<typename CollectionEndpointT = Aws::String>
167 CollectionDetail& WithCollectionEndpoint(CollectionEndpointT&& value) { SetCollectionEndpoint(std::forward<CollectionEndpointT>(value)); return *this;}
169
171
174 inline const Aws::String& GetDashboardEndpoint() const { return m_dashboardEndpoint; }
175 inline bool DashboardEndpointHasBeenSet() const { return m_dashboardEndpointHasBeenSet; }
176 template<typename DashboardEndpointT = Aws::String>
177 void SetDashboardEndpoint(DashboardEndpointT&& value) { m_dashboardEndpointHasBeenSet = true; m_dashboardEndpoint = std::forward<DashboardEndpointT>(value); }
178 template<typename DashboardEndpointT = Aws::String>
179 CollectionDetail& WithDashboardEndpoint(DashboardEndpointT&& value) { SetDashboardEndpoint(std::forward<DashboardEndpointT>(value)); return *this;}
181
183
188 inline const FipsEndpoints& GetFipsEndpoints() const { return m_fipsEndpoints; }
189 inline bool FipsEndpointsHasBeenSet() const { return m_fipsEndpointsHasBeenSet; }
190 template<typename FipsEndpointsT = FipsEndpoints>
191 void SetFipsEndpoints(FipsEndpointsT&& value) { m_fipsEndpointsHasBeenSet = true; m_fipsEndpoints = std::forward<FipsEndpointsT>(value); }
192 template<typename FipsEndpointsT = FipsEndpoints>
193 CollectionDetail& WithFipsEndpoints(FipsEndpointsT&& value) { SetFipsEndpoints(std::forward<FipsEndpointsT>(value)); return *this;}
195
197
200 inline const Aws::String& GetFailureCode() const { return m_failureCode; }
201 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
202 template<typename FailureCodeT = Aws::String>
203 void SetFailureCode(FailureCodeT&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::forward<FailureCodeT>(value); }
204 template<typename FailureCodeT = Aws::String>
205 CollectionDetail& WithFailureCode(FailureCodeT&& value) { SetFailureCode(std::forward<FailureCodeT>(value)); return *this;}
207
209
212 inline const Aws::String& GetFailureMessage() const { return m_failureMessage; }
213 inline bool FailureMessageHasBeenSet() const { return m_failureMessageHasBeenSet; }
214 template<typename FailureMessageT = Aws::String>
215 void SetFailureMessage(FailureMessageT&& value) { m_failureMessageHasBeenSet = true; m_failureMessage = std::forward<FailureMessageT>(value); }
216 template<typename FailureMessageT = Aws::String>
217 CollectionDetail& WithFailureMessage(FailureMessageT&& value) { SetFailureMessage(std::forward<FailureMessageT>(value)); return *this;}
219 private:
220
221 Aws::String m_id;
222 bool m_idHasBeenSet = false;
223
224 Aws::String m_name;
225 bool m_nameHasBeenSet = false;
226
228 bool m_statusHasBeenSet = false;
229
231 bool m_typeHasBeenSet = false;
232
233 Aws::String m_description;
234 bool m_descriptionHasBeenSet = false;
235
236 Aws::String m_arn;
237 bool m_arnHasBeenSet = false;
238
239 Aws::String m_kmsKeyArn;
240 bool m_kmsKeyArnHasBeenSet = false;
241
242 StandbyReplicas m_standbyReplicas{StandbyReplicas::NOT_SET};
243 bool m_standbyReplicasHasBeenSet = false;
244
245 long long m_createdDate{0};
246 bool m_createdDateHasBeenSet = false;
247
248 long long m_lastModifiedDate{0};
249 bool m_lastModifiedDateHasBeenSet = false;
250
251 Aws::String m_collectionEndpoint;
252 bool m_collectionEndpointHasBeenSet = false;
253
254 Aws::String m_dashboardEndpoint;
255 bool m_dashboardEndpointHasBeenSet = false;
256
257 FipsEndpoints m_fipsEndpoints;
258 bool m_fipsEndpointsHasBeenSet = false;
259
260 Aws::String m_failureCode;
261 bool m_failureCodeHasBeenSet = false;
262
263 Aws::String m_failureMessage;
264 bool m_failureMessageHasBeenSet = false;
265 };
266
267} // namespace Model
268} // namespace OpenSearchServerless
269} // namespace Aws
CollectionDetail & WithDashboardEndpoint(DashboardEndpointT &&value)
AWS_OPENSEARCHSERVERLESS_API CollectionDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
CollectionDetail & WithDescription(DescriptionT &&value)
void SetDashboardEndpoint(DashboardEndpointT &&value)
CollectionDetail & WithCreatedDate(long long value)
CollectionDetail & WithStatus(CollectionStatus value)
CollectionDetail & WithFipsEndpoints(FipsEndpointsT &&value)
AWS_OPENSEARCHSERVERLESS_API CollectionDetail(Aws::Utils::Json::JsonView jsonValue)
CollectionDetail & WithLastModifiedDate(long long value)
void SetCollectionEndpoint(CollectionEndpointT &&value)
CollectionDetail & WithFailureCode(FailureCodeT &&value)
CollectionDetail & WithKmsKeyArn(KmsKeyArnT &&value)
CollectionDetail & WithCollectionEndpoint(CollectionEndpointT &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
CollectionDetail & WithStandbyReplicas(StandbyReplicas value)
AWS_OPENSEARCHSERVERLESS_API CollectionDetail()=default
CollectionDetail & WithFailureMessage(FailureMessageT &&value)
CollectionDetail & WithType(CollectionType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue