Class ClientSecretCreateParams.Body
-
- All Implemented Interfaces:
public final class ClientSecretCreateParams.BodyCreate a session and client secret for the Realtime API. The request can specify either a realtime or a transcription session configuration. Learn more about the Realtime API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classClientSecretCreateParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final Optional<ClientSecretCreateParams.ExpiresAfter>expiresAfter()Configuration for the client secret expiration. final Optional<ClientSecretCreateParams.Session>session()Session configuration to use for the client secret. final JsonField<ClientSecretCreateParams.ExpiresAfter>_expiresAfter()Returns the raw JSON value of expiresAfter. final JsonField<ClientSecretCreateParams.Session>_session()Returns the raw JSON value of session. final Map<String, JsonValue>_additionalProperties()final ClientSecretCreateParams.Body.BuildertoBuilder()final ClientSecretCreateParams.Bodyvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ClientSecretCreateParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
expiresAfter
final Optional<ClientSecretCreateParams.ExpiresAfter> expiresAfter()
Configuration for the client secret expiration. Expiration refers to the time after which a client secret will no longer be valid for creating sessions. The session itself may continue after that time once started. A secret can be used to create multiple sessions until it expires.
-
session
final Optional<ClientSecretCreateParams.Session> session()
Session configuration to use for the client secret. Choose either a realtime session or a transcription session.
-
_expiresAfter
final JsonField<ClientSecretCreateParams.ExpiresAfter> _expiresAfter()
Returns the raw JSON value of expiresAfter.
Unlike expiresAfter, this method doesn't throw if the JSON field has an unexpected type.
-
_session
final JsonField<ClientSecretCreateParams.Session> _session()
Returns the raw JSON value of session.
Unlike session, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ClientSecretCreateParams.Body.Builder toBuilder()
-
validate
final ClientSecretCreateParams.Body validate()
-
builder
final static ClientSecretCreateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
-
-
-
-