Interface CustomerPasswordTokenCreatedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Create password reset token for Customer request. The resource
property of the Message is a CustomerPasswordTokenReference.
Example to create an instance using the builder pattern
CustomerPasswordTokenCreatedMessagePayload customerPasswordTokenCreatedMessagePayload = CustomerPasswordTokenCreatedMessagePayload.builder()
.customerId("{customerId}")
.expiresAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CustomerPasswordTokenCreatedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CustomerPasswordTokenCreatedMessagePayloadcreate builder for CustomerPasswordTokenCreatedMessagePayload instancefactory method to create a deep copy of CustomerPasswordTokenCreatedMessagePayload@NotNull String
Unique identifier of the Customer.@NotNull ZonedDateTime
Date and time (UTC) the password token expires.of()
factory methodof
(CustomerPasswordTokenCreatedMessagePayload template) factory method to create a shallow copy CustomerPasswordTokenCreatedMessagePayloadvoid
setCustomerId
(String customerId) Unique identifier of the Customer.void
setExpiresAt
(ZonedDateTime expiresAt) Date and time (UTC) the password token expires.static com.fasterxml.jackson.core.type.TypeReference<CustomerPasswordTokenCreatedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCustomerPasswordTokenCreatedMessagePayload
(Function<CustomerPasswordTokenCreatedMessagePayload, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayload
Methods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
CUSTOMER_PASSWORD_TOKEN_CREATED
discriminator value for CustomerPasswordTokenCreatedMessagePayload- See Also:
-
-
Method Details
-
getCustomerId
Unique identifier of the Customer.
- Returns:
- customerId
-
getExpiresAt
Date and time (UTC) the password token expires.
- Returns:
- expiresAt
-
setCustomerId
Unique identifier of the Customer.
- Parameters:
customerId
- value to be set
-
setExpiresAt
Date and time (UTC) the password token expires.
- Parameters:
expiresAt
- value to be set
-
of
factory method- Returns:
- instance of CustomerPasswordTokenCreatedMessagePayload
-
of
static CustomerPasswordTokenCreatedMessagePayload of(CustomerPasswordTokenCreatedMessagePayload template) factory method to create a shallow copy CustomerPasswordTokenCreatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CustomerPasswordTokenCreatedMessagePayload deepCopy(@Nullable CustomerPasswordTokenCreatedMessagePayload template) factory method to create a deep copy of CustomerPasswordTokenCreatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerPasswordTokenCreatedMessagePayload- Returns:
- builder
-
builder
static CustomerPasswordTokenCreatedMessagePayloadBuilder builder(CustomerPasswordTokenCreatedMessagePayload template) create builder for CustomerPasswordTokenCreatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerPasswordTokenCreatedMessagePayload
default <T> T withCustomerPasswordTokenCreatedMessagePayload(Function<CustomerPasswordTokenCreatedMessagePayload, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<CustomerPasswordTokenCreatedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-