Package com.openai.models.beta.realtime
Class SessionUpdateEvent.Session.ClientSecret.ExpiresAfter
-
- All Implemented Interfaces:
public final class SessionUpdateEvent.Session.ClientSecret.ExpiresAfter
Configuration for the ephemeral token expiration.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
SessionUpdateEvent.Session.ClientSecret.ExpiresAfter.Builder
A builder for ExpiresAfter.
public final class
SessionUpdateEvent.Session.ClientSecret.ExpiresAfter.Anchor
The anchor point for the ephemeral token expiration. Only
created_at
is currently supported.
-
Method Summary
Modifier and Type Method Description final SessionUpdateEvent.Session.ClientSecret.ExpiresAfter.Anchor
anchor()
The anchor point for the ephemeral token expiration. final Optional<Long>
seconds()
The number of seconds from the anchor point to the expiration. final JsonField<SessionUpdateEvent.Session.ClientSecret.ExpiresAfter.Anchor>
_anchor()
Returns the raw JSON value of anchor. final JsonField<Long>
_seconds()
Returns the raw JSON value of seconds. final Map<String, JsonValue>
_additionalProperties()
final SessionUpdateEvent.Session.ClientSecret.ExpiresAfter.Builder
toBuilder()
final SessionUpdateEvent.Session.ClientSecret.ExpiresAfter
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static SessionUpdateEvent.Session.ClientSecret.ExpiresAfter.Builder
builder()
Returns a mutable builder for constructing an instance of ExpiresAfter. -
-
Method Detail
-
anchor
final SessionUpdateEvent.Session.ClientSecret.ExpiresAfter.Anchor anchor()
The anchor point for the ephemeral token expiration. Only
created_at
is currently supported.
-
seconds
final Optional<Long> seconds()
The number of seconds from the anchor point to the expiration. Select a value between
10
and7200
.
-
_anchor
final JsonField<SessionUpdateEvent.Session.ClientSecret.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.
-
_seconds
final JsonField<Long> _seconds()
Returns the raw JSON value of seconds.
Unlike seconds, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final SessionUpdateEvent.Session.ClientSecret.ExpiresAfter.Builder toBuilder()
-
validate
final SessionUpdateEvent.Session.ClientSecret.ExpiresAfter validate()
-
builder
final static SessionUpdateEvent.Session.ClientSecret.ExpiresAfter.Builder builder()
Returns a mutable builder for constructing an instance of ExpiresAfter.
The following fields are required:
.anchor()
-
-
-
-