AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
CreateCollectionGroupRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/opensearchserverless/OpenSearchServerlessRequest.h>
11#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
12#include <aws/opensearchserverless/model/CollectionGroupCapacityLimits.h>
13#include <aws/opensearchserverless/model/ServerlessGeneration.h>
14#include <aws/opensearchserverless/model/StandbyReplicas.h>
15#include <aws/opensearchserverless/model/Tag.h>
16
17#include <utility>
18
19namespace Aws {
20namespace OpenSearchServerless {
21namespace Model {
22
26 public:
27 AWS_OPENSEARCHSERVERLESS_API CreateCollectionGroupRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateCollectionGroup"; }
34
35 AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override;
36
37 AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
61 inline StandbyReplicas GetStandbyReplicas() const { return m_standbyReplicas; }
62 inline bool StandbyReplicasHasBeenSet() const { return m_standbyReplicasHasBeenSet; }
64 m_standbyReplicasHasBeenSet = true;
65 m_standbyReplicas = value;
66 }
68 SetStandbyReplicas(value);
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template <typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) {
81 m_descriptionHasBeenSet = true;
82 m_description = std::forward<DescriptionT>(value);
83 }
84 template <typename DescriptionT = Aws::String>
86 SetDescription(std::forward<DescriptionT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
97 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
98 template <typename TagsT = Aws::Vector<Tag>>
99 void SetTags(TagsT&& value) {
100 m_tagsHasBeenSet = true;
101 m_tags = std::forward<TagsT>(value);
102 }
103 template <typename TagsT = Aws::Vector<Tag>>
105 SetTags(std::forward<TagsT>(value));
106 return *this;
107 }
108 template <typename TagsT = Tag>
110 m_tagsHasBeenSet = true;
111 m_tags.emplace_back(std::forward<TagsT>(value));
112 return *this;
113 }
115
117
122 inline const CollectionGroupCapacityLimits& GetCapacityLimits() const { return m_capacityLimits; }
123 inline bool CapacityLimitsHasBeenSet() const { return m_capacityLimitsHasBeenSet; }
124 template <typename CapacityLimitsT = CollectionGroupCapacityLimits>
125 void SetCapacityLimits(CapacityLimitsT&& value) {
126 m_capacityLimitsHasBeenSet = true;
127 m_capacityLimits = std::forward<CapacityLimitsT>(value);
128 }
129 template <typename CapacityLimitsT = CollectionGroupCapacityLimits>
131 SetCapacityLimits(std::forward<CapacityLimitsT>(value));
132 return *this;
133 }
135
137
141 inline ServerlessGeneration GetGeneration() const { return m_generation; }
142 inline bool GenerationHasBeenSet() const { return m_generationHasBeenSet; }
144 m_generationHasBeenSet = true;
145 m_generation = value;
146 }
148 SetGeneration(value);
149 return *this;
150 }
152
154
157 inline const Aws::String& GetClientToken() const { return m_clientToken; }
158 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
159 template <typename ClientTokenT = Aws::String>
160 void SetClientToken(ClientTokenT&& value) {
161 m_clientTokenHasBeenSet = true;
162 m_clientToken = std::forward<ClientTokenT>(value);
163 }
164 template <typename ClientTokenT = Aws::String>
166 SetClientToken(std::forward<ClientTokenT>(value));
167 return *this;
168 }
170 private:
171 Aws::String m_name;
172
173 StandbyReplicas m_standbyReplicas{StandbyReplicas::NOT_SET};
174
175 Aws::String m_description;
176
177 Aws::Vector<Tag> m_tags;
178
179 CollectionGroupCapacityLimits m_capacityLimits;
180
182
184 bool m_nameHasBeenSet = false;
185 bool m_standbyReplicasHasBeenSet = false;
186 bool m_descriptionHasBeenSet = false;
187 bool m_tagsHasBeenSet = false;
188 bool m_capacityLimitsHasBeenSet = false;
189 bool m_generationHasBeenSet = false;
190 bool m_clientTokenHasBeenSet = true;
191};
192
193} // namespace Model
194} // namespace OpenSearchServerless
195} // namespace Aws
CreateCollectionGroupRequest & WithStandbyReplicas(StandbyReplicas value)
AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateCollectionGroupRequest & WithCapacityLimits(CapacityLimitsT &&value)
CreateCollectionGroupRequest & WithGeneration(ServerlessGeneration value)
AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override
CreateCollectionGroupRequest & WithDescription(DescriptionT &&value)
AWS_OPENSEARCHSERVERLESS_API CreateCollectionGroupRequest()=default
CreateCollectionGroupRequest & WithClientToken(ClientTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector