Class ImageUrlContentBlock.Builder
-
- All Implemented Interfaces:
public final class ImageUrlContentBlock.Builder
A builder for ImageUrlContentBlock.
-
-
Method Summary
Modifier and Type Method Description final ImageUrlContentBlock.Builder
imageUrl(ImageUrl imageUrl)
final ImageUrlContentBlock.Builder
imageUrl(JsonField<ImageUrl> imageUrl)
Sets Builder.imageUrl to an arbitrary JSON value. final ImageUrlContentBlock.Builder
type(JsonValue type)
Sets the field to an arbitrary JSON value. final ImageUrlContentBlock.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final ImageUrlContentBlock.Builder
putAdditionalProperty(String key, JsonValue value)
final ImageUrlContentBlock.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final ImageUrlContentBlock.Builder
removeAdditionalProperty(String key)
final ImageUrlContentBlock.Builder
removeAllAdditionalProperties(Set<String> keys)
final ImageUrlContentBlock
build()
Returns an immutable instance of ImageUrlContentBlock. -
-
Method Detail
-
imageUrl
final ImageUrlContentBlock.Builder imageUrl(ImageUrl imageUrl)
-
imageUrl
final ImageUrlContentBlock.Builder imageUrl(JsonField<ImageUrl> imageUrl)
Sets Builder.imageUrl to an arbitrary JSON value.
You should usually call Builder.imageUrl with a well-typed ImageUrl value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final ImageUrlContentBlock.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_url")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ImageUrlContentBlock.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ImageUrlContentBlock.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ImageUrlContentBlock.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ImageUrlContentBlock.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ImageUrlContentBlock.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ImageUrlContentBlock build()
Returns an immutable instance of ImageUrlContentBlock.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.imageUrl()
-
-
-
-