public static class RealtimeSessionToken.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
RealtimeSessionToken |
build() |
RealtimeSessionToken.Builder |
compartmentId(String compartmentId)
Compartment ID that was used to create the token.
|
RealtimeSessionToken.Builder |
copy(RealtimeSessionToken model) |
RealtimeSessionToken.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
RealtimeSessionToken.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.
|
RealtimeSessionToken.Builder |
sessionId(String sessionId)
The session ID this token corresponds to.
|
RealtimeSessionToken.Builder |
token(String token)
The session token (JWT) to be consumed by the websocket server.
|
public RealtimeSessionToken.Builder token(String token)
The session token (JWT) to be consumed by the websocket server. The token contains the session/tenant ID, as well as the expiry time.
token
- the value to setpublic RealtimeSessionToken.Builder sessionId(String sessionId)
The session ID this token corresponds to. Provided for convenience, the session ID is already present in the JWT token.
sessionId
- the value to setpublic RealtimeSessionToken.Builder compartmentId(String compartmentId)
Compartment ID that was used to create the token.
compartmentId
- the value to setpublic RealtimeSessionToken.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope. Exists
for cross-compatibility only. Example: {"bar-key": "value"}
.
freeformTags
- the value to setpublic RealtimeSessionToken.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource. Each key is predefined and scoped to a namespace.
Example: {"foo-namespace-1": {"bar-key-1": "value-1", "bar-key-2": "value-2"},
“foo-namespace-2”: {“bar-key-1”: “value-1”, “bar-key-2”: “value-2”}}
.
definedTags
- the value to setpublic RealtimeSessionToken build()
public RealtimeSessionToken.Builder copy(RealtimeSessionToken model)
Copyright © 2016–2024. All rights reserved.