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
Modifier and Type Method Description final TokenAddSingleParams.ProviderKeyproviderKey()final Optional<TokenAddSingleParams.Device>device()Information about the device the token came from. final Optional<TokenAddSingleParams.ExpiryDate>expiryDate()ISO 8601 formatted date the token expires. final JsonValue_properties()Properties about the token. final Optional<TokenAddSingleParams.Tracking>tracking()Tracking information about the device the token came from. final JsonField<TokenAddSingleParams.ProviderKey>_providerKey()Returns the raw JSON value of providerKey. final JsonField<TokenAddSingleParams.Device>_device()Returns the raw JSON value of device. final JsonField<TokenAddSingleParams.ExpiryDate>_expiryDate()Returns the raw JSON value of expiryDate. final JsonField<TokenAddSingleParams.Tracking>_tracking()Returns the raw JSON value of tracking. final Map<String, JsonValue>_additionalProperties()final TokenAddSingleParams.Body.BuildertoBuilder()final TokenAddSingleParams.Bodyvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static TokenAddSingleParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
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()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static TokenAddSingleParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.providerKey()
-
-
-
-