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>
20namespace OpenSearchServerless {
45 template <
typename NameT = Aws::String>
47 m_nameHasBeenSet =
true;
48 m_name = std::forward<NameT>(value);
50 template <
typename NameT = Aws::String>
52 SetName(std::forward<NameT>(value));
64 m_standbyReplicasHasBeenSet =
true;
65 m_standbyReplicas = value;
79 template <
typename DescriptionT = Aws::String>
81 m_descriptionHasBeenSet =
true;
82 m_description = std::forward<DescriptionT>(value);
84 template <
typename DescriptionT = Aws::String>
98 template <
typename TagsT = Aws::Vector<Tag>>
100 m_tagsHasBeenSet =
true;
101 m_tags = std::forward<TagsT>(value);
103 template <
typename TagsT = Aws::Vector<Tag>>
105 SetTags(std::forward<TagsT>(value));
108 template <
typename TagsT = Tag>
110 m_tagsHasBeenSet =
true;
111 m_tags.emplace_back(std::forward<TagsT>(value));
124 template <
typename CapacityLimitsT = CollectionGroupCapacityLimits>
126 m_capacityLimitsHasBeenSet =
true;
127 m_capacityLimits = std::forward<CapacityLimitsT>(value);
129 template <
typename CapacityLimitsT = CollectionGroupCapacityLimits>
144 m_generationHasBeenSet =
true;
145 m_generation = value;
159 template <
typename ClientTokenT = Aws::String>
161 m_clientTokenHasBeenSet =
true;
162 m_clientToken = std::forward<ClientTokenT>(value);
164 template <
typename ClientTokenT = Aws::String>
179 CollectionGroupCapacityLimits m_capacityLimits;
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;
bool StandbyReplicasHasBeenSet() const
CreateCollectionGroupRequest & WithStandbyReplicas(StandbyReplicas value)
const CollectionGroupCapacityLimits & GetCapacityLimits() const
const Aws::String & GetDescription() const
void SetName(NameT &&value)
const Aws::Vector< Tag > & GetTags() const
StandbyReplicas GetStandbyReplicas() const
bool CapacityLimitsHasBeenSet() const
CreateCollectionGroupRequest & AddTags(TagsT &&value)
bool GenerationHasBeenSet() const
AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
bool ClientTokenHasBeenSet() const
CreateCollectionGroupRequest & WithCapacityLimits(CapacityLimitsT &&value)
bool DescriptionHasBeenSet() const
const Aws::String & GetClientToken() const
CreateCollectionGroupRequest & WithTags(TagsT &&value)
const Aws::String & GetName() const
CreateCollectionGroupRequest & WithGeneration(ServerlessGeneration value)
void SetDescription(DescriptionT &&value)
void SetTags(TagsT &&value)
void SetStandbyReplicas(StandbyReplicas value)
AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override
void SetClientToken(ClientTokenT &&value)
CreateCollectionGroupRequest & WithName(NameT &&value)
bool TagsHasBeenSet() const
void SetCapacityLimits(CapacityLimitsT &&value)
bool NameHasBeenSet() const
ServerlessGeneration GetGeneration() const
CreateCollectionGroupRequest & WithDescription(DescriptionT &&value)
virtual const char * GetServiceRequestName() const override
AWS_OPENSEARCHSERVERLESS_API CreateCollectionGroupRequest()=default
void SetGeneration(ServerlessGeneration value)
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