Package com.anthropic.models.messages
Class Container
-
- All Implemented Interfaces:
public final class ContainerInformation about the container used in the request (for the code execution tool)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classContainer.BuilderA builder for Container.
-
Method Summary
Modifier and Type Method Description final Stringid()Identifier for the container used in this request final OffsetDateTimeexpiresAt()The time at which the container will expire. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<OffsetDateTime>_expiresAt()Returns the raw JSON value of expiresAt. final Map<String, JsonValue>_additionalProperties()final Container.BuildertoBuilder()final Containervalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static Container.Builderbuilder()Returns a mutable builder for constructing an instance of Container. -
-
Method Detail
-
expiresAt
final OffsetDateTime expiresAt()
The time at which the container will expire.
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_expiresAt
final JsonField<OffsetDateTime> _expiresAt()
Returns the raw JSON value of expiresAt.
Unlike expiresAt, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final Container.Builder toBuilder()
-
validate
final Container 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 Container.Builder builder()
Returns a mutable builder for constructing an instance of Container.
The following fields are required:
.id() .expiresAt()
-
-
-
-