Interface CitationEvent.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CitationEvent.Builder,,CitationEvent> SdkBuilder<CitationEvent.Builder,,CitationEvent> SdkPojo
- All Known Subinterfaces:
DefaultCitation.Builder
- Enclosing class:
CitationEvent
public static interface CitationEvent.Builder
extends SdkPojo, CopyableBuilder<CitationEvent.Builder,CitationEvent>
-
Method Summary
Modifier and TypeMethodDescriptiondefault CitationEvent.Buildercitation(Consumer<Citation.Builder> citation) Deprecated.Citation is deprecated.Deprecated.Citation is deprecated.default CitationEvent.BuildergeneratedResponsePart(Consumer<GeneratedResponsePart.Builder> generatedResponsePart) The generated response to the citation event.generatedResponsePart(GeneratedResponsePart generatedResponsePart) The generated response to the citation event.retrievedReferences(Collection<RetrievedReference> retrievedReferences) The retrieved references of the citation event.retrievedReferences(Consumer<RetrievedReference.Builder>... retrievedReferences) The retrieved references of the citation event.retrievedReferences(RetrievedReference... retrievedReferences) The retrieved references of the citation event.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
-
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.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:
-
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:
-
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
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 toretrievedReferences(List<RetrievedReference>).- 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:
-