Class ImageFileContentBlock
-
- All Implemented Interfaces:
public final class ImageFileContentBlockReferences an image File in the content of a message.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classImageFileContentBlock.BuilderA builder for ImageFileContentBlock.
-
Method Summary
Modifier and Type Method Description final ImageFileimageFile()final JsonValue_type()Always image_file.final JsonField<ImageFile>_imageFile()Returns the raw JSON value of imageFile. final Map<String, JsonValue>_additionalProperties()final ImageFileContentBlock.BuildertoBuilder()final ImageFileContentBlockvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ImageFileContentBlock.Builderbuilder()Returns a mutable builder for constructing an instance of ImageFileContentBlock. -
-
Method Detail
-
_type
final JsonValue _type()
Always
image_file.Expected to always return the following:
JsonValue.from("image_file")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_imageFile
final JsonField<ImageFile> _imageFile()
Returns the raw JSON value of imageFile.
Unlike imageFile, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ImageFileContentBlock.Builder toBuilder()
-
validate
final ImageFileContentBlock 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 ImageFileContentBlock.Builder builder()
Returns a mutable builder for constructing an instance of ImageFileContentBlock.
The following fields are required:
.imageFile()
-
-
-
-