Class LayerAttributes

java.lang.Object
com.datadog.api.client.v2.model.LayerAttributes

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class LayerAttributes extends Object
Describes key properties of a Layer, including rotation details, name, start/end times, and any restrictions.
  • Field Details

  • Constructor Details

    • LayerAttributes

      public LayerAttributes()
  • Method Details

    • effectiveDate

      public LayerAttributes effectiveDate(OffsetDateTime effectiveDate)
    • getEffectiveDate

      @Nullable public OffsetDateTime getEffectiveDate()
      When the layer becomes active (ISO 8601).
      Returns:
      effectiveDate
    • setEffectiveDate

      public void setEffectiveDate(OffsetDateTime effectiveDate)
    • endDate

      public LayerAttributes endDate(OffsetDateTime endDate)
    • getEndDate

      @Nullable public OffsetDateTime getEndDate()
      When the layer ceases to be active (ISO 8601).
      Returns:
      endDate
    • setEndDate

      public void setEndDate(OffsetDateTime endDate)
    • interval

      public LayerAttributes interval(LayerAttributesInterval interval)
    • getInterval

      @Nullable public LayerAttributesInterval getInterval()
      Defines how often the rotation repeats, using a combination of days and optional seconds. Should be at least 1 hour.
      Returns:
      interval
    • setInterval

      public void setInterval(LayerAttributesInterval interval)
    • name

      public LayerAttributes name(String name)
    • getName

      @Nullable public String getName()
      The name of this layer.
      Returns:
      name
    • setName

      public void setName(String name)
    • restrictions

      public LayerAttributes restrictions(List<TimeRestriction> restrictions)
    • addRestrictionsItem

      public LayerAttributes addRestrictionsItem(TimeRestriction restrictionsItem)
    • getRestrictions

      @Nullable public List<TimeRestriction> getRestrictions()
      An optional list of time restrictions for when this layer is in effect.
      Returns:
      restrictions
    • setRestrictions

      public void setRestrictions(List<TimeRestriction> restrictions)
    • rotationStart

      public LayerAttributes rotationStart(OffsetDateTime rotationStart)
    • getRotationStart

      @Nullable public OffsetDateTime getRotationStart()
      The date/time when the rotation starts (ISO 8601).
      Returns:
      rotationStart
    • setRotationStart

      public void setRotationStart(OffsetDateTime rotationStart)
    • timeZone

      public LayerAttributes timeZone(String timeZone)
    • getTimeZone

      @Nullable public String getTimeZone()
      The time zone for this layer.
      Returns:
      timeZone
    • setTimeZone

      public void setTimeZone(String timeZone)
    • putAdditionalProperty

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