Interface CustomerCreateEmailToken
public interface CustomerCreateEmailToken
CustomerCreateEmailToken
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerCreateEmailToken customerCreateEmailToken = CustomerCreateEmailToken.builder()
.id("{id}")
.ttlMinutes(0.3)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CustomerCreateEmailTokenbuilder
(CustomerCreateEmailToken template) create builder for CustomerCreateEmailToken instancestatic CustomerCreateEmailToken
deepCopy
(CustomerCreateEmailToken template) factory method to create a deep copy of CustomerCreateEmailToken@NotNull String
getId()
Unique identifier of the Customer.@NotNull Long
Validity period of the generated token in minutes.Expected version of the Customer.static CustomerCreateEmailToken
of()
factory methodstatic CustomerCreateEmailToken
of
(CustomerCreateEmailToken template) factory method to create a shallow copy CustomerCreateEmailTokenvoid
Unique identifier of the Customer.void
setTtlMinutes
(Long ttlMinutes) Validity period of the generated token in minutes.void
setVersion
(Long version) Expected version of the Customer.static com.fasterxml.jackson.core.type.TypeReference<CustomerCreateEmailToken>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getId
Unique identifier of the Customer.
- Returns:
- id
-
getVersion
Long getVersion()Expected version of the Customer.
- Returns:
- version
-
getTtlMinutes
Validity period of the generated token in minutes.
- Returns:
- ttlMinutes
-
setId
Unique identifier of the Customer.
- Parameters:
id
- value to be set
-
setVersion
Expected version of the Customer.
- Parameters:
version
- value to be set
-
setTtlMinutes
Validity period of the generated token in minutes.
- Parameters:
ttlMinutes
- value to be set
-
of
factory method- Returns:
- instance of CustomerCreateEmailToken
-
of
factory method to create a shallow copy CustomerCreateEmailToken- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CustomerCreateEmailToken- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerCreateEmailToken- Returns:
- builder
-
builder
create builder for CustomerCreateEmailToken instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerCreateEmailToken
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-