Class DowntimeRecurrence

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class DowntimeRecurrence extends Object
An object defining the recurrence of the downtime.
  • Field Details

  • Constructor Details

    • DowntimeRecurrence

      public DowntimeRecurrence()
  • Method Details

    • period

      public DowntimeRecurrence period(Integer period)
    • getPeriod

      @Nullable public Integer getPeriod()
      How often to repeat as an integer. For example, to repeat every 3 days, select a type of days and a period of 3. maximum: 2147483647
      Returns:
      period
    • setPeriod

      public void setPeriod(Integer period)
    • rrule

      public DowntimeRecurrence rrule(String rrule)
    • getRrule

      @Nullable public String getRrule()
      The RRULE standard for defining recurring events (requires to set "type" to rrule) For example, to have a recurring event on the first day of each month, set the type to rrule and set the FREQ to MONTHLY and BYMONTHDAY to 1. Most common rrule options from the iCalendar Spec are supported.

      Note: Attributes specifying the duration in RRULE are not supported (for example, DTSTART, DTEND, DURATION). More examples available in this downtime guide

      Returns:
      rrule
    • setRrule

      public void setRrule(String rrule)
    • type

      public DowntimeRecurrence type(String type)
    • getType

      @Nullable public String getType()
      The type of recurrence. Choose from days, weeks, months, years, rrule.
      Returns:
      type
    • setType

      public void setType(String type)
    • untilDate

      public DowntimeRecurrence untilDate(Long untilDate)
    • getUntilDate

      @Nullable public Long getUntilDate()
      The date at which the recurrence should end as a POSIX timestamp. until_occurences and until_date are mutually exclusive.
      Returns:
      untilDate
    • getUntilDate_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<Long> getUntilDate_JsonNullable()
    • setUntilDate_JsonNullable

      public void setUntilDate_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> untilDate)
    • setUntilDate

      public void setUntilDate(Long untilDate)
    • untilOccurrences

      public DowntimeRecurrence untilOccurrences(Integer untilOccurrences)
    • getUntilOccurrences

      @Nullable public Integer getUntilOccurrences()
      How many times the downtime is rescheduled. until_occurences and until_date are mutually exclusive. maximum: 2147483647
      Returns:
      untilOccurrences
    • getUntilOccurrences_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<Integer> getUntilOccurrences_JsonNullable()
    • setUntilOccurrences_JsonNullable

      public void setUntilOccurrences_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Integer> untilOccurrences)
    • setUntilOccurrences

      public void setUntilOccurrences(Integer untilOccurrences)
    • weekDays

      public DowntimeRecurrence weekDays(List<String> weekDays)
    • addWeekDaysItem

      public DowntimeRecurrence addWeekDaysItem(String weekDaysItem)
    • getWeekDays

      @Nullable public List<String> getWeekDays()
      A list of week days to repeat on. Choose from Mon, Tue, Wed , Thu, Fri, Sat or Sun. Only applicable when type is weeks. First letter must be capitalized.
      Returns:
      weekDays
    • getWeekDays_JsonNullable

      public org.openapitools.jackson.nullable.JsonNullable<List<String>> getWeekDays_JsonNullable()
    • setWeekDays_JsonNullable

      public void setWeekDays_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<String>> weekDays)
    • setWeekDays

      public void setWeekDays(List<String> weekDays)
    • putAdditionalProperty

      public DowntimeRecurrence 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:
      DowntimeRecurrence
    • 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 DowntimeRecurrence 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