Class TokenRetrieveResponse.Builder
-
- All Implemented Interfaces:
public final class TokenRetrieveResponse.BuilderA builder for TokenRetrieveResponse.
-
-
Method Summary
-
-
Method Detail
-
token
final TokenRetrieveResponse.Builder token(String token)
Full body of the token. Must match token in URL path parameter.
-
token
final TokenRetrieveResponse.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.
-
providerKey
final TokenRetrieveResponse.Builder providerKey(UserToken.ProviderKey providerKey)
-
providerKey
final TokenRetrieveResponse.Builder providerKey(JsonField<UserToken.ProviderKey> providerKey)
Sets Builder.providerKey to an arbitrary JSON value.
You should usually call Builder.providerKey with a well-typed UserToken.ProviderKey value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
device
final TokenRetrieveResponse.Builder device(UserToken.Device device)
Information about the device the token came from.
-
device
final TokenRetrieveResponse.Builder device(Optional<UserToken.Device> device)
Alias for calling Builder.device with
device.orElse(null).
-
device
final TokenRetrieveResponse.Builder device(JsonField<UserToken.Device> device)
Sets Builder.device to an arbitrary JSON value.
You should usually call Builder.device with a well-typed UserToken.Device value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
expiryDate
final TokenRetrieveResponse.Builder expiryDate(UserToken.ExpiryDate expiryDate)
ISO 8601 formatted date the token expires. Defaults to 2 months. Set to false to disable expiration.
-
expiryDate
final TokenRetrieveResponse.Builder expiryDate(Optional<UserToken.ExpiryDate> expiryDate)
Alias for calling Builder.expiryDate with
expiryDate.orElse(null).
-
expiryDate
final TokenRetrieveResponse.Builder expiryDate(JsonField<UserToken.ExpiryDate> expiryDate)
Sets Builder.expiryDate to an arbitrary JSON value.
You should usually call Builder.expiryDate with a well-typed UserToken.ExpiryDate value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
expiryDate
final TokenRetrieveResponse.Builder expiryDate(String string)
Alias for calling expiryDate with
UserToken.ExpiryDate.ofString(string).
-
expiryDate
final TokenRetrieveResponse.Builder expiryDate(Boolean bool)
Alias for calling expiryDate with
UserToken.ExpiryDate.ofBool(bool).
-
properties
final TokenRetrieveResponse.Builder properties(JsonValue properties)
Properties sent to the provider along with the token
-
tracking
final TokenRetrieveResponse.Builder tracking(UserToken.Tracking tracking)
Tracking information about the device the token came from.
-
tracking
final TokenRetrieveResponse.Builder tracking(Optional<UserToken.Tracking> tracking)
Alias for calling Builder.tracking with
tracking.orElse(null).
-
tracking
final TokenRetrieveResponse.Builder tracking(JsonField<UserToken.Tracking> tracking)
Sets Builder.tracking to an arbitrary JSON value.
You should usually call Builder.tracking with a well-typed UserToken.Tracking value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
status
final TokenRetrieveResponse.Builder status(TokenRetrieveResponse.Status status)
-
status
final TokenRetrieveResponse.Builder status(Optional<TokenRetrieveResponse.Status> status)
Alias for calling Builder.status with
status.orElse(null).
-
status
final TokenRetrieveResponse.Builder status(JsonField<TokenRetrieveResponse.Status> status)
Sets Builder.status to an arbitrary JSON value.
You should usually call Builder.status with a well-typed Status value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
statusReason
final TokenRetrieveResponse.Builder statusReason(String statusReason)
The reason for the token status.
-
statusReason
final TokenRetrieveResponse.Builder statusReason(Optional<String> statusReason)
Alias for calling Builder.statusReason with
statusReason.orElse(null).
-
statusReason
final TokenRetrieveResponse.Builder statusReason(JsonField<String> statusReason)
Sets Builder.statusReason to an arbitrary JSON value.
You should usually call Builder.statusReason 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 TokenRetrieveResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final TokenRetrieveResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final TokenRetrieveResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final TokenRetrieveResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final TokenRetrieveResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final TokenRetrieveResponse build()
Returns an immutable instance of TokenRetrieveResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.token() .providerKey()
-
-
-
-