Interface Citation.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Citation.Builder,,Citation> SdkBuilder<Citation.Builder,,Citation> SdkPojo
- Enclosing class:
Citation
@Mutable
@NotThreadSafe
public static interface Citation.Builder
extends SdkPojo, CopyableBuilder<Citation.Builder,Citation>
-
Method Summary
Modifier and TypeMethodDescriptiondefault Citation.BuildercitationSpan(Consumer<CitationSpan.Builder> citationSpan) Sets the value of the CitationSpan property for this object.citationSpan(CitationSpan citationSpan) Sets the value of the CitationSpan property for this object.The identifier of the content being cited.knowledgeBaseId(String knowledgeBaseId) The identifier of the knowledge base containing the cited content.referenceType(String referenceType) A type to define the KB origin of a cited contentreferenceType(ReferenceType referenceType) A type to define the KB origin of a cited contentThe source URL for the citation.The title of the cited content.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
-
contentId
The identifier of the content being cited.
- Parameters:
contentId- The identifier of the content being cited.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
title
The title of the cited content.
- Parameters:
title- The title of the cited content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
knowledgeBaseId
The identifier of the knowledge base containing the cited content.
- Parameters:
knowledgeBaseId- The identifier of the knowledge base containing the cited content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
citationSpan
Sets the value of the CitationSpan property for this object.- Parameters:
citationSpan- The new value for the CitationSpan property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
citationSpan
Sets the value of the CitationSpan property for this object. This is a convenience method that creates an instance of theCitationSpan.Builderavoiding the need to create one manually viaCitationSpan.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocitationSpan(CitationSpan).- Parameters:
citationSpan- a consumer that will call methods onCitationSpan.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sourceURL
The source URL for the citation.
- Parameters:
sourceURL- The source URL for the citation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
referenceType
A type to define the KB origin of a cited content
- Parameters:
referenceType- A type to define the KB origin of a cited content- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
referenceType
A type to define the KB origin of a cited content
- Parameters:
referenceType- A type to define the KB origin of a cited content- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-