Interface TimeToLiveConfig


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

     TimeToLiveConfig timeToLiveConfig = TimeToLiveConfig.builder()
             .timeToLive("{timeToLive}")
             .build()
 
  • Method Details

    • getTimeToLive

      @NotNull @NotNull String getTimeToLive()

      The time to live of the ImportContainer. Used to generate the expiresAt value of the ImportContainer. The lowest accepted value is 1h and the highest accepted value is 30d.

      Returns:
      timeToLive
    • setTimeToLive

      void setTimeToLive(String timeToLive)

      The time to live of the ImportContainer. Used to generate the expiresAt value of the ImportContainer. The lowest accepted value is 1h and the highest accepted value is 30d.

      Parameters:
      timeToLive - value to be set
    • of

      static TimeToLiveConfig of()
      factory method
      Returns:
      instance of TimeToLiveConfig
    • of

      static TimeToLiveConfig of(TimeToLiveConfig template)
      factory method to create a shallow copy TimeToLiveConfig
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • copyDeep

      TimeToLiveConfig copyDeep()
    • deepCopy

      @Nullable static TimeToLiveConfig deepCopy(@Nullable TimeToLiveConfig template)
      factory method to create a deep copy of TimeToLiveConfig
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static TimeToLiveConfigBuilder builder()
      builder factory method for TimeToLiveConfig
      Returns:
      builder
    • builder

      static TimeToLiveConfigBuilder builder(TimeToLiveConfig template)
      create builder for TimeToLiveConfig instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withTimeToLiveConfig

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