AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
CreateCollectionGroupDetail.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/ServerlessGeneration.h>
12#include <aws/opensearchserverless/model/StandbyReplicas.h>
13#include <aws/opensearchserverless/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace OpenSearchServerless {
25namespace Model {
26
33 public:
34 AWS_OPENSEARCHSERVERLESS_API CreateCollectionGroupDetail() = default;
35 AWS_OPENSEARCHSERVERLESS_API CreateCollectionGroupDetail(Aws::Utils::Json::JsonView jsonValue);
36 AWS_OPENSEARCHSERVERLESS_API CreateCollectionGroupDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 template <typename IdT = Aws::String>
46 void SetId(IdT&& value) {
47 m_idHasBeenSet = true;
48 m_id = std::forward<IdT>(value);
49 }
50 template <typename IdT = Aws::String>
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetArn() const { return m_arn; }
62 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
63 template <typename ArnT = Aws::String>
64 void SetArn(ArnT&& value) {
65 m_arnHasBeenSet = true;
66 m_arn = std::forward<ArnT>(value);
67 }
68 template <typename ArnT = Aws::String>
70 SetArn(std::forward<ArnT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetName() const { return m_name; }
80 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
81 template <typename NameT = Aws::String>
82 void SetName(NameT&& value) {
83 m_nameHasBeenSet = true;
84 m_name = std::forward<NameT>(value);
85 }
86 template <typename NameT = Aws::String>
88 SetName(std::forward<NameT>(value));
89 return *this;
90 }
92
94
97 inline StandbyReplicas GetStandbyReplicas() const { return m_standbyReplicas; }
98 inline bool StandbyReplicasHasBeenSet() const { return m_standbyReplicasHasBeenSet; }
100 m_standbyReplicasHasBeenSet = true;
101 m_standbyReplicas = value;
102 }
104 SetStandbyReplicas(value);
105 return *this;
106 }
108
110
113 inline const Aws::String& GetDescription() const { return m_description; }
114 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
115 template <typename DescriptionT = Aws::String>
116 void SetDescription(DescriptionT&& value) {
117 m_descriptionHasBeenSet = true;
118 m_description = std::forward<DescriptionT>(value);
119 }
120 template <typename DescriptionT = Aws::String>
122 SetDescription(std::forward<DescriptionT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
132 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
133 template <typename TagsT = Aws::Vector<Tag>>
134 void SetTags(TagsT&& value) {
135 m_tagsHasBeenSet = true;
136 m_tags = std::forward<TagsT>(value);
137 }
138 template <typename TagsT = Aws::Vector<Tag>>
140 SetTags(std::forward<TagsT>(value));
141 return *this;
142 }
143 template <typename TagsT = Tag>
145 m_tagsHasBeenSet = true;
146 m_tags.emplace_back(std::forward<TagsT>(value));
147 return *this;
148 }
150
152
155 inline long long GetCreatedDate() const { return m_createdDate; }
156 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
157 inline void SetCreatedDate(long long value) {
158 m_createdDateHasBeenSet = true;
159 m_createdDate = value;
160 }
162 SetCreatedDate(value);
163 return *this;
164 }
166
168
172 inline const CollectionGroupCapacityLimits& GetCapacityLimits() const { return m_capacityLimits; }
173 inline bool CapacityLimitsHasBeenSet() const { return m_capacityLimitsHasBeenSet; }
174 template <typename CapacityLimitsT = CollectionGroupCapacityLimits>
175 void SetCapacityLimits(CapacityLimitsT&& value) {
176 m_capacityLimitsHasBeenSet = true;
177 m_capacityLimits = std::forward<CapacityLimitsT>(value);
178 }
179 template <typename CapacityLimitsT = CollectionGroupCapacityLimits>
181 SetCapacityLimits(std::forward<CapacityLimitsT>(value));
182 return *this;
183 }
185
187
190 inline ServerlessGeneration GetGeneration() const { return m_generation; }
191 inline bool GenerationHasBeenSet() const { return m_generationHasBeenSet; }
193 m_generationHasBeenSet = true;
194 m_generation = value;
195 }
197 SetGeneration(value);
198 return *this;
199 }
201 private:
202 Aws::String m_id;
203
204 Aws::String m_arn;
205
206 Aws::String m_name;
207
208 StandbyReplicas m_standbyReplicas{StandbyReplicas::NOT_SET};
209
210 Aws::String m_description;
211
212 Aws::Vector<Tag> m_tags;
213
214 long long m_createdDate{0};
215
216 CollectionGroupCapacityLimits m_capacityLimits;
217
219 bool m_idHasBeenSet = false;
220 bool m_arnHasBeenSet = false;
221 bool m_nameHasBeenSet = false;
222 bool m_standbyReplicasHasBeenSet = false;
223 bool m_descriptionHasBeenSet = false;
224 bool m_tagsHasBeenSet = false;
225 bool m_createdDateHasBeenSet = false;
226 bool m_capacityLimitsHasBeenSet = false;
227 bool m_generationHasBeenSet = false;
228};
229
230} // namespace Model
231} // namespace OpenSearchServerless
232} // namespace Aws
CreateCollectionGroupDetail & WithGeneration(ServerlessGeneration value)
CreateCollectionGroupDetail & WithDescription(DescriptionT &&value)
AWS_OPENSEARCHSERVERLESS_API CreateCollectionGroupDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVERLESS_API CreateCollectionGroupDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
CreateCollectionGroupDetail & WithStandbyReplicas(StandbyReplicas value)
CreateCollectionGroupDetail & WithCapacityLimits(CapacityLimitsT &&value)
AWS_OPENSEARCHSERVERLESS_API CreateCollectionGroupDetail()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue