Class FleetDeploymentOperation

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class FleetDeploymentOperation extends Object
A single configuration file operation to perform on the target hosts.
  • Field Details

  • Constructor Details

    • FleetDeploymentOperation

      public FleetDeploymentOperation()
    • FleetDeploymentOperation

      public FleetDeploymentOperation(FleetDeploymentFileOp fileOp, String filePath)
  • Method Details

    • fileOp

    • getFileOp

      public FleetDeploymentFileOp getFileOp()
      Type of file operation to perform on the target configuration file. - merge-patch: Merges the provided patch data with the existing configuration file. Creates the file if it doesn't exist. - delete: Removes the specified configuration file from the target hosts.
      Returns:
      fileOp
    • setFileOp

      public void setFileOp(FleetDeploymentFileOp fileOp)
    • filePath

      public FleetDeploymentOperation filePath(String filePath)
    • getFilePath

      public String getFilePath()
      Absolute path to the target configuration file on the host.
      Returns:
      filePath
    • setFilePath

      public void setFilePath(String filePath)
    • patch

      public FleetDeploymentOperation patch(Map<String,Object> patch)
    • putPatchItem

      public FleetDeploymentOperation putPatchItem(String key, Object patchItem)
    • getPatch

      @Nullable public Map<String,Object> getPatch()
      Patch data in JSON format to apply to the configuration file. When using merge-patch , this object is merged with the existing configuration, allowing you to add, update, or override specific fields without replacing the entire file. The structure must match the target configuration file format (for example, YAML structure for Datadog Agent config). Not applicable when using the delete operation.
      Returns:
      patch
    • setPatch

      public void setPatch(Map<String,Object> patch)
    • putAdditionalProperty

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