Interface ValidFromAndUntilValue


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

     ValidFromAndUntilValue validFromAndUntilValue = ValidFromAndUntilValue.builder()
             .validFrom("{validFrom}")
             .validUntil("{validUntil}")
             .build()
 
  • Method Details

    • getValidFrom

      @NotNull @NotNull String getValidFrom()

      Date and time (UTC) from when the Discount is effective.

      Returns:
      validFrom
    • getValidUntil

      @NotNull @NotNull String getValidUntil()

      Date and time (UTC) until when the Discount is effective.

      Returns:
      validUntil
    • setValidFrom

      void setValidFrom(String validFrom)

      Date and time (UTC) from when the Discount is effective.

      Parameters:
      validFrom - value to be set
    • setValidUntil

      void setValidUntil(String validUntil)

      Date and time (UTC) until when the Discount is effective.

      Parameters:
      validUntil - value to be set
    • of

      factory method
      Returns:
      instance of ValidFromAndUntilValue
    • of

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

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

      builder factory method for ValidFromAndUntilValue
      Returns:
      builder
    • builder

      create builder for ValidFromAndUntilValue instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withValidFromAndUntilValue

      default <T> T withValidFromAndUntilValue(Function<ValidFromAndUntilValue,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<ValidFromAndUntilValue> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference