Package com.bennyapi.models.sessions
Class SessionCreateTokenResponse.Builder
-
- All Implemented Interfaces:
public final class SessionCreateTokenResponse.BuilderA builder for SessionCreateTokenResponse.
-
-
Method Summary
-
-
Method Detail
-
token
final SessionCreateTokenResponse.Builder token(String token)
The session token.
-
token
final SessionCreateTokenResponse.Builder token(JsonField<String> token)
Sets Builder.token to an arbitrary JSON value.
You should usually call Builder.token with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
expiresAt
final SessionCreateTokenResponse.Builder expiresAt(OffsetDateTime expiresAt)
The UTC time at which the token expires.
-
expiresAt
final SessionCreateTokenResponse.Builder expiresAt(JsonField<OffsetDateTime> expiresAt)
Sets Builder.expiresAt to an arbitrary JSON value.
You should usually call Builder.expiresAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final SessionCreateTokenResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final SessionCreateTokenResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final SessionCreateTokenResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final SessionCreateTokenResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final SessionCreateTokenResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final SessionCreateTokenResponse build()
Returns an immutable instance of SessionCreateTokenResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.token() .expiresAt()
-
-
-
-