Class CustomerCreatePasswordResetTokenBuilder
java.lang.Object
com.commercetools.api.models.customer.CustomerCreatePasswordResetTokenBuilder
- All Implemented Interfaces:
Builder<CustomerCreatePasswordResetToken>
public class CustomerCreatePasswordResetTokenBuilder
extends Object
implements Builder<CustomerCreatePasswordResetToken>
CustomerCreatePasswordResetTokenBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerCreatePasswordResetToken customerCreatePasswordResetToken = CustomerCreatePasswordResetToken.builder()
.email("{email}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CustomerCreatePasswordResetToken with checking for non-null required valuesbuilds CustomerCreatePasswordResetToken without checking for non-null required valuesEmail address of the Customer treated as case-insensitive.getEmail()
Email address of the Customer treated as case-insensitive.Validity period of the generated token in minutes.of()
factory method for an instance of CustomerCreatePasswordResetTokenBuilderof
(CustomerCreatePasswordResetToken template) create builder for CustomerCreatePasswordResetToken instancettlMinutes
(Long ttlMinutes) Validity period of the generated token in minutes.
-
Constructor Details
-
CustomerCreatePasswordResetTokenBuilder
public CustomerCreatePasswordResetTokenBuilder()
-
-
Method Details
-
email
Email address of the Customer treated as case-insensitive.
- Parameters:
email
- value to be set- Returns:
- Builder
-
ttlMinutes
Validity period of the generated token in minutes.
- Parameters:
ttlMinutes
- value to be set- Returns:
- Builder
-
getEmail
Email address of the Customer treated as case-insensitive.
- Returns:
-
getTtlMinutes
Validity period of the generated token in minutes.
- Returns:
- ttlMinutes
-
build
builds CustomerCreatePasswordResetToken with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomerCreatePasswordResetToken>
- Returns:
- CustomerCreatePasswordResetToken
-
buildUnchecked
builds CustomerCreatePasswordResetToken without checking for non-null required values- Returns:
- CustomerCreatePasswordResetToken
-
of
factory method for an instance of CustomerCreatePasswordResetTokenBuilder- Returns:
- builder
-
of
create builder for CustomerCreatePasswordResetToken instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-