Class TokenAddSingleParams.Body
-
- All Implemented Interfaces:
public final class TokenAddSingleParams.BodyRequest body for adding a single token. The token value itself is provided via the path parameter, so it is omitted from the body.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classTokenAddSingleParams.Body.BuilderA builder for Body.
-
Method Summary
-
-
Method Detail
-
providerKey
final TokenAddSingleParams.ProviderKey providerKey()
-
device
final Optional<TokenAddSingleParams.Device> device()
Information about the device the token came from.
-
expiryDate
final Optional<TokenAddSingleParams.ExpiryDate> expiryDate()
ISO 8601 formatted date the token expires. Defaults to 2 months. Set to false to disable expiration.
-
_properties
final JsonValue _properties()
Properties about the token.
This arbitrary value can be deserialized into a custom type using the
convertmethod:MyClass myObject = body.properties().convert(MyClass.class);
-
tracking
final Optional<TokenAddSingleParams.Tracking> tracking()
Tracking information about the device the token came from.
-
_providerKey
final JsonField<TokenAddSingleParams.ProviderKey> _providerKey()
Returns the raw JSON value of providerKey.
Unlike providerKey, this method doesn't throw if the JSON field has an unexpected type.
-
_device
final JsonField<TokenAddSingleParams.Device> _device()
Returns the raw JSON value of device.
Unlike device, this method doesn't throw if the JSON field has an unexpected type.
-
_expiryDate
final JsonField<TokenAddSingleParams.ExpiryDate> _expiryDate()
Returns the raw JSON value of expiryDate.
Unlike expiryDate, this method doesn't throw if the JSON field has an unexpected type.
-
_tracking
final JsonField<TokenAddSingleParams.Tracking> _tracking()
Returns the raw JSON value of tracking.
Unlike tracking, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final TokenAddSingleParams.Body.Builder toBuilder()
-
validate
final TokenAddSingleParams.Body validate()
-
builder
final static TokenAddSingleParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.providerKey()
-
-
-
-