Class CustomerPasswordTokenCreatedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.CustomerPasswordTokenCreatedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<CustomerPasswordTokenCreatedMessagePayload>
public class CustomerPasswordTokenCreatedMessagePayloadBuilder
extends Object
implements Builder<CustomerPasswordTokenCreatedMessagePayload>
CustomerPasswordTokenCreatedMessagePayloadBuilder
Example to create an instance using the builder pattern
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()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CustomerPasswordTokenCreatedMessagePayload with checking for non-null required valuesbuilds CustomerPasswordTokenCreatedMessagePayload without checking for non-null required valuescustomerId
(String customerId) Unique identifier of the Customer.expiresAt
(ZonedDateTime expiresAt) Date and time (UTC) the password token expires.Unique identifier of the Customer.Date and time (UTC) the password token expires.of()
factory method for an instance of CustomerPasswordTokenCreatedMessagePayloadBuilderof
(CustomerPasswordTokenCreatedMessagePayload template) create builder for CustomerPasswordTokenCreatedMessagePayload instance
-
Constructor Details
-
CustomerPasswordTokenCreatedMessagePayloadBuilder
public CustomerPasswordTokenCreatedMessagePayloadBuilder()
-
-
Method Details
-
customerId
Unique identifier of the Customer.
- Parameters:
customerId
- value to be set- Returns:
- Builder
-
expiresAt
Date and time (UTC) the password token expires.
- Parameters:
expiresAt
- value to be set- Returns:
- Builder
-
getCustomerId
Unique identifier of the Customer.
- Returns:
- customerId
-
getExpiresAt
Date and time (UTC) the password token expires.
- Returns:
- expiresAt
-
build
builds CustomerPasswordTokenCreatedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomerPasswordTokenCreatedMessagePayload>
- Returns:
- CustomerPasswordTokenCreatedMessagePayload
-
buildUnchecked
builds CustomerPasswordTokenCreatedMessagePayload without checking for non-null required values- Returns:
- CustomerPasswordTokenCreatedMessagePayload
-
of
factory method for an instance of CustomerPasswordTokenCreatedMessagePayloadBuilder- Returns:
- builder
-
of
public static CustomerPasswordTokenCreatedMessagePayloadBuilder of(CustomerPasswordTokenCreatedMessagePayload template) create builder for CustomerPasswordTokenCreatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-