Class Spec

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class Spec extends Object
A complete Workflow Automation definition, including its triggers, steps, and connections.
  • Field Details

  • Constructor Details

    • Spec

      public Spec()
  • Method Details

    • annotations

      public Spec annotations(List<Annotation> annotations)
    • addAnnotationsItem

      public Spec addAnnotationsItem(Annotation annotationsItem)
    • getAnnotations

      @Nullable public List<Annotation> getAnnotations()
      Up to 100 text annotations displayed on the workflow canvas.
      Returns:
      annotations
    • setAnnotations

      public void setAnnotations(List<Annotation> annotations)
    • connectionEnvs

      public Spec connectionEnvs(List<ConnectionEnv> connectionEnvs)
    • addConnectionEnvsItem

      public Spec addConnectionEnvsItem(ConnectionEnv connectionEnvsItem)
    • getConnectionEnvs

      @Nullable public List<ConnectionEnv> getConnectionEnvs()
      A list of connections or connection groups used in the workflow.
      Returns:
      connectionEnvs
    • setConnectionEnvs

      public void setConnectionEnvs(List<ConnectionEnv> connectionEnvs)
    • handle

      public Spec handle(String handle)
    • getHandle

      @Nullable public String getHandle()
      Unique identifier used to trigger workflows automatically in Datadog.
      Returns:
      handle
    • setHandle

      public void setHandle(String handle)
    • inputSchema

      public Spec inputSchema(InputSchema inputSchema)
    • getInputSchema

      @Nullable public InputSchema getInputSchema()
      A list of input parameters for the workflow. Input parameters are available under the Trigger object and can be referenced in workflow steps using {{ Trigger.<parameter_name> }}.
      Returns:
      inputSchema
    • setInputSchema

      public void setInputSchema(InputSchema inputSchema)
    • outputSchema

      public Spec outputSchema(OutputSchema outputSchema)
    • getOutputSchema

      @Nullable public OutputSchema getOutputSchema()
      A list of output parameters for the workflow.
      Returns:
      outputSchema
    • setOutputSchema

      public void setOutputSchema(OutputSchema outputSchema)
    • steps

      public Spec steps(List<Step> steps)
    • addStepsItem

      public Spec addStepsItem(Step stepsItem)
    • getSteps

      @Nullable public List<Step> getSteps()
      A Step is a sub-component of a workflow. Each Step performs an action.
      Returns:
      steps
    • setSteps

      public void setSteps(List<Step> steps)
    • triggers

      public Spec triggers(List<Trigger> triggers)
    • addTriggersItem

      public Spec addTriggersItem(Trigger triggersItem)
    • getTriggers

      @Nullable public List<Trigger> getTriggers()
      The list of triggers that activate this workflow. At least one trigger is required, and each trigger type may appear at most once.
      Returns:
      triggers
    • setTriggers

      public void setTriggers(List<Trigger> triggers)
    • putAdditionalProperty

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