Interface CustomerCreateEmailToken


public interface CustomerCreateEmailToken
CustomerCreateEmailToken
Example to create an instance using the builder pattern

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

    • getId

      @NotNull @NotNull String getId()

      Unique identifier of the Customer.

      Returns:
      id
    • getVersion

      Long getVersion()

      Expected version of the Customer.

      Returns:
      version
    • getTtlMinutes

      @NotNull @NotNull Long getTtlMinutes()

      Validity period of the generated token in minutes.

      Returns:
      ttlMinutes
    • setId

      void setId(String id)

      Unique identifier of the Customer.

      Parameters:
      id - value to be set
    • setVersion

      void setVersion(Long version)

      Expected version of the Customer.

      Parameters:
      version - value to be set
    • setTtlMinutes

      void setTtlMinutes(Long ttlMinutes)

      Validity period of the generated token in minutes.

      Parameters:
      ttlMinutes - value to be set
    • of

      factory method
      Returns:
      instance of CustomerCreateEmailToken
    • of

      factory method to create a shallow copy CustomerCreateEmailToken
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of CustomerCreateEmailToken
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for CustomerCreateEmailToken
      Returns:
      builder
    • builder

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

      default <T> T withCustomerCreateEmailToken(Function<CustomerCreateEmailToken,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<CustomerCreateEmailToken> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference