Struct aws_sdk_opensearchserverless::operation::create_collection::builders::CreateCollectionFluentBuilder
source · pub struct CreateCollectionFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateCollection
.
Creates a new OpenSearch Serverless collection. For more information, see Creating and managing Amazon OpenSearch Serverless collections.
Implementations§
source§impl CreateCollectionFluentBuilder
impl CreateCollectionFluentBuilder
sourcepub fn as_input(&self) -> &CreateCollectionInputBuilder
pub fn as_input(&self) -> &CreateCollectionInputBuilder
Access the CreateCollection as a reference.
sourcepub async fn send(
self
) -> Result<CreateCollectionOutput, SdkError<CreateCollectionError, HttpResponse>>
pub async fn send( self ) -> Result<CreateCollectionOutput, SdkError<CreateCollectionError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<CreateCollectionOutput, CreateCollectionError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateCollectionOutput, CreateCollectionError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn type(self, input: CollectionType) -> Self
pub fn type(self, input: CollectionType) -> Self
The type of collection.
sourcepub fn set_type(self, input: Option<CollectionType>) -> Self
pub fn set_type(self, input: Option<CollectionType>) -> Self
The type of collection.
sourcepub fn get_type(&self) -> &Option<CollectionType>
pub fn get_type(&self) -> &Option<CollectionType>
The type of collection.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
Description of the collection.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
Description of the collection.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
Description of the collection.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Serverless collection.
An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Serverless collection.
An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Serverless collection.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
Unique, case-sensitive identifier to ensure idempotency of the request.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
Unique, case-sensitive identifier to ensure idempotency of the request.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
Unique, case-sensitive identifier to ensure idempotency of the request.
Trait Implementations§
source§impl Clone for CreateCollectionFluentBuilder
impl Clone for CreateCollectionFluentBuilder
source§fn clone(&self) -> CreateCollectionFluentBuilder
fn clone(&self) -> CreateCollectionFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more