Class CustomerEmailVerifyBuilder

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

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

     CustomerEmailVerify customerEmailVerify = CustomerEmailVerify.builder()
             .tokenValue("{tokenValue}")
             .build()
 
  • Constructor Details

    • CustomerEmailVerifyBuilder

      public CustomerEmailVerifyBuilder()
  • Method Details

    • version

      public CustomerEmailVerifyBuilder version(@Nullable Long version)

      Expected version of the Customer.

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

      public CustomerEmailVerifyBuilder tokenValue(String tokenValue)

      Value of the token to verify Customer email.

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

      @Nullable public Long getVersion()

      Expected version of the Customer.

      Returns:
      version
    • getTokenValue

      public String getTokenValue()

      Value of the token to verify Customer email.

      Returns:
      tokenValue
    • build

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

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

      public static CustomerEmailVerifyBuilder of()
      factory method for an instance of CustomerEmailVerifyBuilder
      Returns:
      builder
    • of

      public static CustomerEmailVerifyBuilder of(CustomerEmailVerify template)
      create builder for CustomerEmailVerify instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder