AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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/StandbyReplicas.h>
12#include <aws/opensearchserverless/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace OpenSearchServerless {
24namespace Model {
25
32 public:
33 AWS_OPENSEARCHSERVERLESS_API CollectionGroupDetail() = default;
34 AWS_OPENSEARCHSERVERLESS_API CollectionGroupDetail(Aws::Utils::Json::JsonView jsonValue);
35 AWS_OPENSEARCHSERVERLESS_API CollectionGroupDetail& 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& GetArn() const { return m_arn; }
61 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
62 template <typename ArnT = Aws::String>
63 void SetArn(ArnT&& value) {
64 m_arnHasBeenSet = true;
65 m_arn = std::forward<ArnT>(value);
66 }
67 template <typename ArnT = Aws::String>
69 SetArn(std::forward<ArnT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetName() const { return m_name; }
79 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
80 template <typename NameT = Aws::String>
81 void SetName(NameT&& value) {
82 m_nameHasBeenSet = true;
83 m_name = std::forward<NameT>(value);
84 }
85 template <typename NameT = Aws::String>
87 SetName(std::forward<NameT>(value));
88 return *this;
89 }
91
93
96 inline StandbyReplicas GetStandbyReplicas() const { return m_standbyReplicas; }
97 inline bool StandbyReplicasHasBeenSet() const { return m_standbyReplicasHasBeenSet; }
99 m_standbyReplicasHasBeenSet = true;
100 m_standbyReplicas = value;
101 }
103 SetStandbyReplicas(value);
104 return *this;
105 }
107
109
112 inline const Aws::String& GetDescription() const { return m_description; }
113 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
114 template <typename DescriptionT = Aws::String>
115 void SetDescription(DescriptionT&& value) {
116 m_descriptionHasBeenSet = true;
117 m_description = std::forward<DescriptionT>(value);
118 }
119 template <typename DescriptionT = Aws::String>
120 CollectionGroupDetail& WithDescription(DescriptionT&& value) {
121 SetDescription(std::forward<DescriptionT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
131 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
132 template <typename TagsT = Aws::Vector<Tag>>
133 void SetTags(TagsT&& value) {
134 m_tagsHasBeenSet = true;
135 m_tags = std::forward<TagsT>(value);
136 }
137 template <typename TagsT = Aws::Vector<Tag>>
139 SetTags(std::forward<TagsT>(value));
140 return *this;
141 }
142 template <typename TagsT = Tag>
144 m_tagsHasBeenSet = true;
145 m_tags.emplace_back(std::forward<TagsT>(value));
146 return *this;
147 }
149
151
154 inline long long GetCreatedDate() const { return m_createdDate; }
155 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
156 inline void SetCreatedDate(long long value) {
157 m_createdDateHasBeenSet = true;
158 m_createdDate = value;
159 }
160 inline CollectionGroupDetail& WithCreatedDate(long long value) {
161 SetCreatedDate(value);
162 return *this;
163 }
165
167
171 inline const CollectionGroupCapacityLimits& GetCapacityLimits() const { return m_capacityLimits; }
172 inline bool CapacityLimitsHasBeenSet() const { return m_capacityLimitsHasBeenSet; }
173 template <typename CapacityLimitsT = CollectionGroupCapacityLimits>
174 void SetCapacityLimits(CapacityLimitsT&& value) {
175 m_capacityLimitsHasBeenSet = true;
176 m_capacityLimits = std::forward<CapacityLimitsT>(value);
177 }
178 template <typename CapacityLimitsT = CollectionGroupCapacityLimits>
179 CollectionGroupDetail& WithCapacityLimits(CapacityLimitsT&& value) {
180 SetCapacityLimits(std::forward<CapacityLimitsT>(value));
181 return *this;
182 }
184
186
189 inline int GetNumberOfCollections() const { return m_numberOfCollections; }
190 inline bool NumberOfCollectionsHasBeenSet() const { return m_numberOfCollectionsHasBeenSet; }
191 inline void SetNumberOfCollections(int value) {
192 m_numberOfCollectionsHasBeenSet = true;
193 m_numberOfCollections = value;
194 }
197 return *this;
198 }
200 private:
201 Aws::String m_id;
202
203 Aws::String m_arn;
204
205 Aws::String m_name;
206
207 StandbyReplicas m_standbyReplicas{StandbyReplicas::NOT_SET};
208
209 Aws::String m_description;
210
211 Aws::Vector<Tag> m_tags;
212
213 long long m_createdDate{0};
214
215 CollectionGroupCapacityLimits m_capacityLimits;
216
217 int m_numberOfCollections{0};
218 bool m_idHasBeenSet = false;
219 bool m_arnHasBeenSet = false;
220 bool m_nameHasBeenSet = false;
221 bool m_standbyReplicasHasBeenSet = false;
222 bool m_descriptionHasBeenSet = false;
223 bool m_tagsHasBeenSet = false;
224 bool m_createdDateHasBeenSet = false;
225 bool m_capacityLimitsHasBeenSet = false;
226 bool m_numberOfCollectionsHasBeenSet = false;
227};
228
229} // namespace Model
230} // namespace OpenSearchServerless
231} // namespace Aws
CollectionGroupDetail & WithCapacityLimits(CapacityLimitsT &&value)
CollectionGroupDetail & WithStandbyReplicas(StandbyReplicas value)
AWS_OPENSEARCHSERVERLESS_API CollectionGroupDetail(Aws::Utils::Json::JsonView jsonValue)
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