Class MyCustomerResetPasswordBuilder
java.lang.Object
com.commercetools.api.models.customer.MyCustomerResetPasswordBuilder
- All Implemented Interfaces:
Builder<MyCustomerResetPassword>
public class MyCustomerResetPasswordBuilder
extends Object
implements Builder<MyCustomerResetPassword>
MyCustomerResetPasswordBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyCustomerResetPassword myCustomerResetPassword = MyCustomerResetPassword.builder()
.tokenValue("{tokenValue}")
.newPassword("{newPassword}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds MyCustomerResetPassword with checking for non-null required valuesbuilds MyCustomerResetPassword without checking for non-null required valuesNew password to be set.Value of the token to reset the Customer password.newPassword
(String newPassword) New password to be set.of()
factory method for an instance of MyCustomerResetPasswordBuilderof
(MyCustomerResetPassword template) create builder for MyCustomerResetPassword instancetokenValue
(String tokenValue) Value of the token to reset the Customer password.
-
Constructor Details
-
MyCustomerResetPasswordBuilder
public MyCustomerResetPasswordBuilder()
-
-
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
-
getTokenValue
Value of the token to reset the Customer password.
- Returns:
- tokenValue
-
getNewPassword
New password to be set.
- Returns:
- newPassword
-
build
builds MyCustomerResetPassword with checking for non-null required values- Specified by:
build
in interfaceBuilder<MyCustomerResetPassword>
- Returns:
- MyCustomerResetPassword
-
buildUnchecked
builds MyCustomerResetPassword without checking for non-null required values- Returns:
- MyCustomerResetPassword
-
of
factory method for an instance of MyCustomerResetPasswordBuilder- Returns:
- builder
-
of
create builder for MyCustomerResetPassword instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-