AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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/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 CreateCollectionGroupDetail() = default;
34 AWS_OPENSEARCHSERVERLESS_API CreateCollectionGroupDetail(Aws::Utils::Json::JsonView jsonValue);
35 AWS_OPENSEARCHSERVERLESS_API CreateCollectionGroupDetail& 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>
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 }
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>
180 SetCapacityLimits(std::forward<CapacityLimitsT>(value));
181 return *this;
182 }
184 private:
185 Aws::String m_id;
186
187 Aws::String m_arn;
188
189 Aws::String m_name;
190
191 StandbyReplicas m_standbyReplicas{StandbyReplicas::NOT_SET};
192
193 Aws::String m_description;
194
195 Aws::Vector<Tag> m_tags;
196
197 long long m_createdDate{0};
198
199 CollectionGroupCapacityLimits m_capacityLimits;
200 bool m_idHasBeenSet = false;
201 bool m_arnHasBeenSet = false;
202 bool m_nameHasBeenSet = false;
203 bool m_standbyReplicasHasBeenSet = false;
204 bool m_descriptionHasBeenSet = false;
205 bool m_tagsHasBeenSet = false;
206 bool m_createdDateHasBeenSet = false;
207 bool m_capacityLimitsHasBeenSet = false;
208};
209
210} // namespace Model
211} // namespace OpenSearchServerless
212} // namespace Aws
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