Interface CitationsContentBlock.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CitationsContentBlock.Builder,CitationsContentBlock>,SdkBuilder<CitationsContentBlock.Builder,CitationsContentBlock>,SdkPojo
- Enclosing class:
- CitationsContentBlock
@Mutable @NotThreadSafe public static interface CitationsContentBlock.Builder extends SdkPojo, CopyableBuilder<CitationsContentBlock.Builder,CitationsContentBlock>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CitationsContentBlock.Buildercitations(Collection<Citation> citations)An array of citations that reference the source documents used to generate the associated content.CitationsContentBlock.Buildercitations(Consumer<Citation.Builder>... citations)An array of citations that reference the source documents used to generate the associated content.CitationsContentBlock.Buildercitations(Citation... citations)An array of citations that reference the source documents used to generate the associated content.CitationsContentBlock.Buildercontent(Collection<CitationGeneratedContent> content)The generated content that is supported by the associated citations.CitationsContentBlock.Buildercontent(Consumer<CitationGeneratedContent.Builder>... content)The generated content that is supported by the associated citations.CitationsContentBlock.Buildercontent(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 Detail
-
content
CitationsContentBlock.Builder content(Collection<CitationGeneratedContent> 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
CitationsContentBlock.Builder content(CitationGeneratedContent... 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
CitationsContentBlock.Builder content(Consumer<CitationGeneratedContent.Builder>... content)
The generated content that is supported by the associated citations.
This is a convenience method that creates an instance of theCitationGeneratedContent.Builderavoiding the need to create one manually viaCitationGeneratedContent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#content(List.) - 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:
#content(java.util.Collection)
-
citations
CitationsContentBlock.Builder citations(Collection<Citation> 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
CitationsContentBlock.Builder citations(Citation... 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
CitationsContentBlock.Builder citations(Consumer<Citation.Builder>... 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.Builderavoiding the need to create one manually viaCitation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#citations(List.) - 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:
#citations(java.util.Collection)
-
-