Class SessionCreateResponse.ClientSecret.Builder
-
- All Implemented Interfaces:
public final class SessionCreateResponse.ClientSecret.Builder
A builder for ClientSecret.
-
-
Method Summary
-
-
Method Detail
-
expiresAt
final SessionCreateResponse.ClientSecret.Builder expiresAt(Long expiresAt)
Timestamp for when the token expires. Currently, all tokens expire after one minute.
-
expiresAt
final SessionCreateResponse.ClientSecret.Builder expiresAt(JsonField<Long> expiresAt)
Sets Builder.expiresAt to an arbitrary JSON value.
You should usually call Builder.expiresAt with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
value
final SessionCreateResponse.ClientSecret.Builder value(String value)
Ephemeral key usable in client environments to authenticate connections to the Realtime API. Use this in client-side environments rather than a standard API token, which should only be used server-side.
-
value
final SessionCreateResponse.ClientSecret.Builder value(JsonField<String> value)
Sets Builder.value to an arbitrary JSON value.
You should usually call Builder.value with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final SessionCreateResponse.ClientSecret.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final SessionCreateResponse.ClientSecret.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final SessionCreateResponse.ClientSecret.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final SessionCreateResponse.ClientSecret.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final SessionCreateResponse.ClientSecret.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final SessionCreateResponse.ClientSecret build()
Returns an immutable instance of ClientSecret.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.expiresAt() .value()
-
-
-
-