Interface CitationEvent.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CitationEvent.Builder,CitationEvent>,SdkBuilder<CitationEvent.Builder,CitationEvent>,SdkPojo
- All Known Subinterfaces:
DefaultCitation.Builder
- All Known Implementing Classes:
CitationEvent.BuilderImpl
- Enclosing class:
- CitationEvent
@Mutable @NotThreadSafe public static interface CitationEvent.Builder extends SdkPojo, CopyableBuilder<CitationEvent.Builder,CitationEvent>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default CitationEvent.Buildercitation(Consumer<Citation.Builder> citation)Deprecated.Citation is deprecated.CitationEvent.Buildercitation(Citation citation)Deprecated.Citation is deprecated.default CitationEvent.BuildergeneratedResponsePart(Consumer<GeneratedResponsePart.Builder> generatedResponsePart)The generated response to the citation event.CitationEvent.BuildergeneratedResponsePart(GeneratedResponsePart generatedResponsePart)The generated response to the citation event.CitationEvent.BuilderretrievedReferences(Collection<RetrievedReference> retrievedReferences)The retrieved references of the citation event.CitationEvent.BuilderretrievedReferences(Consumer<RetrievedReference.Builder>... retrievedReferences)The retrieved references of the citation event.CitationEvent.BuilderretrievedReferences(RetrievedReference... retrievedReferences)The retrieved references of the citation event.-
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
-
citation
@Deprecated CitationEvent.Builder citation(Citation citation)
Deprecated.Citation is deprecated. Please use GeneratedResponsePart and RetrievedReferences for citation event.The citation.
- Parameters:
citation- The citation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
citation
@Deprecated default CitationEvent.Builder citation(Consumer<Citation.Builder> citation)
Deprecated.Citation is deprecated. Please use GeneratedResponsePart and RetrievedReferences for citation event.The citation.
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 tocitation(Citation).- Parameters:
citation- 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:
citation(Citation)
-
generatedResponsePart
CitationEvent.Builder generatedResponsePart(GeneratedResponsePart generatedResponsePart)
The generated response to the citation event.
- Parameters:
generatedResponsePart- The generated response to the citation event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
generatedResponsePart
default CitationEvent.Builder generatedResponsePart(Consumer<GeneratedResponsePart.Builder> generatedResponsePart)
The generated response to the citation event.
This is a convenience method that creates an instance of theGeneratedResponsePart.Builderavoiding the need to create one manually viaGeneratedResponsePart.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed togeneratedResponsePart(GeneratedResponsePart).- Parameters:
generatedResponsePart- a consumer that will call methods onGeneratedResponsePart.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
generatedResponsePart(GeneratedResponsePart)
-
retrievedReferences
CitationEvent.Builder retrievedReferences(Collection<RetrievedReference> retrievedReferences)
The retrieved references of the citation event.
- Parameters:
retrievedReferences- The retrieved references of the citation event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retrievedReferences
CitationEvent.Builder retrievedReferences(RetrievedReference... retrievedReferences)
The retrieved references of the citation event.
- Parameters:
retrievedReferences- The retrieved references of the citation event.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retrievedReferences
CitationEvent.Builder retrievedReferences(Consumer<RetrievedReference.Builder>... retrievedReferences)
The retrieved references of the citation event.
This is a convenience method that creates an instance of theRetrievedReference.Builderavoiding the need to create one manually viaRetrievedReference.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#retrievedReferences(List.) - Parameters:
retrievedReferences- a consumer that will call methods onRetrievedReference.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#retrievedReferences(java.util.Collection)
-
-