Class ImageUrl.Builder
-
- All Implemented Interfaces:
public final class ImageUrl.Builder
A builder for ImageUrl.
-
-
Method Summary
Modifier and Type Method Description final ImageUrl.Builder
url(String url)
The external URL of the image, must be a supported image types: jpeg, jpg, png, gif, webp. final ImageUrl.Builder
url(JsonField<String> url)
Sets Builder.url to an arbitrary JSON value. final ImageUrl.Builder
detail(ImageUrl.Detail detail)
Specifies the detail level of the image. final ImageUrl.Builder
detail(JsonField<ImageUrl.Detail> detail)
Sets Builder.detail to an arbitrary JSON value. final ImageUrl.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final ImageUrl.Builder
putAdditionalProperty(String key, JsonValue value)
final ImageUrl.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final ImageUrl.Builder
removeAdditionalProperty(String key)
final ImageUrl.Builder
removeAllAdditionalProperties(Set<String> keys)
final ImageUrl
build()
Returns an immutable instance of ImageUrl. -
-
Method Detail
-
url
final ImageUrl.Builder url(String url)
The external URL of the image, must be a supported image types: jpeg, jpg, png, gif, webp.
-
url
final ImageUrl.Builder url(JsonField<String> url)
Sets Builder.url to an arbitrary JSON value.
You should usually call Builder.url with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
detail
final ImageUrl.Builder detail(ImageUrl.Detail detail)
Specifies the detail level of the image.
low
uses fewer tokens, you can opt in to high resolution usinghigh
. Default value isauto
-
detail
final ImageUrl.Builder detail(JsonField<ImageUrl.Detail> detail)
Sets Builder.detail to an arbitrary JSON value.
You should usually call Builder.detail with a well-typed Detail value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ImageUrl.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ImageUrl.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ImageUrl.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ImageUrl.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ImageUrl.Builder removeAllAdditionalProperties(Set<String> keys)
-
-
-
-