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

     MyCustomerResetPassword myCustomerResetPassword = MyCustomerResetPassword.builder()
             .tokenValue("{tokenValue}")
             .newPassword("{newPassword}")
             .build()
 
  • Constructor Details

    • MyCustomerResetPasswordBuilder

      public MyCustomerResetPasswordBuilder()
  • Method Details

    • tokenValue

      public MyCustomerResetPasswordBuilder tokenValue(String tokenValue)

      Value of the token to reset the Customer password.

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

      public MyCustomerResetPasswordBuilder newPassword(String newPassword)

      New password to be set.

      Parameters:
      newPassword - 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
    • build

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

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

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