Interface CitationsContentBlock.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CitationsContentBlock.Builder,
,CitationsContentBlock> SdkBuilder<CitationsContentBlock.Builder,
,CitationsContentBlock> SdkPojo
- Enclosing class:
CitationsContentBlock
-
Method Summary
Modifier and TypeMethodDescriptioncitations
(Collection<Citation> citations) An array of citations that reference the source documents used to generate the associated content.citations
(Consumer<Citation.Builder>... citations) An array of citations that reference the source documents used to generate the associated content.An array of citations that reference the source documents used to generate the associated content.content
(Collection<CitationGeneratedContent> content) The generated content that is supported by the associated citations.content
(Consumer<CitationGeneratedContent.Builder>... content) The generated content that is supported by the associated citations.content
(CitationGeneratedContent... content) The generated content that is supported by the associated citations.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
-
content
The generated content that is supported by the associated citations.
- Parameters:
content
- The generated content that is supported by the associated citations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The generated content that is supported by the associated citations.
- Parameters:
content
- The generated content that is supported by the associated citations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
The generated content that is supported by the associated citations.
This is a convenience method that creates an instance of theCitationGeneratedContent.Builder
avoiding the need to create one manually viaCitationGeneratedContent.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontent(List<CitationGeneratedContent>)
.- Parameters:
content
- a consumer that will call methods onCitationGeneratedContent.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
citations
An array of citations that reference the source documents used to generate the associated content.
- Parameters:
citations
- An array of citations that reference the source documents used to generate the associated content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
citations
An array of citations that reference the source documents used to generate the associated content.
- Parameters:
citations
- An array of citations that reference the source documents used to generate the associated content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
citations
An array of citations that reference the source documents used to generate the associated content.
This is a convenience method that creates an instance of theCitation.Builder
avoiding the need to create one manually viaCitation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocitations(List<Citation>)
.- Parameters:
citations
- a consumer that will call methods onCitation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-