Class ImageUrlContentBlock
-
- All Implemented Interfaces:
public final class ImageUrlContentBlock
References an image URL in the content of a message.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ImageUrlContentBlock.Builder
A builder for ImageUrlContentBlock.
-
Method Summary
Modifier and Type Method Description final ImageUrl
imageUrl()
final JsonValue
_type()
The type of the content part. final JsonField<ImageUrl>
_imageUrl()
Returns the raw JSON value of imageUrl. final Map<String, JsonValue>
_additionalProperties()
final ImageUrlContentBlock.Builder
toBuilder()
final ImageUrlContentBlock
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ImageUrlContentBlock.Builder
builder()
Returns a mutable builder for constructing an instance of ImageUrlContentBlock. -
-
Method Detail
-
_type
final JsonValue _type()
The type of the content part.
Expected to always return the following:
JsonValue.from("image_url")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_imageUrl
final JsonField<ImageUrl> _imageUrl()
Returns the raw JSON value of imageUrl.
Unlike imageUrl, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ImageUrlContentBlock.Builder toBuilder()
-
validate
final ImageUrlContentBlock validate()
-
builder
final static ImageUrlContentBlock.Builder builder()
Returns a mutable builder for constructing an instance of ImageUrlContentBlock.
The following fields are required:
.imageUrl()
-
-
-
-