Class GetUserTokenResponse.Builder
- java.lang.Object
-
- com.courier.api.resources.users.tokens.types.GetUserTokenResponse.Builder
-
- All Implemented Interfaces:
GetUserTokenResponse._FinalStage,GetUserTokenResponse.ProviderKeyStage
- Enclosing class:
- GetUserTokenResponse
public static final class GetUserTokenResponse.Builder extends java.lang.Object implements GetUserTokenResponse.ProviderKeyStage, GetUserTokenResponse._FinalStage
-
-
Method Summary
-
-
-
Method Detail
-
from
public GetUserTokenResponse.Builder from(GetUserTokenResponse other)
- Specified by:
fromin interfaceGetUserTokenResponse.ProviderKeyStage
-
providerKey
public GetUserTokenResponse._FinalStage providerKey(ProviderKey providerKey)
- Specified by:
providerKeyin interfaceGetUserTokenResponse.ProviderKeyStage
-
statusReason
public GetUserTokenResponse._FinalStage statusReason(java.lang.String statusReason)
The reason for the token status.
- Specified by:
statusReasonin interfaceGetUserTokenResponse._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
statusReason
public GetUserTokenResponse._FinalStage statusReason(java.util.Optional<java.lang.String> statusReason)
- Specified by:
statusReasonin interfaceGetUserTokenResponse._FinalStage
-
status
public GetUserTokenResponse._FinalStage status(TokenStatus status)
- Specified by:
statusin interfaceGetUserTokenResponse._FinalStage
-
status
public GetUserTokenResponse._FinalStage status(java.util.Optional<TokenStatus> status)
- Specified by:
statusin interfaceGetUserTokenResponse._FinalStage
-
tracking
public GetUserTokenResponse._FinalStage tracking(Tracking tracking)
Information about the device the token is associated with.
- Specified by:
trackingin interfaceGetUserTokenResponse._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
tracking
public GetUserTokenResponse._FinalStage tracking(java.util.Optional<Tracking> tracking)
- Specified by:
trackingin interfaceGetUserTokenResponse._FinalStage
-
device
public GetUserTokenResponse._FinalStage device(Device device)
Information about the device the token is associated with.
- Specified by:
devicein interfaceGetUserTokenResponse._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
device
public GetUserTokenResponse._FinalStage device(java.util.Optional<Device> device)
- Specified by:
devicein interfaceGetUserTokenResponse._FinalStage
-
properties
public GetUserTokenResponse._FinalStage properties(java.lang.Object properties)
Properties sent to the provider along with the token
- Specified by:
propertiesin interfaceGetUserTokenResponse._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
properties
public GetUserTokenResponse._FinalStage properties(java.util.Optional<java.lang.Object> properties)
- Specified by:
propertiesin interfaceGetUserTokenResponse._FinalStage
-
expiryDate
public GetUserTokenResponse._FinalStage expiryDate(ExpiryDate expiryDate)
ISO 8601 formatted date the token expires. Defaults to 2 months. Set to false to disable expiration.
- Specified by:
expiryDatein interfaceGetUserTokenResponse._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
expiryDate
public GetUserTokenResponse._FinalStage expiryDate(java.util.Optional<ExpiryDate> expiryDate)
- Specified by:
expiryDatein interfaceGetUserTokenResponse._FinalStage
-
token
public GetUserTokenResponse._FinalStage token(java.lang.String token)
Full body of the token. Must match token in URL.
- Specified by:
tokenin interfaceGetUserTokenResponse._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
token
public GetUserTokenResponse._FinalStage token(java.util.Optional<java.lang.String> token)
- Specified by:
tokenin interfaceGetUserTokenResponse._FinalStage
-
build
public GetUserTokenResponse build()
- Specified by:
buildin interfaceGetUserTokenResponse._FinalStage
-
-