Class ImageBlockParam.Builder
-
- All Implemented Interfaces:
public final class ImageBlockParam.BuilderA builder for ImageBlockParam.
-
-
Method Summary
-
-
Method Detail
-
source
final ImageBlockParam.Builder source(ImageBlockParam.Source source)
-
source
final ImageBlockParam.Builder source(JsonField<ImageBlockParam.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 ImageBlockParam.Builder source(Base64ImageSource base64)
Alias for calling source with
Source.ofBase64(base64).
-
source
final ImageBlockParam.Builder source(UrlImageSource url)
Alias for calling source with
Source.ofUrl(url).
-
urlSource
final ImageBlockParam.Builder urlSource(String url)
Alias for calling source with the following:
UrlImageSource.builder() .url(url) .build()
-
type
final ImageBlockParam.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 ImageBlockParam.Builder cacheControl(CacheControlEphemeral cacheControl)
Create a cache control breakpoint at this content block.
-
cacheControl
final ImageBlockParam.Builder cacheControl(Optional<CacheControlEphemeral> cacheControl)
Alias for calling Builder.cacheControl with
cacheControl.orElse(null).
-
cacheControl
final ImageBlockParam.Builder cacheControl(JsonField<CacheControlEphemeral> cacheControl)
Sets Builder.cacheControl to an arbitrary JSON value.
You should usually call Builder.cacheControl with a well-typed CacheControlEphemeral value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ImageBlockParam.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ImageBlockParam.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ImageBlockParam.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ImageBlockParam.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ImageBlockParam.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ImageBlockParam build()
Returns an immutable instance of ImageBlockParam.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.source()
-
-
-
-