Struct aws_sdk_opensearchserverless::operation::create_collection::builders::CreateCollectionInputBuilder
source · #[non_exhaustive]pub struct CreateCollectionInputBuilder { /* private fields */ }
Expand description
A builder for CreateCollectionInput
.
Implementations§
source§impl CreateCollectionInputBuilder
impl CreateCollectionInputBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
Name of the collection.
This field is required.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 standby_replicas(self, input: StandbyReplicas) -> Self
pub fn standby_replicas(self, input: StandbyReplicas) -> Self
Indicates whether standby replicas should be used for a collection.
sourcepub fn set_standby_replicas(self, input: Option<StandbyReplicas>) -> Self
pub fn set_standby_replicas(self, input: Option<StandbyReplicas>) -> Self
Indicates whether standby replicas should be used for a collection.
sourcepub fn get_standby_replicas(&self) -> &Option<StandbyReplicas>
pub fn get_standby_replicas(&self) -> &Option<StandbyReplicas>
Indicates whether standby replicas should be used for a 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.
sourcepub fn build(self) -> Result<CreateCollectionInput, BuildError>
pub fn build(self) -> Result<CreateCollectionInput, BuildError>
Consumes the builder and constructs a CreateCollectionInput
.
source§impl CreateCollectionInputBuilder
impl CreateCollectionInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateCollectionOutput, SdkError<CreateCollectionError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateCollectionOutput, SdkError<CreateCollectionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateCollectionInputBuilder
impl Clone for CreateCollectionInputBuilder
source§fn clone(&self) -> CreateCollectionInputBuilder
fn clone(&self) -> CreateCollectionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateCollectionInputBuilder
impl Debug for CreateCollectionInputBuilder
source§impl Default for CreateCollectionInputBuilder
impl Default for CreateCollectionInputBuilder
source§fn default() -> CreateCollectionInputBuilder
fn default() -> CreateCollectionInputBuilder
source§impl PartialEq for CreateCollectionInputBuilder
impl PartialEq for CreateCollectionInputBuilder
source§fn eq(&self, other: &CreateCollectionInputBuilder) -> bool
fn eq(&self, other: &CreateCollectionInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.