Class CustomerCreateEmailTokenBuilder

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

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

     CustomerCreateEmailToken customerCreateEmailToken = CustomerCreateEmailToken.builder()
             .id("{id}")
             .ttlMinutes(0.3)
             .build()
 
  • Constructor Details

    • CustomerCreateEmailTokenBuilder

      public CustomerCreateEmailTokenBuilder()
  • Method Details

    • id

      Unique identifier of the Customer.

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

      Expected version of the Customer.

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

      public CustomerCreateEmailTokenBuilder ttlMinutes(Long ttlMinutes)

      Validity period of the generated token in minutes.

      Parameters:
      ttlMinutes - value to be set
      Returns:
      Builder
    • getId

      public String getId()

      Unique identifier of the Customer.

      Returns:
      id
    • getVersion

      @Nullable public Long getVersion()

      Expected version of the Customer.

      Returns:
      version
    • getTtlMinutes

      public Long getTtlMinutes()

      Validity period of the generated token in minutes.

      Returns:
      ttlMinutes
    • build

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

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

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

      create builder for CustomerCreateEmailToken instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder