Class ChatSessionExpiresAfterParam
-
- All Implemented Interfaces:
public final class ChatSessionExpiresAfterParam
Controls when the session expires relative to an anchor timestamp.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ChatSessionExpiresAfterParam.Builder
A builder for ChatSessionExpiresAfterParam.
-
Method Summary
Modifier and Type Method Description final JsonValue
_anchor()
Base timestamp used to calculate expiration. final Long
seconds()
Number of seconds after the anchor when the session expires. final JsonField<Long>
_seconds()
Returns the raw JSON value of seconds. final Map<String, JsonValue>
_additionalProperties()
final ChatSessionExpiresAfterParam.Builder
toBuilder()
final ChatSessionExpiresAfterParam
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ChatSessionExpiresAfterParam.Builder
builder()
Returns a mutable builder for constructing an instance of ChatSessionExpiresAfterParam. -
-
Method Detail
-
_anchor
final JsonValue _anchor()
Base timestamp used to calculate expiration. Currently fixed to
created_at
.Expected to always return the following:
JsonValue.from("created_at")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_seconds
final JsonField<Long> _seconds()
Returns the raw JSON value of seconds.
Unlike seconds, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ChatSessionExpiresAfterParam.Builder toBuilder()
-
validate
final ChatSessionExpiresAfterParam validate()
-
builder
final static ChatSessionExpiresAfterParam.Builder builder()
Returns a mutable builder for constructing an instance of ChatSessionExpiresAfterParam.
The following fields are required:
.seconds()
-
-
-
-