Interface DocumentBlock.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<DocumentBlock.Builder,
,DocumentBlock> SdkBuilder<DocumentBlock.Builder,
,DocumentBlock> SdkPojo
- Enclosing class:
DocumentBlock
-
Method Summary
Modifier and TypeMethodDescriptionThe format of a document, or its extension.format
(DocumentFormat format) The format of a document, or its extension.A name for the document.default DocumentBlock.Builder
source
(Consumer<DocumentSource.Builder> source) Contains the content of the document.source
(DocumentSource source) Contains the content 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
-
format
The format of a document, or its extension.
- Parameters:
format
- The format of a document, or its extension.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
format
The format of a document, or its extension.
- Parameters:
format
- The format of a document, or its extension.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
name
A name for the document. The name can only contain the following characters:
-
Alphanumeric characters
-
Whitespace characters (no more than one in a row)
-
Hyphens
-
Parentheses
-
Square brackets
This field is vulnerable to prompt injections, because the model might inadvertently interpret it as instructions. Therefore, we recommend that you specify a neutral name.
- Parameters:
name
- A name for the document. The name can only contain the following characters:-
Alphanumeric characters
-
Whitespace characters (no more than one in a row)
-
Hyphens
-
Parentheses
-
Square brackets
This field is vulnerable to prompt injections, because the model might inadvertently interpret it as instructions. Therefore, we recommend that you specify a neutral name.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
source
Contains the content of the document.
- Parameters:
source
- Contains the content of the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
Contains the content of the document.
This is a convenience method that creates an instance of theDocumentSource.Builder
avoiding the need to create one manually viaDocumentSource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosource(DocumentSource)
.- Parameters:
source
- a consumer that will call methods onDocumentSource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-