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/CollectionType.h>
13#include <aws/opensearchserverless/model/StandbyReplicas.h>
14#include <aws/opensearchserverless/model/Tag.h>
15#include <aws/opensearchserverless/model/VectorOptions.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_typeHasBeenSet =
true;
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));
123 m_standbyReplicasHasBeenSet =
true;
124 m_standbyReplicas = value;
138 template <
typename VectorOptionsT = VectorOptions>
140 m_vectorOptionsHasBeenSet =
true;
141 m_vectorOptions = std::forward<VectorOptionsT>(value);
143 template <
typename VectorOptionsT = VectorOptions>
156 template <
typename ClientTokenT = Aws::String>
158 m_clientTokenHasBeenSet =
true;
159 m_clientToken = std::forward<ClientTokenT>(value);
161 template <
typename ClientTokenT = Aws::String>
178 VectorOptions m_vectorOptions;
181 bool m_nameHasBeenSet =
false;
182 bool m_typeHasBeenSet =
false;
183 bool m_descriptionHasBeenSet =
false;
184 bool m_tagsHasBeenSet =
false;
185 bool m_standbyReplicasHasBeenSet =
false;
186 bool m_vectorOptionsHasBeenSet =
false;
187 bool m_clientTokenHasBeenSet =
true;
void SetTags(TagsT &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
bool StandbyReplicasHasBeenSet() const
void SetStandbyReplicas(StandbyReplicas value)
const VectorOptions & GetVectorOptions() const
CreateCollectionRequest & WithClientToken(ClientTokenT &&value)
void SetDescription(DescriptionT &&value)
void SetName(NameT &&value)
void SetType(CollectionType value)
bool TagsHasBeenSet() const
bool NameHasBeenSet() const
const Aws::String & GetName() const
void SetVectorOptions(VectorOptionsT &&value)
CollectionType GetType() const
CreateCollectionRequest & WithName(NameT &&value)
void SetClientToken(ClientTokenT &&value)
CreateCollectionRequest & WithStandbyReplicas(StandbyReplicas value)
bool VectorOptionsHasBeenSet() const
CreateCollectionRequest & WithType(CollectionType value)
bool TypeHasBeenSet() const
bool DescriptionHasBeenSet() const
bool ClientTokenHasBeenSet() const
const Aws::String & GetDescription() const
CreateCollectionRequest & WithDescription(DescriptionT &&value)
CreateCollectionRequest & WithVectorOptions(VectorOptionsT &&value)
CreateCollectionRequest & AddTags(TagsT &&value)
CreateCollectionRequest & WithTags(TagsT &&value)
const Aws::Vector< Tag > & GetTags() const
StandbyReplicas GetStandbyReplicas() const
AWS_OPENSEARCHSERVERLESS_API CreateCollectionRequest()=default
const Aws::String & GetClientToken() const
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