Class CustomerEmailTokenCreatedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.CustomerEmailTokenCreatedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<CustomerEmailTokenCreatedMessagePayload>
public class CustomerEmailTokenCreatedMessagePayloadBuilder
extends Object
implements Builder<CustomerEmailTokenCreatedMessagePayload>
CustomerEmailTokenCreatedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerEmailTokenCreatedMessagePayload customerEmailTokenCreatedMessagePayload = CustomerEmailTokenCreatedMessagePayload.builder()
.customerId("{customerId}")
.expiresAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CustomerEmailTokenCreatedMessagePayload with checking for non-null required valuesbuilds CustomerEmailTokenCreatedMessagePayload without checking for non-null required valuescustomerId
(String customerId) Unique identifier of the Customer.expiresAt
(ZonedDateTime expiresAt) Date and time (UTC) the email token expires.Unique identifier of the Customer.Date and time (UTC) the email token expires.of()
factory method for an instance of CustomerEmailTokenCreatedMessagePayloadBuilderof
(CustomerEmailTokenCreatedMessagePayload template) create builder for CustomerEmailTokenCreatedMessagePayload instance
-
Constructor Details
-
CustomerEmailTokenCreatedMessagePayloadBuilder
public CustomerEmailTokenCreatedMessagePayloadBuilder()
-
-
Method Details
-
customerId
Unique identifier of the Customer.
- Parameters:
customerId
- value to be set- Returns:
- Builder
-
expiresAt
Date and time (UTC) the email token expires.
- Parameters:
expiresAt
- value to be set- Returns:
- Builder
-
getCustomerId
Unique identifier of the Customer.
- Returns:
- customerId
-
getExpiresAt
Date and time (UTC) the email token expires.
- Returns:
- expiresAt
-
build
builds CustomerEmailTokenCreatedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomerEmailTokenCreatedMessagePayload>
- Returns:
- CustomerEmailTokenCreatedMessagePayload
-
buildUnchecked
builds CustomerEmailTokenCreatedMessagePayload without checking for non-null required values- Returns:
- CustomerEmailTokenCreatedMessagePayload
-
of
factory method for an instance of CustomerEmailTokenCreatedMessagePayloadBuilder- Returns:
- builder
-
of
public static CustomerEmailTokenCreatedMessagePayloadBuilder of(CustomerEmailTokenCreatedMessagePayload template) create builder for CustomerEmailTokenCreatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-