Interface GenerativeConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<GenerativeConfiguration.Builder,,GenerativeConfiguration> SdkBuilder<GenerativeConfiguration.Builder,,GenerativeConfiguration> SdkPojo
- Enclosing class:
GenerativeConfiguration
-
Method Summary
Modifier and TypeMethodDescriptiondefault GenerativeConfiguration.BuilderfigureCaption(Consumer<FigureCaptionConfiguration.Builder> figureCaption) Controls whether generative captions are produced for figures detected in the document.figureCaption(FigureCaptionConfiguration figureCaption) Controls whether generative captions are produced for figures detected in the document.default GenerativeConfiguration.Buildersummarization(Consumer<SummarizationConfiguration.Builder> summarization) Controls whether a generative summary of the document is produced.summarization(SummarizationConfiguration summarization) Controls whether a generative summary of the document is produced.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
summarization
Controls whether a generative summary of the document is produced. If you omit it, no summary is produced.
- Parameters:
summarization- Controls whether a generative summary of the document is produced. If you omit it, no summary is produced.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
summarization
default GenerativeConfiguration.Builder summarization(Consumer<SummarizationConfiguration.Builder> summarization) Controls whether a generative summary of the document is produced. If you omit it, no summary is produced.
This is a convenience method that creates an instance of theSummarizationConfiguration.Builderavoiding the need to create one manually viaSummarizationConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosummarization(SummarizationConfiguration).- Parameters:
summarization- a consumer that will call methods onSummarizationConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
figureCaption
Controls whether generative captions are produced for figures detected in the document. If you omit it, no figure captions are produced.
- Parameters:
figureCaption- Controls whether generative captions are produced for figures detected in the document. If you omit it, no figure captions are produced.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
figureCaption
default GenerativeConfiguration.Builder figureCaption(Consumer<FigureCaptionConfiguration.Builder> figureCaption) Controls whether generative captions are produced for figures detected in the document. If you omit it, no figure captions are produced.
This is a convenience method that creates an instance of theFigureCaptionConfiguration.Builderavoiding the need to create one manually viaFigureCaptionConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofigureCaption(FigureCaptionConfiguration).- Parameters:
figureCaption- a consumer that will call methods onFigureCaptionConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-