Package com.anthropic.models.messages
Class ImageBlockParam
-
- All Implemented Interfaces:
public final class ImageBlockParam
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classImageBlockParam.BuilderA builder for ImageBlockParam.
public final classImageBlockParam.Source
-
Method Summary
Modifier and Type Method Description final ImageBlockParam.Sourcesource()final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("image")final Optional<CacheControlEphemeral>cacheControl()Create a cache control breakpoint at this content block. final JsonField<ImageBlockParam.Source>_source()Returns the raw JSON value of source. final JsonField<CacheControlEphemeral>_cacheControl()Returns the raw JSON value of cacheControl. final Map<String, JsonValue>_additionalProperties()final ImageBlockParam.BuildertoBuilder()final ImageBlockParamvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ImageBlockParam.Builderbuilder()Returns a mutable builder for constructing an instance of ImageBlockParam. -
-
Method Detail
-
source
final ImageBlockParam.Source source()
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("image")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
cacheControl
final Optional<CacheControlEphemeral> cacheControl()
Create a cache control breakpoint at this content block.
-
_source
final JsonField<ImageBlockParam.Source> _source()
Returns the raw JSON value of source.
Unlike source, this method doesn't throw if the JSON field has an unexpected type.
-
_cacheControl
final JsonField<CacheControlEphemeral> _cacheControl()
Returns the raw JSON value of cacheControl.
Unlike cacheControl, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ImageBlockParam.Builder toBuilder()
-
validate
final ImageBlockParam validate()
-
builder
final static ImageBlockParam.Builder builder()
Returns a mutable builder for constructing an instance of ImageBlockParam.
The following fields are required:
.source()
-
-
-
-