Interface EmbeddingModelConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<EmbeddingModelConfiguration.Builder,
,EmbeddingModelConfiguration> SdkBuilder<EmbeddingModelConfiguration.Builder,
,EmbeddingModelConfiguration> SdkPojo
- Enclosing class:
EmbeddingModelConfiguration
@Mutable
@NotThreadSafe
public static interface EmbeddingModelConfiguration.Builder
extends SdkPojo, CopyableBuilder<EmbeddingModelConfiguration.Builder,EmbeddingModelConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptionbedrockEmbeddingModelConfiguration
(Consumer<BedrockEmbeddingModelConfiguration.Builder> bedrockEmbeddingModelConfiguration) The vector configuration details on the Bedrock embeddings model.bedrockEmbeddingModelConfiguration
(BedrockEmbeddingModelConfiguration bedrockEmbeddingModelConfiguration) The vector configuration details on the Bedrock embeddings model.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
bedrockEmbeddingModelConfiguration
EmbeddingModelConfiguration.Builder bedrockEmbeddingModelConfiguration(BedrockEmbeddingModelConfiguration bedrockEmbeddingModelConfiguration) The vector configuration details on the Bedrock embeddings model.
- Parameters:
bedrockEmbeddingModelConfiguration
- The vector configuration details on the Bedrock embeddings model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bedrockEmbeddingModelConfiguration
default EmbeddingModelConfiguration.Builder bedrockEmbeddingModelConfiguration(Consumer<BedrockEmbeddingModelConfiguration.Builder> bedrockEmbeddingModelConfiguration) The vector configuration details on the Bedrock embeddings model.
This is a convenience method that creates an instance of theBedrockEmbeddingModelConfiguration.Builder
avoiding the need to create one manually viaBedrockEmbeddingModelConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobedrockEmbeddingModelConfiguration(BedrockEmbeddingModelConfiguration)
.- Parameters:
bedrockEmbeddingModelConfiguration
- a consumer that will call methods onBedrockEmbeddingModelConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-