Package com.datadog.api.client.v2.model
Class SyntheticsDowntimeTimeSlotRequest
java.lang.Object
com.datadog.api.client.v2.model.SyntheticsDowntimeTimeSlotRequest
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class SyntheticsDowntimeTimeSlotRequest
extends Object
A time slot for a Synthetics downtime create or update request.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSyntheticsDowntimeTimeSlotRequest(Long duration, SyntheticsDowntimeTimeSlotDate start, String timezone) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this SyntheticsDowntimeTimeSlotRequest object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The duration of the time slot in seconds, between 60 and 604800.getName()An optional label for the time slot.Recurrence settings for a Synthetics downtime time slot.getStart()A specific date and time used to define the start or end of a Synthetics downtime time slot.The IANA timezone name for the time slot.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetDuration(Long duration) voidvoidvoidvoidsetTimezone(String timezone) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_DURATION
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_RECURRENCE
- See Also:
-
JSON_PROPERTY_START
- See Also:
-
JSON_PROPERTY_TIMEZONE
- See Also:
-
-
Constructor Details
-
SyntheticsDowntimeTimeSlotRequest
public SyntheticsDowntimeTimeSlotRequest() -
SyntheticsDowntimeTimeSlotRequest
public SyntheticsDowntimeTimeSlotRequest(Long duration, SyntheticsDowntimeTimeSlotDate start, String timezone)
-
-
Method Details
-
duration
-
getDuration
The duration of the time slot in seconds, between 60 and 604800.- Returns:
- duration
-
setDuration
-
name
-
getName
An optional label for the time slot.- Returns:
- name
-
setName
-
recurrence
public SyntheticsDowntimeTimeSlotRequest recurrence(SyntheticsDowntimeTimeSlotRecurrenceRequest recurrence) -
getRecurrence
Recurrence settings for a Synthetics downtime time slot.- Returns:
- recurrence
-
setRecurrence
-
start
-
getStart
A specific date and time used to define the start or end of a Synthetics downtime time slot.- Returns:
- start
-
setStart
-
timezone
-
getTimezone
The IANA timezone name for the time slot.- Returns:
- timezone
-
setTimezone
-
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:
- SyntheticsDowntimeTimeSlotRequest
-
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 SyntheticsDowntimeTimeSlotRequest object is equal to o. -
hashCode
public int hashCode() -
toString
-