Package com.openai.models.containers
Class ContainerCreateResponse.ExpiresAfter
-
- All Implemented Interfaces:
public final class ContainerCreateResponse.ExpiresAfter
The container will expire after this time period. The anchor is the reference point for the expiration. The minutes is the number of minutes after the anchor before the container expires.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ContainerCreateResponse.ExpiresAfter.Builder
A builder for ExpiresAfter.
public final class
ContainerCreateResponse.ExpiresAfter.Anchor
The reference point for the expiration.
-
Method Summary
Modifier and Type Method Description final Optional<ContainerCreateResponse.ExpiresAfter.Anchor>
anchor()
The reference point for the expiration. final Optional<Long>
minutes()
The number of minutes after the anchor before the container expires. final JsonField<ContainerCreateResponse.ExpiresAfter.Anchor>
_anchor()
Returns the raw JSON value of anchor. final JsonField<Long>
_minutes()
Returns the raw JSON value of minutes. final Map<String, JsonValue>
_additionalProperties()
final ContainerCreateResponse.ExpiresAfter.Builder
toBuilder()
final ContainerCreateResponse.ExpiresAfter
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ContainerCreateResponse.ExpiresAfter.Builder
builder()
Returns a mutable builder for constructing an instance of ExpiresAfter. -
-
Method Detail
-
anchor
final Optional<ContainerCreateResponse.ExpiresAfter.Anchor> anchor()
The reference point for the expiration.
-
minutes
final Optional<Long> minutes()
The number of minutes after the anchor before the container expires.
-
_anchor
final JsonField<ContainerCreateResponse.ExpiresAfter.Anchor> _anchor()
Returns the raw JSON value of anchor.
Unlike anchor, this method doesn't throw if the JSON field has an unexpected type.
-
_minutes
final JsonField<Long> _minutes()
Returns the raw JSON value of minutes.
Unlike minutes, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ContainerCreateResponse.ExpiresAfter.Builder toBuilder()
-
validate
final ContainerCreateResponse.ExpiresAfter validate()
-
builder
final static ContainerCreateResponse.ExpiresAfter.Builder builder()
Returns a mutable builder for constructing an instance of ExpiresAfter.
-
-
-
-