Class BetaRequestDocumentBlock.Builder
-
- All Implemented Interfaces:
public final class BetaRequestDocumentBlock.BuilderA builder for BetaRequestDocumentBlock.
-
-
Method Summary
-
-
Method Detail
-
source
final BetaRequestDocumentBlock.Builder source(BetaRequestDocumentBlock.Source source)
-
source
final BetaRequestDocumentBlock.Builder source(JsonField<BetaRequestDocumentBlock.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 BetaRequestDocumentBlock.Builder source(BetaBase64PdfSource base64)
Alias for calling source with
Source.ofBase64(base64).
-
source
final BetaRequestDocumentBlock.Builder source(BetaPlainTextSource text)
Alias for calling source with
Source.ofText(text).
-
source
final BetaRequestDocumentBlock.Builder source(BetaContentBlockSource content)
Alias for calling source with
Source.ofContent(content).
-
source
final BetaRequestDocumentBlock.Builder source(BetaUrlPdfSource url)
Alias for calling source with
Source.ofUrl(url).
-
source
final BetaRequestDocumentBlock.Builder source(BetaFileDocumentSource file)
Alias for calling source with
Source.ofFile(file).
-
base64Source
final BetaRequestDocumentBlock.Builder base64Source(String data)
Alias for calling source with the following:
BetaBase64PdfSource.builder() .data(data) .build()
-
textSource
final BetaRequestDocumentBlock.Builder textSource(String data)
Alias for calling source with the following:
BetaPlainTextSource.builder() .data(data) .build()
-
contentSource
final BetaRequestDocumentBlock.Builder contentSource(BetaContentBlockSource.Content content)
Alias for calling source with the following:
BetaContentBlockSource.builder() .content(content) .build()
-
contentSource
final BetaRequestDocumentBlock.Builder contentSource(String string)
Alias for calling contentSource with
BetaContentBlockSource.Content.ofString(string).
-
contentSourceOfBetaContentBlockSource
final BetaRequestDocumentBlock.Builder contentSourceOfBetaContentBlockSource(List<BetaContentBlockSourceContent> betaContentBlockSource)
Alias for calling contentSource with
BetaContentBlockSource.Content.ofBetaContentBlockSource(betaContentBlockSource).
-
urlSource
final BetaRequestDocumentBlock.Builder urlSource(String url)
Alias for calling source with the following:
BetaUrlPdfSource.builder() .url(url) .build()
-
fileSource
final BetaRequestDocumentBlock.Builder fileSource(String fileId)
Alias for calling source with the following:
BetaFileDocumentSource.builder() .fileId(fileId) .build()
-
type
final BetaRequestDocumentBlock.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.
-
cacheControl
final BetaRequestDocumentBlock.Builder cacheControl(BetaCacheControlEphemeral cacheControl)
Create a cache control breakpoint at this content block.
-
cacheControl
final BetaRequestDocumentBlock.Builder cacheControl(Optional<BetaCacheControlEphemeral> cacheControl)
Alias for calling Builder.cacheControl with
cacheControl.orElse(null).
-
cacheControl
final BetaRequestDocumentBlock.Builder cacheControl(JsonField<BetaCacheControlEphemeral> cacheControl)
Sets Builder.cacheControl to an arbitrary JSON value.
You should usually call Builder.cacheControl with a well-typed BetaCacheControlEphemeral value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
citations
final BetaRequestDocumentBlock.Builder citations(BetaCitationsConfigParam citations)
-
citations
final BetaRequestDocumentBlock.Builder citations(JsonField<BetaCitationsConfigParam> citations)
Sets Builder.citations to an arbitrary JSON value.
You should usually call Builder.citations with a well-typed BetaCitationsConfigParam value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
context
final BetaRequestDocumentBlock.Builder context(String context)
-
context
final BetaRequestDocumentBlock.Builder context(Optional<String> context)
Alias for calling Builder.context with
context.orElse(null).
-
context
final BetaRequestDocumentBlock.Builder context(JsonField<String> context)
Sets Builder.context to an arbitrary JSON value.
You should usually call Builder.context with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
title
final BetaRequestDocumentBlock.Builder title(String title)
-
title
final BetaRequestDocumentBlock.Builder title(Optional<String> title)
Alias for calling Builder.title with
title.orElse(null).
-
title
final BetaRequestDocumentBlock.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.
-
additionalProperties
final BetaRequestDocumentBlock.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaRequestDocumentBlock.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaRequestDocumentBlock.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaRequestDocumentBlock.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaRequestDocumentBlock.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaRequestDocumentBlock build()
Returns an immutable instance of BetaRequestDocumentBlock.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.source()
-
-
-
-