Class MaintenanceWindowAttributes

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class MaintenanceWindowAttributes extends Object
Attributes of a maintenance window, including its schedule and the query that determines which cases are affected.
  • Field Details

  • Constructor Details

    • MaintenanceWindowAttributes

      public MaintenanceWindowAttributes()
    • MaintenanceWindowAttributes

      public MaintenanceWindowAttributes(OffsetDateTime endAt, String name, String query, OffsetDateTime startAt)
  • Method Details

    • getCreatedBy

      @Nullable public String getCreatedBy()
      The UUID of the user who created this maintenance window. Read-only.
      Returns:
      createdBy
    • endAt

    • getEndAt

      public OffsetDateTime getEndAt()
      The ISO 8601 timestamp when the maintenance window ends and normal notification behavior resumes.
      Returns:
      endAt
    • setEndAt

      public void setEndAt(OffsetDateTime endAt)
    • name

      public MaintenanceWindowAttributes name(String name)
    • getName

      public String getName()
      A human-readable name for the maintenance window (for example, Database migration - Dec 15).
      Returns:
      name
    • setName

      public void setName(String name)
    • query

      public MaintenanceWindowAttributes query(String query)
    • getQuery

      public String getQuery()
      A case search query that determines which cases are affected during the maintenance window. Uses the same syntax as the Case Management search bar.
      Returns:
      query
    • setQuery

      public void setQuery(String query)
    • startAt

      public MaintenanceWindowAttributes startAt(OffsetDateTime startAt)
    • getStartAt

      public OffsetDateTime getStartAt()
      The ISO 8601 timestamp when the maintenance window begins and notifications start being suppressed.
      Returns:
      startAt
    • setStartAt

      public void setStartAt(OffsetDateTime startAt)
    • getUpdatedBy

      @Nullable public String getUpdatedBy()
      The UUID of the user who last modified this maintenance window. Read-only.
      Returns:
      updatedBy
    • putAdditionalProperty

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