AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
CollectionGroupDetail.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
10#include <aws/opensearchserverless/model/CollectionGroupCapacityLimits.h>
11#include <aws/opensearchserverless/model/CurrentCapacity.h>
12#include <aws/opensearchserverless/model/ServerlessGeneration.h>
13#include <aws/opensearchserverless/model/StandbyReplicas.h>
14#include <aws/opensearchserverless/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace OpenSearchServerless {
26namespace Model {
27
34 public:
35 AWS_OPENSEARCHSERVERLESS_API CollectionGroupDetail() = default;
36 AWS_OPENSEARCHSERVERLESS_API CollectionGroupDetail(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OPENSEARCHSERVERLESS_API CollectionGroupDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetId() const { return m_id; }
45 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
46 template <typename IdT = Aws::String>
47 void SetId(IdT&& value) {
48 m_idHasBeenSet = true;
49 m_id = std::forward<IdT>(value);
50 }
51 template <typename IdT = Aws::String>
53 SetId(std::forward<IdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetArn() const { return m_arn; }
63 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
64 template <typename ArnT = Aws::String>
65 void SetArn(ArnT&& value) {
66 m_arnHasBeenSet = true;
67 m_arn = std::forward<ArnT>(value);
68 }
69 template <typename ArnT = Aws::String>
71 SetArn(std::forward<ArnT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetName() const { return m_name; }
81 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
82 template <typename NameT = Aws::String>
83 void SetName(NameT&& value) {
84 m_nameHasBeenSet = true;
85 m_name = std::forward<NameT>(value);
86 }
87 template <typename NameT = Aws::String>
89 SetName(std::forward<NameT>(value));
90 return *this;
91 }
93
95
98 inline StandbyReplicas GetStandbyReplicas() const { return m_standbyReplicas; }
99 inline bool StandbyReplicasHasBeenSet() const { return m_standbyReplicasHasBeenSet; }
101 m_standbyReplicasHasBeenSet = true;
102 m_standbyReplicas = value;
103 }
105 SetStandbyReplicas(value);
106 return *this;
107 }
109
111
114 inline const Aws::String& GetDescription() const { return m_description; }
115 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
116 template <typename DescriptionT = Aws::String>
117 void SetDescription(DescriptionT&& value) {
118 m_descriptionHasBeenSet = true;
119 m_description = std::forward<DescriptionT>(value);
120 }
121 template <typename DescriptionT = Aws::String>
122 CollectionGroupDetail& WithDescription(DescriptionT&& value) {
123 SetDescription(std::forward<DescriptionT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
133 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
134 template <typename TagsT = Aws::Vector<Tag>>
135 void SetTags(TagsT&& value) {
136 m_tagsHasBeenSet = true;
137 m_tags = std::forward<TagsT>(value);
138 }
139 template <typename TagsT = Aws::Vector<Tag>>
141 SetTags(std::forward<TagsT>(value));
142 return *this;
143 }
144 template <typename TagsT = Tag>
146 m_tagsHasBeenSet = true;
147 m_tags.emplace_back(std::forward<TagsT>(value));
148 return *this;
149 }
151
153
156 inline long long GetCreatedDate() const { return m_createdDate; }
157 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
158 inline void SetCreatedDate(long long value) {
159 m_createdDateHasBeenSet = true;
160 m_createdDate = value;
161 }
162 inline CollectionGroupDetail& WithCreatedDate(long long value) {
163 SetCreatedDate(value);
164 return *this;
165 }
167
169
173 inline const CollectionGroupCapacityLimits& GetCapacityLimits() const { return m_capacityLimits; }
174 inline bool CapacityLimitsHasBeenSet() const { return m_capacityLimitsHasBeenSet; }
175 template <typename CapacityLimitsT = CollectionGroupCapacityLimits>
176 void SetCapacityLimits(CapacityLimitsT&& value) {
177 m_capacityLimitsHasBeenSet = true;
178 m_capacityLimits = std::forward<CapacityLimitsT>(value);
179 }
180 template <typename CapacityLimitsT = CollectionGroupCapacityLimits>
181 CollectionGroupDetail& WithCapacityLimits(CapacityLimitsT&& value) {
182 SetCapacityLimits(std::forward<CapacityLimitsT>(value));
183 return *this;
184 }
186
188
191 inline const CurrentCapacity& GetCurrentCapacity() const { return m_currentCapacity; }
192 inline bool CurrentCapacityHasBeenSet() const { return m_currentCapacityHasBeenSet; }
193 template <typename CurrentCapacityT = CurrentCapacity>
194 void SetCurrentCapacity(CurrentCapacityT&& value) {
195 m_currentCapacityHasBeenSet = true;
196 m_currentCapacity = std::forward<CurrentCapacityT>(value);
197 }
198 template <typename CurrentCapacityT = CurrentCapacity>
199 CollectionGroupDetail& WithCurrentCapacity(CurrentCapacityT&& value) {
200 SetCurrentCapacity(std::forward<CurrentCapacityT>(value));
201 return *this;
202 }
204
206
209 inline int GetNumberOfCollections() const { return m_numberOfCollections; }
210 inline bool NumberOfCollectionsHasBeenSet() const { return m_numberOfCollectionsHasBeenSet; }
211 inline void SetNumberOfCollections(int value) {
212 m_numberOfCollectionsHasBeenSet = true;
213 m_numberOfCollections = value;
214 }
217 return *this;
218 }
220
222
225 inline ServerlessGeneration GetGeneration() const { return m_generation; }
226 inline bool GenerationHasBeenSet() const { return m_generationHasBeenSet; }
228 m_generationHasBeenSet = true;
229 m_generation = value;
230 }
232 SetGeneration(value);
233 return *this;
234 }
236 private:
237 Aws::String m_id;
238
239 Aws::String m_arn;
240
241 Aws::String m_name;
242
243 StandbyReplicas m_standbyReplicas{StandbyReplicas::NOT_SET};
244
245 Aws::String m_description;
246
247 Aws::Vector<Tag> m_tags;
248
249 long long m_createdDate{0};
250
251 CollectionGroupCapacityLimits m_capacityLimits;
252
253 CurrentCapacity m_currentCapacity;
254
255 int m_numberOfCollections{0};
256
258 bool m_idHasBeenSet = false;
259 bool m_arnHasBeenSet = false;
260 bool m_nameHasBeenSet = false;
261 bool m_standbyReplicasHasBeenSet = false;
262 bool m_descriptionHasBeenSet = false;
263 bool m_tagsHasBeenSet = false;
264 bool m_createdDateHasBeenSet = false;
265 bool m_capacityLimitsHasBeenSet = false;
266 bool m_currentCapacityHasBeenSet = false;
267 bool m_numberOfCollectionsHasBeenSet = false;
268 bool m_generationHasBeenSet = false;
269};
270
271} // namespace Model
272} // namespace OpenSearchServerless
273} // namespace Aws
CollectionGroupDetail & WithCapacityLimits(CapacityLimitsT &&value)
CollectionGroupDetail & WithStandbyReplicas(StandbyReplicas value)
AWS_OPENSEARCHSERVERLESS_API CollectionGroupDetail(Aws::Utils::Json::JsonView jsonValue)
CollectionGroupDetail & WithCurrentCapacity(CurrentCapacityT &&value)
CollectionGroupDetail & WithGeneration(ServerlessGeneration value)
AWS_OPENSEARCHSERVERLESS_API CollectionGroupDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
CollectionGroupDetail & WithCreatedDate(long long value)
AWS_OPENSEARCHSERVERLESS_API CollectionGroupDetail()=default
const CollectionGroupCapacityLimits & GetCapacityLimits() const
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
CollectionGroupDetail & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue