Class BetaImageBlockParam.Builder
-
- All Implemented Interfaces:
public final class BetaImageBlockParam.BuilderA builder for BetaImageBlockParam.
-
-
Method Summary
-
-
Method Detail
-
source
final BetaImageBlockParam.Builder source(BetaImageBlockParam.Source source)
-
source
final BetaImageBlockParam.Builder source(JsonField<BetaImageBlockParam.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 BetaImageBlockParam.Builder source(BetaBase64ImageSource base64)
Alias for calling source with
Source.ofBase64(base64).
-
source
final BetaImageBlockParam.Builder source(BetaUrlImageSource url)
Alias for calling source with
Source.ofUrl(url).
-
source
final BetaImageBlockParam.Builder source(BetaFileImageSource file)
Alias for calling source with
Source.ofFile(file).
-
urlSource
final BetaImageBlockParam.Builder urlSource(String url)
Alias for calling source with the following:
BetaUrlImageSource.builder() .url(url) .build()
-
fileSource
final BetaImageBlockParam.Builder fileSource(String fileId)
Alias for calling source with the following:
BetaFileImageSource.builder() .fileId(fileId) .build()
-
type
final BetaImageBlockParam.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("image")This method is primarily for setting the field to an undocumented or not yet supported value.
-
cacheControl
final BetaImageBlockParam.Builder cacheControl(BetaCacheControlEphemeral cacheControl)
Create a cache control breakpoint at this content block.
-
cacheControl
final BetaImageBlockParam.Builder cacheControl(Optional<BetaCacheControlEphemeral> cacheControl)
Alias for calling Builder.cacheControl with
cacheControl.orElse(null).
-
cacheControl
final BetaImageBlockParam.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.
-
additionalProperties
final BetaImageBlockParam.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaImageBlockParam.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaImageBlockParam.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaImageBlockParam.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaImageBlockParam.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaImageBlockParam build()
Returns an immutable instance of BetaImageBlockParam.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.source()
-
-
-
-