Class ChatSessionExpiresAfterParam
-
- All Implemented Interfaces:
public final class ChatSessionExpiresAfterParamControls when the session expires relative to an anchor timestamp.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatSessionExpiresAfterParam.BuilderA builder for ChatSessionExpiresAfterParam.
-
Method Summary
Modifier and Type Method Description final JsonValue_anchor()Base timestamp used to calculate expiration. final Longseconds()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.BuildertoBuilder()final ChatSessionExpiresAfterParamvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatSessionExpiresAfterParam.Builderbuilder()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()
-
-
-
-