Class FleetScheduleCreateAttributes

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class FleetScheduleCreateAttributes extends Object
Attributes for creating a new schedule.
  • Field Details

  • Constructor Details

    • FleetScheduleCreateAttributes

      public FleetScheduleCreateAttributes()
    • FleetScheduleCreateAttributes

      public FleetScheduleCreateAttributes(String name, String query, FleetScheduleRecurrenceRule rule)
  • Method Details

    • name

    • getName

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

      public void setName(String name)
    • query

      public FleetScheduleCreateAttributes query(String query)
    • getQuery

      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

      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 FleetScheduleCreateAttributes 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 (default) - 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 FleetScheduleCreateAttributes 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:
      FleetScheduleCreateAttributes
    • 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 FleetScheduleCreateAttributes 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