pub struct Builder { /* private fields */ }
Expand description
A builder for CreateCollectionInput
.
Implementations§
source§impl Builder
impl Builder
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 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.
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.
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 build(self) -> Result<CreateCollectionInput, BuildError>
pub fn build(self) -> Result<CreateCollectionInput, BuildError>
Consumes the builder and constructs a CreateCollectionInput
.