Interface Document.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Document.Builder,,Document> SdkBuilder<Document.Builder,,Document> SdkPojo
- Enclosing class:
Document
public static interface Document.Builder
extends SdkPojo, CopyableBuilder<Document.Builder,Document>
-
Method Summary
Modifier and TypeMethodDescriptiondefault Document.BuildercontentReference(Consumer<ContentReference.Builder> contentReference) A reference to the content resource.contentReference(ContentReference contentReference) A reference to the content resource.default Document.Builderexcerpt(Consumer<DocumentText.Builder> excerpt) The excerpt from the document.excerpt(DocumentText excerpt) The excerpt from the document.default Document.Buildertitle(Consumer<DocumentText.Builder> title) The title of the document.title(DocumentText title) The title of the document.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, sdkFields
-
Method Details
-
contentReference
A reference to the content resource.
- Parameters:
contentReference- A reference to the content resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentReference
A reference to the content resource.
This is a convenience method that creates an instance of theContentReference.Builderavoiding the need to create one manually viaContentReference.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontentReference(ContentReference).- Parameters:
contentReference- a consumer that will call methods onContentReference.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
excerpt
The excerpt from the document.
- Parameters:
excerpt- The excerpt from the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excerpt
The excerpt from the document.
This is a convenience method that creates an instance of theDocumentText.Builderavoiding the need to create one manually viaDocumentText.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toexcerpt(DocumentText).- Parameters:
excerpt- a consumer that will call methods onDocumentText.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
title
The title of the document.
- Parameters:
title- The title of the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
title
The title of the document.
This is a convenience method that creates an instance of theDocumentText.Builderavoiding the need to create one manually viaDocumentText.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totitle(DocumentText).- Parameters:
title- a consumer that will call methods onDocumentText.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-