Class ImageUrlContentBlock
-
- All Implemented Interfaces:
public final class ImageUrlContentBlockReferences an image URL in the content of a message.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classImageUrlContentBlock.BuilderA builder for ImageUrlContentBlock.
-
Method Summary
Modifier and Type Method Description final ImageUrlimageUrl()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.BuildertoBuilder()final ImageUrlContentBlockvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ImageUrlContentBlock.Builderbuilder()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()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static ImageUrlContentBlock.Builder builder()
Returns a mutable builder for constructing an instance of ImageUrlContentBlock.
The following fields are required:
.imageUrl()
-
-
-
-