Class FleetScheduleAttributes

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class FleetScheduleAttributes extends Object
Attributes of a schedule in the response.
  • Field Details

  • Constructor Details

    • FleetScheduleAttributes

      public FleetScheduleAttributes()
  • Method Details

    • createdAtUnix

      public FleetScheduleAttributes createdAtUnix(Long createdAtUnix)
    • getCreatedAtUnix

      @Nullable public Long getCreatedAtUnix()
      Unix timestamp (seconds since epoch) when the schedule was created.
      Returns:
      createdAtUnix
    • setCreatedAtUnix

      public void setCreatedAtUnix(Long createdAtUnix)
    • createdBy

      public FleetScheduleAttributes createdBy(String createdBy)
    • getCreatedBy

      @Nullable public String getCreatedBy()
      User handle of the person who created the schedule.
      Returns:
      createdBy
    • setCreatedBy

      public void setCreatedBy(String createdBy)
    • name

      public FleetScheduleAttributes name(String name)
    • getName

      @Nullable public String getName()
      Human-readable name for the schedule.
      Returns:
      name
    • setName

      public void setName(String name)
    • query

      public FleetScheduleAttributes query(String query)
    • getQuery

      @Nullable public String getQuery()
      Query used to filter and select target hosts for scheduled deployments. Uses the Datadog query syntax.
      Returns:
      query
    • setQuery

      public void setQuery(String query)
    • rule

    • getRule

      @Nullable public FleetScheduleRecurrenceRule getRule()
      Defines the recurrence pattern for the schedule. Specifies when deployments should be automatically triggered based on maintenance windows.
      Returns:
      rule
    • setRule

      public void setRule(FleetScheduleRecurrenceRule rule)
    • status

    • getStatus

      @Nullable public FleetScheduleStatus getStatus()
      The status of the schedule. - active: The schedule is active and will create deployments according to its recurrence rule. - inactive: The schedule is inactive and will not create any deployments.
      Returns:
      status
    • setStatus

      public void setStatus(FleetScheduleStatus status)
    • updatedAtUnix

      public FleetScheduleAttributes updatedAtUnix(Long updatedAtUnix)
    • getUpdatedAtUnix

      @Nullable public Long getUpdatedAtUnix()
      Unix timestamp (seconds since epoch) when the schedule was last updated.
      Returns:
      updatedAtUnix
    • setUpdatedAtUnix

      public void setUpdatedAtUnix(Long updatedAtUnix)
    • updatedBy

      public FleetScheduleAttributes updatedBy(String updatedBy)
    • getUpdatedBy

      @Nullable public String getUpdatedBy()
      User handle of the person who last updated the schedule.
      Returns:
      updatedBy
    • setUpdatedBy

      public void setUpdatedBy(String updatedBy)
    • versionToLatest

      public FleetScheduleAttributes versionToLatest(Long versionToLatest)
    • getVersionToLatest

      @Nullable public Long getVersionToLatest()
      Number of major versions behind the latest to target for upgrades. - 0: Always upgrade to the latest version - 1: Upgrade to latest minus 1 major version - 2: Upgrade to latest minus 2 major versions Maximum value is 2. minimum: 0 maximum: 2
      Returns:
      versionToLatest
    • setVersionToLatest

      public void setVersionToLatest(Long versionToLatest)
    • putAdditionalProperty

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