@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class DowntimeRecurrence extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PROPERTY_PERIOD |
static String |
JSON_PROPERTY_RRULE |
static String |
JSON_PROPERTY_TYPE |
static String |
JSON_PROPERTY_UNTIL_DATE |
static String |
JSON_PROPERTY_UNTIL_OCCURRENCES |
static String |
JSON_PROPERTY_WEEK_DAYS |
boolean |
unparsed |
| Constructor and Description |
|---|
DowntimeRecurrence() |
| Modifier and Type | Method and Description |
|---|---|
DowntimeRecurrence |
addWeekDaysItem(String weekDaysItem) |
boolean |
equals(Object o)
Return true if this DowntimeRecurrence object is equal to o.
|
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
Integer |
getPeriod()
How often to repeat as an integer.
|
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. |
String |
getType()
The type of recurrence.
|
org.openapitools.jackson.nullable.JsonNullable<Long> |
getUntilDate_JsonNullable() |
Long |
getUntilDate()
The date at which the recurrence should end as a POSIX timestamp.
|
org.openapitools.jackson.nullable.JsonNullable<Integer> |
getUntilOccurrences_JsonNullable() |
Integer |
getUntilOccurrences()
How many times the downtime is rescheduled.
|
org.openapitools.jackson.nullable.JsonNullable<List<String>> |
getWeekDays_JsonNullable() |
List<String> |
getWeekDays()
A list of week days to repeat on.
|
int |
hashCode() |
DowntimeRecurrence |
period(Integer period) |
DowntimeRecurrence |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
DowntimeRecurrence |
rrule(String rrule) |
void |
setPeriod(Integer period) |
void |
setRrule(String rrule) |
void |
setType(String type) |
void |
setUntilDate_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> untilDate) |
void |
setUntilDate(Long untilDate) |
void |
setUntilOccurrences_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Integer> untilOccurrences) |
void |
setUntilOccurrences(Integer untilOccurrences) |
void |
setWeekDays_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<String>> weekDays) |
void |
setWeekDays(List<String> weekDays) |
String |
toString() |
DowntimeRecurrence |
type(String type) |
DowntimeRecurrence |
untilDate(Long untilDate) |
DowntimeRecurrence |
untilOccurrences(Integer untilOccurrences) |
DowntimeRecurrence |
weekDays(List<String> weekDays) |
public boolean unparsed
public static final String JSON_PROPERTY_PERIOD
public static final String JSON_PROPERTY_RRULE
public static final String JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_UNTIL_DATE
public static final String JSON_PROPERTY_UNTIL_OCCURRENCES
public static final String JSON_PROPERTY_WEEK_DAYS
public DowntimeRecurrence period(Integer period)
@Nullable public Integer getPeriod()
days and a period of 3. maximum: 2147483647public void setPeriod(Integer period)
public DowntimeRecurrence rrule(String rrule)
@Nullable public String getRrule()
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
public void setRrule(String rrule)
public DowntimeRecurrence type(String type)
@Nullable public String getType()
days, weeks, months,
years, rrule.public void setType(String type)
public DowntimeRecurrence untilDate(Long untilDate)
@Nullable public Long getUntilDate()
until_occurences
and until_date are mutually exclusive.public org.openapitools.jackson.nullable.JsonNullable<Long> getUntilDate_JsonNullable()
public void setUntilDate_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Long> untilDate)
public void setUntilDate(Long untilDate)
public DowntimeRecurrence untilOccurrences(Integer untilOccurrences)
@Nullable public Integer getUntilOccurrences()
until_occurences and until_date
are mutually exclusive. maximum: 2147483647public org.openapitools.jackson.nullable.JsonNullable<Integer> getUntilOccurrences_JsonNullable()
public void setUntilOccurrences_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<Integer> untilOccurrences)
public void setUntilOccurrences(Integer untilOccurrences)
public DowntimeRecurrence weekDays(List<String> weekDays)
public DowntimeRecurrence addWeekDaysItem(String weekDaysItem)
@Nullable public List<String> getWeekDays()
Mon, Tue, Wed
, Thu, Fri, Sat or Sun. Only
applicable when type is weeks. First letter must be capitalized.public org.openapitools.jackson.nullable.JsonNullable<List<String>> getWeekDays_JsonNullable()
public void setWeekDays_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<String>> weekDays)
public DowntimeRecurrence putAdditionalProperty(String key, Object value)
key - The arbitrary key to setvalue - The associated valuepublic Map<String,Object> getAdditionalProperties()
public Object getAdditionalProperty(String key)
key - The arbitrary key to getpublic boolean equals(Object o)
Copyright © 2024. All rights reserved.