Interface CreateCollectionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateCollectionRequest.Builder,
,CreateCollectionRequest> OpenSearchServerlessRequest.Builder
,SdkBuilder<CreateCollectionRequest.Builder,
,CreateCollectionRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateCollectionRequest
public static interface CreateCollectionRequest.Builder
extends OpenSearchServerlessRequest.Builder, SdkPojo, CopyableBuilder<CreateCollectionRequest.Builder,CreateCollectionRequest>
-
Method Summary
Modifier and TypeMethodDescriptionclientToken
(String clientToken) Unique, case-sensitive identifier to ensure idempotency of the request.description
(String description) Description of the collection.Name of the collection.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.tags
(Collection<Tag> tags) An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Serverless collection.tags
(Consumer<Tag.Builder>... 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.The type of collection.type
(CollectionType type) The type of collection.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.opensearchserverless.model.OpenSearchServerlessRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
clientToken
Unique, case-sensitive identifier to ensure idempotency of the request.
- Parameters:
clientToken
- Unique, case-sensitive identifier to ensure idempotency of the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
Description of the collection.
- Parameters:
description
- Description of the collection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
Name of the collection.
- Parameters:
name
- Name of the collection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Serverless collection.
- Parameters:
tags
- An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Serverless collection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Serverless collection.
- Parameters:
tags
- An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Serverless collection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Serverless collection.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of collection.
- Parameters:
type
- The type of collection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of collection.
- Parameters:
type
- The type of collection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateCollectionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateCollectionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-