Class FleetSchedulePatchAttributes

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class FleetSchedulePatchAttributes extends Object
Attributes for partially updating a schedule. All fields are optional.
  • Field Details

  • Constructor Details

    • FleetSchedulePatchAttributes

      public FleetSchedulePatchAttributes()
  • Method Details

    • name

    • getName

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

      public void setName(String name)
    • query

      public FleetSchedulePatchAttributes 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)
    • versionToLatest

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