Class ClientSecretCreateParams.Body.Builder
-
- All Implemented Interfaces:
public final class ClientSecretCreateParams.Body.Builder
A builder for Body.
-
-
Method Summary
-
-
Method Detail
-
expiresAfter
final ClientSecretCreateParams.Body.Builder expiresAfter(ClientSecretCreateParams.ExpiresAfter expiresAfter)
Configuration for the ephemeral token expiration.
-
expiresAfter
final ClientSecretCreateParams.Body.Builder expiresAfter(JsonField<ClientSecretCreateParams.ExpiresAfter> expiresAfter)
Sets Builder.expiresAfter to an arbitrary JSON value.
You should usually call Builder.expiresAfter with a well-typed ExpiresAfter value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
session
final ClientSecretCreateParams.Body.Builder session(ClientSecretCreateParams.Session session)
Session configuration to use for the client secret. Choose either a realtime session or a transcription session.
-
session
final ClientSecretCreateParams.Body.Builder session(JsonField<ClientSecretCreateParams.Session> session)
Sets Builder.session to an arbitrary JSON value.
You should usually call Builder.session with a well-typed Session value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
session
final ClientSecretCreateParams.Body.Builder session(RealtimeSessionCreateRequest realtime)
Alias for calling session with
Session.ofRealtime(realtime)
.
-
session
final ClientSecretCreateParams.Body.Builder session(RealtimeTranscriptionSessionCreateRequest transcription)
Alias for calling session with
Session.ofTranscription(transcription)
.
-
realtimeSession
final ClientSecretCreateParams.Body.Builder realtimeSession(RealtimeSessionCreateRequest.Model model)
Alias for calling session with the following:
RealtimeSessionCreateRequest.builder() .model(model) .build()
-
realtimeSession
final ClientSecretCreateParams.Body.Builder realtimeSession(String string)
Alias for calling realtimeSession with
RealtimeSessionCreateRequest.Model.ofString(string)
.
-
transcriptionSession
final ClientSecretCreateParams.Body.Builder transcriptionSession(RealtimeTranscriptionSessionCreateRequest.Model model)
Alias for calling session with the following:
RealtimeTranscriptionSessionCreateRequest.builder() .model(model) .build()
-
transcriptionSession
final ClientSecretCreateParams.Body.Builder transcriptionSession(String string)
Alias for calling transcriptionSession with
RealtimeTranscriptionSessionCreateRequest.Model.ofString(string)
.
-
additionalProperties
final ClientSecretCreateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ClientSecretCreateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ClientSecretCreateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ClientSecretCreateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ClientSecretCreateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ClientSecretCreateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-