Package com.datadog.api.client.v1.model
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddWeekDaysItem(String weekDaysItem) booleanReturn true if this DowntimeRecurrence object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.How often to repeat as an integer.getRrule()TheRRULEstandard 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 torruleand set theFREQtoMONTHLYandBYMONTHDAYto1.getType()The type of recurrence.The date at which the recurrence should end as a POSIX timestamp.org.openapitools.jackson.nullable.JsonNullable<Long>How many times the downtime is rescheduled.org.openapitools.jackson.nullable.JsonNullable<Integer>A list of week days to repeat on.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidvoidvoidvoidsetUntilDate(Long untilDate) voidsetUntilDate_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> untilDate) voidsetUntilOccurrences(Integer untilOccurrences) voidsetUntilOccurrences_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Integer> untilOccurrences) voidsetWeekDays(List<String> weekDays) voidsetWeekDays_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<String>> weekDays) toString()untilOccurrences(Integer untilOccurrences)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_PERIOD
- See Also:
-
JSON_PROPERTY_RRULE
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
JSON_PROPERTY_UNTIL_DATE
- See Also:
-
JSON_PROPERTY_UNTIL_OCCURRENCES
- See Also:
-
JSON_PROPERTY_WEEK_DAYS
- See Also:
-
-
Constructor Details
-
DowntimeRecurrence
public DowntimeRecurrence()
-
-
Method Details
-
period
-
getPeriod
How often to repeat as an integer. For example, to repeat every 3 days, select a type ofdaysand a period of3. maximum: 2147483647- Returns:
- period
-
setPeriod
-
rrule
-
getRrule
TheRRULEstandard 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 torruleand set theFREQtoMONTHLYandBYMONTHDAYto1. Most commonrruleoptions from the iCalendar Spec are supported.Note: Attributes specifying the duration in
RRULEare not supported (for example,DTSTART,DTEND,DURATION). More examples available in this downtime guide- Returns:
- rrule
-
setRrule
-
type
-
getType
The type of recurrence. Choose fromdays,weeks,months,years,rrule.- Returns:
- type
-
setType
-
untilDate
-
getUntilDate
The date at which the recurrence should end as a POSIX timestamp.until_occurencesanduntil_dateare mutually exclusive.- Returns:
- untilDate
-
getUntilDate_JsonNullable
-
setUntilDate_JsonNullable
public void setUntilDate_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> untilDate) -
setUntilDate
-
untilOccurrences
-
getUntilOccurrences
How many times the downtime is rescheduled.until_occurencesanduntil_dateare mutually exclusive. maximum: 2147483647- Returns:
- untilOccurrences
-
getUntilOccurrences_JsonNullable
-
setUntilOccurrences_JsonNullable
public void setUntilOccurrences_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Integer> untilOccurrences) -
setUntilOccurrences
-
weekDays
-
addWeekDaysItem
-
getWeekDays
A list of week days to repeat on. Choose fromMon,Tue,Wed,Thu,Fri,SatorSun. Only applicable when type is weeks. First letter must be capitalized.- Returns:
- weekDays
-
getWeekDays_JsonNullable
-
setWeekDays_JsonNullable
-
setWeekDays
-
putAdditionalProperty
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 setvalue- The associated value- Returns:
- DowntimeRecurrence
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
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
Return true if this DowntimeRecurrence object is equal to o. -
hashCode
public int hashCode() -
toString
-