Interface BedrockFoundationModelConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<BedrockFoundationModelConfiguration.Builder,
,BedrockFoundationModelConfiguration> SdkBuilder<BedrockFoundationModelConfiguration.Builder,
,BedrockFoundationModelConfiguration> SdkPojo
- Enclosing class:
BedrockFoundationModelConfiguration
@Mutable
@NotThreadSafe
public static interface BedrockFoundationModelConfiguration.Builder
extends SdkPojo, CopyableBuilder<BedrockFoundationModelConfiguration.Builder,BedrockFoundationModelConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptionThe ARN of the foundation model to use for parsing.parsingModality
(String parsingModality) Specifies whether to enable parsing of multimodal data, including both text and/or images.parsingModality
(ParsingModality parsingModality) Specifies whether to enable parsing of multimodal data, including both text and/or images.parsingPrompt
(Consumer<ParsingPrompt.Builder> parsingPrompt) Instructions for interpreting the contents of a document.parsingPrompt
(ParsingPrompt parsingPrompt) Instructions for interpreting the contents of a document.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
-
modelArn
The ARN of the foundation model to use for parsing.
- Parameters:
modelArn
- The ARN of the foundation model to use for parsing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parsingModality
Specifies whether to enable parsing of multimodal data, including both text and/or images.
- Parameters:
parsingModality
- Specifies whether to enable parsing of multimodal data, including both text and/or images.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
parsingModality
Specifies whether to enable parsing of multimodal data, including both text and/or images.
- Parameters:
parsingModality
- Specifies whether to enable parsing of multimodal data, including both text and/or images.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
parsingPrompt
Instructions for interpreting the contents of a document.
- Parameters:
parsingPrompt
- Instructions for interpreting the contents of a document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parsingPrompt
default BedrockFoundationModelConfiguration.Builder parsingPrompt(Consumer<ParsingPrompt.Builder> parsingPrompt) Instructions for interpreting the contents of a document.
This is a convenience method that creates an instance of theParsingPrompt.Builder
avoiding the need to create one manually viaParsingPrompt.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toparsingPrompt(ParsingPrompt)
.- Parameters:
parsingPrompt
- a consumer that will call methods onParsingPrompt.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-