Class CalendarInterval

java.lang.Object
com.datadog.api.client.v1.model.CalendarInterval

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class CalendarInterval extends Object
Calendar interval definition.
  • Field Details

  • Constructor Details

    • CalendarInterval

      public CalendarInterval()
    • CalendarInterval

      public CalendarInterval(CalendarIntervalType type)
  • Method Details

    • alignment

      public CalendarInterval alignment(String alignment)
    • getAlignment

      @Nullable public String getAlignment()
      Alignment of the interval. Valid values depend on the interval type. For day, use hours (for example, 1am, 2pm, or 14). For week , use day names (for example, monday). For month, use day-of-month ordinals (for example, 1st, 15th). For year or quarter, use month names (for example, january).
      Returns:
      alignment
    • setAlignment

      public void setAlignment(String alignment)
    • quantity

      public CalendarInterval quantity(Long quantity)
    • getQuantity

      @Nullable public Long getQuantity()
      Quantity of the interval.
      Returns:
      quantity
    • setQuantity

      public void setQuantity(Long quantity)
    • timezone

      public CalendarInterval timezone(String timezone)
    • getTimezone

      @Nullable public String getTimezone()
      Timezone for the interval.
      Returns:
      timezone
    • setTimezone

      public void setTimezone(String timezone)
    • type

    • getType

      public CalendarIntervalType getType()
      Type of calendar interval.
      Returns:
      type
    • setType

      public void setType(CalendarIntervalType type)
    • equals

      public boolean equals(Object o)
      Return true if this CalendarInterval object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object