Class DocumentBlock.Builder
-
- All Implemented Interfaces:
public final class DocumentBlock.BuilderA builder for DocumentBlock.
-
-
Method Summary
Modifier and Type Method Description final DocumentBlock.Buildercitations(CitationsConfig citations)Citation configuration for the document final DocumentBlock.Buildercitations(Optional<CitationsConfig> citations)Alias for calling Builder.citations with citations.orElse(null).final DocumentBlock.Buildercitations(JsonField<CitationsConfig> citations)Sets Builder.citations to an arbitrary JSON value. final DocumentBlock.Buildersource(DocumentBlock.Source source)final DocumentBlock.Buildersource(JsonField<DocumentBlock.Source> source)Sets Builder.source to an arbitrary JSON value. final DocumentBlock.Buildersource(Base64PdfSource base64)Alias for calling source with Source.ofBase64(base64).final DocumentBlock.Buildersource(PlainTextSource text)Alias for calling source with Source.ofText(text).final DocumentBlock.Builderbase64Source(String data)Alias for calling source with the following: Base64PdfSource.builder() .data(data) .build()final DocumentBlock.BuildertextSource(String data)Alias for calling source with the following: PlainTextSource.builder() .data(data) .build()final DocumentBlock.Buildertitle(String title)The title of the document final DocumentBlock.Buildertitle(Optional<String> title)Alias for calling Builder.title with title.orElse(null).final DocumentBlock.Buildertitle(JsonField<String> title)Sets Builder.title to an arbitrary JSON value. final DocumentBlock.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final DocumentBlock.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final DocumentBlock.BuilderputAdditionalProperty(String key, JsonValue value)final DocumentBlock.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final DocumentBlock.BuilderremoveAdditionalProperty(String key)final DocumentBlock.BuilderremoveAllAdditionalProperties(Set<String> keys)final DocumentBlockbuild()Returns an immutable instance of DocumentBlock. -
-
Method Detail
-
citations
final DocumentBlock.Builder citations(CitationsConfig citations)
Citation configuration for the document
-
citations
final DocumentBlock.Builder citations(Optional<CitationsConfig> citations)
Alias for calling Builder.citations with
citations.orElse(null).
-
citations
final DocumentBlock.Builder citations(JsonField<CitationsConfig> citations)
Sets Builder.citations to an arbitrary JSON value.
You should usually call Builder.citations with a well-typed CitationsConfig value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
source
final DocumentBlock.Builder source(DocumentBlock.Source source)
-
source
final DocumentBlock.Builder source(JsonField<DocumentBlock.Source> source)
Sets Builder.source to an arbitrary JSON value.
You should usually call Builder.source with a well-typed Source value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
source
final DocumentBlock.Builder source(Base64PdfSource base64)
Alias for calling source with
Source.ofBase64(base64).
-
source
final DocumentBlock.Builder source(PlainTextSource text)
Alias for calling source with
Source.ofText(text).
-
base64Source
final DocumentBlock.Builder base64Source(String data)
Alias for calling source with the following:
Base64PdfSource.builder() .data(data) .build()
-
textSource
final DocumentBlock.Builder textSource(String data)
Alias for calling source with the following:
PlainTextSource.builder() .data(data) .build()
-
title
final DocumentBlock.Builder title(String title)
The title of the document
-
title
final DocumentBlock.Builder title(Optional<String> title)
Alias for calling Builder.title with
title.orElse(null).
-
title
final DocumentBlock.Builder title(JsonField<String> title)
Sets Builder.title to an arbitrary JSON value.
You should usually call Builder.title with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final DocumentBlock.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("document")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final DocumentBlock.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final DocumentBlock.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final DocumentBlock.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final DocumentBlock.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final DocumentBlock.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final DocumentBlock build()
Returns an immutable instance of DocumentBlock.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.citations() .source() .title()
-
-
-
-