Class ClientSecretCreateResponse
-
- All Implemented Interfaces:
public final class ClientSecretCreateResponse
Response from creating a session and client secret for the Realtime API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ClientSecretCreateResponse.Builder
A builder for ClientSecretCreateResponse.
public final class
ClientSecretCreateResponse.Session
The session configuration for either a realtime or transcription session.
-
Method Summary
Modifier and Type Method Description final Long
expiresAt()
Expiration timestamp for the client secret, in seconds since epoch. final ClientSecretCreateResponse.Session
session()
The session configuration for either a realtime or transcription session. final String
value()
The generated client secret value. final JsonField<Long>
_expiresAt()
Returns the raw JSON value of expiresAt. final JsonField<ClientSecretCreateResponse.Session>
_session()
Returns the raw JSON value of session. final JsonField<String>
_value()
Returns the raw JSON value of value. final Map<String, JsonValue>
_additionalProperties()
final ClientSecretCreateResponse.Builder
toBuilder()
final ClientSecretCreateResponse
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ClientSecretCreateResponse.Builder
builder()
Returns a mutable builder for constructing an instance of ClientSecretCreateResponse. -
-
Method Detail
-
expiresAt
final Long expiresAt()
Expiration timestamp for the client secret, in seconds since epoch.
-
session
final ClientSecretCreateResponse.Session session()
The session configuration for either a realtime or transcription session.
-
_expiresAt
final JsonField<Long> _expiresAt()
Returns the raw JSON value of expiresAt.
Unlike expiresAt, this method doesn't throw if the JSON field has an unexpected type.
-
_session
final JsonField<ClientSecretCreateResponse.Session> _session()
Returns the raw JSON value of session.
Unlike session, this method doesn't throw if the JSON field has an unexpected type.
-
_value
final JsonField<String> _value()
Returns the raw JSON value of value.
Unlike value, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ClientSecretCreateResponse.Builder toBuilder()
-
validate
final ClientSecretCreateResponse validate()
-
builder
final static ClientSecretCreateResponse.Builder builder()
Returns a mutable builder for constructing an instance of ClientSecretCreateResponse.
The following fields are required:
.expiresAt() .session() .value()
-
-
-
-