AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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 <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() = default;
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& GetId() const { return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 template<typename IdT = Aws::String>
51 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
52 template<typename IdT = Aws::String>
53 CollectionDetail& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
64 template<typename NameT = Aws::String>
65 CollectionDetail& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
67
69
72 inline CollectionStatus GetStatus() const { return m_status; }
73 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
74 inline void SetStatus(CollectionStatus value) { m_statusHasBeenSet = true; m_status = value; }
75 inline CollectionDetail& WithStatus(CollectionStatus value) { SetStatus(value); return *this;}
77
79
82 inline CollectionType GetType() const { return m_type; }
83 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
84 inline void SetType(CollectionType value) { m_typeHasBeenSet = true; m_type = value; }
85 inline CollectionDetail& WithType(CollectionType value) { SetType(value); return *this;}
87
89
92 inline const Aws::String& GetDescription() const { return m_description; }
93 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
94 template<typename DescriptionT = Aws::String>
95 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
96 template<typename DescriptionT = Aws::String>
97 CollectionDetail& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
99
101
104 inline const Aws::String& GetArn() const { return m_arn; }
105 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
106 template<typename ArnT = Aws::String>
107 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
108 template<typename ArnT = Aws::String>
109 CollectionDetail& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
111
113
117 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
118 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
119 template<typename KmsKeyArnT = Aws::String>
120 void SetKmsKeyArn(KmsKeyArnT&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::forward<KmsKeyArnT>(value); }
121 template<typename KmsKeyArnT = Aws::String>
122 CollectionDetail& WithKmsKeyArn(KmsKeyArnT&& value) { SetKmsKeyArn(std::forward<KmsKeyArnT>(value)); return *this;}
124
126
129 inline StandbyReplicas GetStandbyReplicas() const { return m_standbyReplicas; }
130 inline bool StandbyReplicasHasBeenSet() const { return m_standbyReplicasHasBeenSet; }
131 inline void SetStandbyReplicas(StandbyReplicas value) { m_standbyReplicasHasBeenSet = true; m_standbyReplicas = value; }
134
136
139 inline long long GetCreatedDate() const { return m_createdDate; }
140 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
141 inline void SetCreatedDate(long long value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
142 inline CollectionDetail& WithCreatedDate(long long value) { SetCreatedDate(value); return *this;}
144
146
149 inline long long GetLastModifiedDate() const { return m_lastModifiedDate; }
150 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
151 inline void SetLastModifiedDate(long long value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
152 inline CollectionDetail& WithLastModifiedDate(long long value) { SetLastModifiedDate(value); return *this;}
154
156
160 inline const Aws::String& GetCollectionEndpoint() const { return m_collectionEndpoint; }
161 inline bool CollectionEndpointHasBeenSet() const { return m_collectionEndpointHasBeenSet; }
162 template<typename CollectionEndpointT = Aws::String>
163 void SetCollectionEndpoint(CollectionEndpointT&& value) { m_collectionEndpointHasBeenSet = true; m_collectionEndpoint = std::forward<CollectionEndpointT>(value); }
164 template<typename CollectionEndpointT = Aws::String>
165 CollectionDetail& WithCollectionEndpoint(CollectionEndpointT&& value) { SetCollectionEndpoint(std::forward<CollectionEndpointT>(value)); return *this;}
167
169
172 inline const Aws::String& GetDashboardEndpoint() const { return m_dashboardEndpoint; }
173 inline bool DashboardEndpointHasBeenSet() const { return m_dashboardEndpointHasBeenSet; }
174 template<typename DashboardEndpointT = Aws::String>
175 void SetDashboardEndpoint(DashboardEndpointT&& value) { m_dashboardEndpointHasBeenSet = true; m_dashboardEndpoint = std::forward<DashboardEndpointT>(value); }
176 template<typename DashboardEndpointT = Aws::String>
177 CollectionDetail& WithDashboardEndpoint(DashboardEndpointT&& value) { SetDashboardEndpoint(std::forward<DashboardEndpointT>(value)); return *this;}
179
181
184 inline const Aws::String& GetFailureCode() const { return m_failureCode; }
185 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
186 template<typename FailureCodeT = Aws::String>
187 void SetFailureCode(FailureCodeT&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::forward<FailureCodeT>(value); }
188 template<typename FailureCodeT = Aws::String>
189 CollectionDetail& WithFailureCode(FailureCodeT&& value) { SetFailureCode(std::forward<FailureCodeT>(value)); return *this;}
191
193
196 inline const Aws::String& GetFailureMessage() const { return m_failureMessage; }
197 inline bool FailureMessageHasBeenSet() const { return m_failureMessageHasBeenSet; }
198 template<typename FailureMessageT = Aws::String>
199 void SetFailureMessage(FailureMessageT&& value) { m_failureMessageHasBeenSet = true; m_failureMessage = std::forward<FailureMessageT>(value); }
200 template<typename FailureMessageT = Aws::String>
201 CollectionDetail& WithFailureMessage(FailureMessageT&& value) { SetFailureMessage(std::forward<FailureMessageT>(value)); return *this;}
203 private:
204
205 Aws::String m_id;
206 bool m_idHasBeenSet = false;
207
208 Aws::String m_name;
209 bool m_nameHasBeenSet = false;
210
212 bool m_statusHasBeenSet = false;
213
215 bool m_typeHasBeenSet = false;
216
217 Aws::String m_description;
218 bool m_descriptionHasBeenSet = false;
219
220 Aws::String m_arn;
221 bool m_arnHasBeenSet = false;
222
223 Aws::String m_kmsKeyArn;
224 bool m_kmsKeyArnHasBeenSet = false;
225
226 StandbyReplicas m_standbyReplicas{StandbyReplicas::NOT_SET};
227 bool m_standbyReplicasHasBeenSet = false;
228
229 long long m_createdDate{0};
230 bool m_createdDateHasBeenSet = false;
231
232 long long m_lastModifiedDate{0};
233 bool m_lastModifiedDateHasBeenSet = false;
234
235 Aws::String m_collectionEndpoint;
236 bool m_collectionEndpointHasBeenSet = false;
237
238 Aws::String m_dashboardEndpoint;
239 bool m_dashboardEndpointHasBeenSet = false;
240
241 Aws::String m_failureCode;
242 bool m_failureCodeHasBeenSet = false;
243
244 Aws::String m_failureMessage;
245 bool m_failureMessageHasBeenSet = false;
246 };
247
248} // namespace Model
249} // namespace OpenSearchServerless
250} // 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)
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