Class ProductAnalyticsCalendarInterval

java.lang.Object
com.datadog.api.client.v2.model.ProductAnalyticsCalendarInterval

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ProductAnalyticsCalendarInterval extends Object
A calendar-aligned bucket definition, such as "every 1 week starting on Monday".
  • Field Details

  • Constructor Details

    • ProductAnalyticsCalendarInterval

      public ProductAnalyticsCalendarInterval()
    • ProductAnalyticsCalendarInterval

      public ProductAnalyticsCalendarInterval(ProductAnalyticsCalendarIntervalType type)
  • Method Details

    • alignment

      public ProductAnalyticsCalendarInterval alignment(String alignment)
    • getAlignment

      @Nullable public String getAlignment()
      Where each bucket starts within the calendar unit. Use an hour for day (for example 1am or 14), a day name for week (for example monday), or an ordinal for month (for example 1st).
      Returns:
      alignment
    • setAlignment

      public void setAlignment(String alignment)
    • quantity

      public ProductAnalyticsCalendarInterval quantity(Long quantity)
    • getQuantity

      @Nullable public Long getQuantity()
      Number of calendar units per bucket. minimum: 1
      Returns:
      quantity
    • setQuantity

      public void setQuantity(Long quantity)
    • timezone

      public ProductAnalyticsCalendarInterval timezone(String timezone)
    • getTimezone

      @Nullable public String getTimezone()
      Timezone used to align the buckets.
      Returns:
      timezone
    • setTimezone

      public void setTimezone(String timezone)
    • type

    • getType

      Calendar unit used to bucket cohorts.
      Returns:
      type
    • setType

      public void setType(ProductAnalyticsCalendarIntervalType type)
    • putAdditionalProperty

      public ProductAnalyticsCalendarInterval putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - The arbitrary key to set
      value - The associated value
      Returns:
      ProductAnalyticsCalendarInterval
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      The additional properties
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - The arbitrary key to get
      Returns:
      The specific additional property for the given key
    • equals

      public boolean equals(Object o)
      Return true if this ProductAnalyticsCalendarInterval 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