Class FleetDeploymentV2Attributes

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

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

  • Constructor Details

    • FleetDeploymentV2Attributes

      public FleetDeploymentV2Attributes()
  • Method Details

    • author

      public FleetDeploymentV2Attributes author(String author)
    • getAuthor

      @Nullable public String getAuthor()
      Handle of the user who triggered the deployment.
      Returns:
      author
    • setAuthor

      public void setAuthor(String author)
    • configOperations

      public FleetDeploymentV2Attributes configOperations(List<FleetDeploymentOperation> configOperations)
    • addConfigOperationsItem

      public FleetDeploymentV2Attributes addConfigOperationsItem(FleetDeploymentOperation configOperationsItem)
    • getConfigOperations

      @Nullable public List<FleetDeploymentOperation> getConfigOperations()
      Ordered list of configuration file operations applied by this deployment. Absent for package deployments, which have no configuration file operations.
      Returns:
      configOperations
    • setConfigOperations

      public void setConfigOperations(List<FleetDeploymentOperation> configOperations)
    • durationSeconds

      public FleetDeploymentV2Attributes durationSeconds(Long durationSeconds)
    • getDurationSeconds

      @Nullable public Long getDurationSeconds()
      Duration of the deployment in seconds, computed as finished_at - started_at. Zero if the deployment has not finished.
      Returns:
      durationSeconds
    • setDurationSeconds

      public void setDurationSeconds(Long durationSeconds)
    • errorSummary

      public FleetDeploymentV2Attributes errorSummary(String errorSummary)
    • getErrorSummary

      @Nullable public String getErrorSummary()
      Top-level error message for the deployment. Populated only when the deployment has failed.
      Returns:
      errorSummary
    • setErrorSummary

      public void setErrorSummary(String errorSummary)
    • estimatedFinishedAt

      public FleetDeploymentV2Attributes estimatedFinishedAt(Long estimatedFinishedAt)
    • getEstimatedFinishedAt

      @Nullable public Long getEstimatedFinishedAt()
      Estimated completion time of the deployment as a Unix timestamp. Zero if not available.
      Returns:
      estimatedFinishedAt
    • setEstimatedFinishedAt

      public void setEstimatedFinishedAt(Long estimatedFinishedAt)
    • finishedAt

      public FleetDeploymentV2Attributes finishedAt(Long finishedAt)
    • getFinishedAt

      @Nullable public Long getFinishedAt()
      Time the deployment finished as a Unix timestamp. Zero if not yet finished.
      Returns:
      finishedAt
    • setFinishedAt

      public void setFinishedAt(Long finishedAt)
    • isScheduled

      public FleetDeploymentV2Attributes isScheduled(Boolean isScheduled)
    • getIsScheduled

      @Nullable public Boolean getIsScheduled()
      Whether this deployment was triggered by a schedule (schedule_id is non-empty).
      Returns:
      isScheduled
    • setIsScheduled

      public void setIsScheduled(Boolean isScheduled)
    • query

      public FleetDeploymentV2Attributes query(String query)
    • getQuery

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

      public void setQuery(String query)
    • scheduleId

      public FleetDeploymentV2Attributes scheduleId(String scheduleId)
    • getScheduleId

      @Nullable public String getScheduleId()
      Identifier of the schedule that triggered this deployment. Empty if triggered manually.
      Returns:
      scheduleId
    • setScheduleId

      public void setScheduleId(String scheduleId)
    • startedAt

      public FleetDeploymentV2Attributes startedAt(Long startedAt)
    • getStartedAt

      @Nullable public Long getStartedAt()
      Time the deployment started as a Unix timestamp. Zero if not yet started.
      Returns:
      startedAt
    • setStartedAt

      public void setStartedAt(Long startedAt)
    • status

      public FleetDeploymentV2Attributes status(String status)
    • getStatus

      @Nullable public String getStatus()
      Current high-level status of the deployment (for example, "pending", "running", "completed", "failed").
      Returns:
      status
    • setStatus

      public void setStatus(String status)
    • targetVersions

      public FleetDeploymentV2Attributes targetVersions(List<String> targetVersions)
    • addTargetVersionsItem

      public FleetDeploymentV2Attributes addTargetVersionsItem(String targetVersionsItem)
    • getTargetVersions

      @Nullable public List<String> getTargetVersions()
      Package versions targeted by this deployment.
      Returns:
      targetVersions
    • setTargetVersions

      public void setTargetVersions(List<String> targetVersions)
    • totalHosts

      public FleetDeploymentV2Attributes totalHosts(Long totalHosts)
    • getTotalHosts

      @Nullable public Long getTotalHosts()
      Total number of hosts targeted by this deployment.
      Returns:
      totalHosts
    • setTotalHosts

      public void setTotalHosts(Long totalHosts)
    • updateType

      public FleetDeploymentV2Attributes updateType(String updateType)
    • getUpdateType

      @Nullable public String getUpdateType()
      Type of update operation performed by this deployment (for example, "update_config_operations", "update_package").
      Returns:
      updateType
    • setUpdateType

      public void setUpdateType(String updateType)
    • putAdditionalProperty

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