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 Details

  • Constructor Details

    • TimeRestriction

      public TimeRestriction()
  • Method Details

    • endDay

      public TimeRestriction endDay(Weekday endDay)
    • getEndDay

      @Nullable public Weekday getEndDay()
      A day of the week.
      Returns:
      endDay
    • setEndDay

      public void setEndDay(Weekday endDay)
    • endTime

      public TimeRestriction endTime(String endTime)
    • getEndTime

      @Nullable public String getEndTime()
      Specifies the ending time for this restriction.
      Returns:
      endTime
    • setEndTime

      public void setEndTime(String endTime)
    • startDay

      public TimeRestriction startDay(Weekday startDay)
    • getStartDay

      @Nullable public Weekday getStartDay()
      A day of the week.
      Returns:
      startDay
    • setStartDay

      public void setStartDay(Weekday startDay)
    • startTime

      public TimeRestriction startTime(String startTime)
    • getStartTime

      @Nullable public String getStartTime()
      Specifies the starting time for this restriction.
      Returns:
      startTime
    • setStartTime

      public void setStartTime(String startTime)
    • putAdditionalProperty

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