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.Builder
contentReference
(Consumer<ContentReference.Builder> contentReference) A reference to the content resource.contentReference
(ContentReference contentReference) A reference to the content resource.default Document.Builder
excerpt
(Consumer<DocumentText.Builder> excerpt) The excerpt from the document.excerpt
(DocumentText excerpt) The excerpt from the document.default Document.Builder
title
(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
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods 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.Builder
avoiding the need to create one manually viaContentReference.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaDocumentText.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaDocumentText.builder()
.When the
Consumer
completes,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:
-