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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Document.BuildercontentReference(Consumer<ContentReference.Builder> contentReference)A reference to the content resource.Document.BuildercontentReference(ContentReference contentReference)A reference to the content resource.default Document.Builderexcerpt(Consumer<DocumentText.Builder> excerpt)The excerpt from the document.Document.Builderexcerpt(DocumentText excerpt)The excerpt from the document.default Document.Buildertitle(Consumer<DocumentText.Builder> title)The title of the document.Document.Buildertitle(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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
contentReference
Document.Builder contentReference(ContentReference 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
default Document.Builder contentReference(Consumer<ContentReference.Builder> 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:
contentReference(ContentReference)
-
excerpt
Document.Builder excerpt(DocumentText 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
default Document.Builder excerpt(Consumer<DocumentText.Builder> 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:
excerpt(DocumentText)
-
title
Document.Builder title(DocumentText 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
default Document.Builder title(Consumer<DocumentText.Builder> 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:
title(DocumentText)
-
-