Package com.datadog.api.client.v2.model
Class TimeRestriction
java.lang.Object
com.datadog.api.client.v2.model.TimeRestriction
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class TimeRestriction
extends Object
Defines a single time restriction rule with start and end times and the applicable weekdays.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this TimeRestriction object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.A day of the week.Specifies the ending time for this restriction.A day of the week.Specifies the starting time for this restriction.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidvoidsetEndTime(String endTime) voidsetStartDay(Weekday startDay) voidsetStartTime(String startTime) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_END_DAY
- See Also:
-
JSON_PROPERTY_END_TIME
- See Also:
-
JSON_PROPERTY_START_DAY
- See Also:
-
JSON_PROPERTY_START_TIME
- See Also:
-
-
Constructor Details
-
TimeRestriction
public TimeRestriction()
-
-
Method Details
-
endDay
-
getEndDay
A day of the week.- Returns:
- endDay
-
setEndDay
-
endTime
-
getEndTime
Specifies the ending time for this restriction.- Returns:
- endTime
-
setEndTime
-
startDay
-
getStartDay
A day of the week.- Returns:
- startDay
-
setStartDay
-
startTime
-
getStartTime
Specifies the starting time for this restriction.- Returns:
- startTime
-
setStartTime
-
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:
- TimeRestriction
-
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 TimeRestriction object is equal to o. -
hashCode
public int hashCode() -
toString
-