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