Class CustomerResetPasswordBuilder
java.lang.Object
com.commercetools.api.models.customer.CustomerResetPasswordBuilder
- All Implemented Interfaces:
Builder<CustomerResetPassword>
CustomerResetPasswordBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerResetPassword customerResetPassword = CustomerResetPassword.builder()
.tokenValue("{tokenValue}")
.newPassword("{newPassword}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CustomerResetPassword with checking for non-null required valuesbuilds CustomerResetPassword without checking for non-null required valuesNew password to be set.Value of the token to reset the Customer password.Expected version of the Customer.newPassword
(String newPassword) New password to be set.static CustomerResetPasswordBuilder
of()
factory method for an instance of CustomerResetPasswordBuilderstatic CustomerResetPasswordBuilder
of
(CustomerResetPassword template) create builder for CustomerResetPassword instancetokenValue
(String tokenValue) Value of the token to reset the Customer password.Expected version of the Customer.
-
Constructor Details
-
CustomerResetPasswordBuilder
public CustomerResetPasswordBuilder()
-
-
Method Details
-
tokenValue
Value of the token to reset the Customer password.
- Parameters:
tokenValue
- value to be set- Returns:
- Builder
-
newPassword
New password to be set.
- Parameters:
newPassword
- value to be set- Returns:
- Builder
-
version
Expected version of the Customer.
- Parameters:
version
- value to be set- Returns:
- Builder
-
getTokenValue
Value of the token to reset the Customer password.
- Returns:
- tokenValue
-
getNewPassword
New password to be set.
- Returns:
- newPassword
-
getVersion
Expected version of the Customer.
- Returns:
- version
-
build
builds CustomerResetPassword with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomerResetPassword>
- Returns:
- CustomerResetPassword
-
buildUnchecked
builds CustomerResetPassword without checking for non-null required values- Returns:
- CustomerResetPassword
-
of
factory method for an instance of CustomerResetPasswordBuilder- Returns:
- builder
-
of
create builder for CustomerResetPassword instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-