Class FleetScheduleV2Attributes

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

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

  • Constructor Details

    • FleetScheduleV2Attributes

      public FleetScheduleV2Attributes()
  • Method Details

    • createdAt

      public FleetScheduleV2Attributes createdAt(String createdAt)
    • getCreatedAt

      @Nullable public String getCreatedAt()
      RFC3339 timestamp when the schedule was created.
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(String createdAt)
    • createdBy

      public FleetScheduleV2Attributes 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)
    • isDefault

      public FleetScheduleV2Attributes isDefault(Boolean isDefault)
    • getIsDefault

      @Nullable public Boolean getIsDefault()
      Whether this is the default schedule for the organization.
      Returns:
      isDefault
    • setIsDefault

      public void setIsDefault(Boolean isDefault)
    • name

      public FleetScheduleV2Attributes name(String name)
    • getName

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

      public void setName(String name)
    • nextRun

      public FleetScheduleV2Attributes nextRun(String nextRun)
    • getNextRun

      @Nullable public String getNextRun()
      RFC3339 timestamp of the next scheduled maintenance window start time. Absent when the next run time cannot be computed.
      Returns:
      nextRun
    • setNextRun

      public void setNextRun(String nextRun)
    • notificationRule

      public FleetScheduleV2Attributes notificationRule(FleetScheduleV2NotificationRule notificationRule)
    • getNotificationRule

      @Nullable public FleetScheduleV2NotificationRule getNotificationRule()
      Notification configuration attached to a schedule.

      Included when available. If the notification rule cannot be retrieved, this field is omitted and the schedule is still returned. If the notification rule is retrieved but its handles cannot be resolved, it is still included with an empty handles array.

      Returns:
      notificationRule
    • setNotificationRule

      public void setNotificationRule(FleetScheduleV2NotificationRule notificationRule)
    • query

      public FleetScheduleV2Attributes query(String query)
    • getQuery

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

      public void setQuery(String query)
    • rule

    • getRule

      @Nullable public FleetScheduleV2RecurrenceRule getRule()
      Defines the recurrence pattern for the schedule.
      Returns:
      rule
    • setRule

      public void setRule(FleetScheduleV2RecurrenceRule 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)
    • updatedAt

      public FleetScheduleV2Attributes updatedAt(String updatedAt)
    • getUpdatedAt

      @Nullable public String getUpdatedAt()
      RFC3339 timestamp when the schedule was last updated.
      Returns:
      updatedAt
    • setUpdatedAt

      public void setUpdatedAt(String updatedAt)
    • updatedBy

      public FleetScheduleV2Attributes 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 FleetScheduleV2Attributes 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. minimum: 0 maximum: 2
      Returns:
      versionToLatest
    • setVersionToLatest

      public void setVersionToLatest(Long versionToLatest)
    • putAdditionalProperty

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