Enum Class Ttl

java.lang.Object
java.lang.Enum<Ttl>
com.here.platform.data.client.model.Ttl
All Implemented Interfaces:
Serializable, Comparable<Ttl>, Constable

public enum Ttl extends Enum<Ttl>
TTL enums for index layer.

All the values are converted to days. For example, `OneMonth` is 30 days and `OneYear` is 365 days.

  • Enum Constant Details

    • SevenDays

      public static final Ttl SevenDays
      7 days
    • FifteenDays

      public static final Ttl FifteenDays
      15 days
    • OneMonth

      public static final Ttl OneMonth
      30 days
    • TwoMonths

      public static final Ttl TwoMonths
      60 days
    • ThreeMonths

      public static final Ttl ThreeMonths
      90 days
    • FourMonths

      public static final Ttl FourMonths
      120 days
    • SixMonths

      public static final Ttl SixMonths
      180 days
    • OneYear

      public static final Ttl OneYear
      365 days
    • OneAndHalfYears

      public static final Ttl OneAndHalfYears
      548 days
    • TwoYears

      public static final Ttl TwoYears
      730 days
    • Unlimited

      public static final Ttl Unlimited
  • Method Details

    • values

      public static Ttl[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Ttl valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Ttl>
    • valueOfIgnoreCase

      public static Ttl valueOfIgnoreCase(String value)