Class CustomerResetPasswordBuilder

java.lang.Object
com.commercetools.api.models.customer.CustomerResetPasswordBuilder
All Implemented Interfaces:
Builder<CustomerResetPassword>

public class CustomerResetPasswordBuilder extends Object implements Builder<CustomerResetPassword>
CustomerResetPasswordBuilder
Example to create an instance using the builder pattern

     CustomerResetPassword customerResetPassword = CustomerResetPassword.builder()
             .tokenValue("{tokenValue}")
             .newPassword("{newPassword}")
             .build()
 
  • Constructor Details

    • CustomerResetPasswordBuilder

      public CustomerResetPasswordBuilder()
  • Method Details

    • tokenValue

      public CustomerResetPasswordBuilder tokenValue(String tokenValue)

      Value of the token to reset the Customer password.

      Parameters:
      tokenValue - value to be set
      Returns:
      Builder
    • newPassword

      public CustomerResetPasswordBuilder newPassword(String newPassword)

      New password to be set.

      Parameters:
      newPassword - value to be set
      Returns:
      Builder
    • version

      public CustomerResetPasswordBuilder version(@Nullable Long version)

      Expected version of the Customer.

      Parameters:
      version - value to be set
      Returns:
      Builder
    • getTokenValue

      public String getTokenValue()

      Value of the token to reset the Customer password.

      Returns:
      tokenValue
    • getNewPassword

      public String getNewPassword()

      New password to be set.

      Returns:
      newPassword
    • getVersion

      @Nullable public Long getVersion()

      Expected version of the Customer.

      Returns:
      version
    • build

      public CustomerResetPassword build()
      builds CustomerResetPassword with checking for non-null required values
      Specified by:
      build in interface Builder<CustomerResetPassword>
      Returns:
      CustomerResetPassword
    • buildUnchecked

      public CustomerResetPassword buildUnchecked()
      builds CustomerResetPassword without checking for non-null required values
      Returns:
      CustomerResetPassword
    • of

      public static CustomerResetPasswordBuilder 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