Class WorkflowDataAttributes

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class WorkflowDataAttributes extends Object
The definition of WorkflowDataAttributes object.
  • Field Details

  • Constructor Details

    • WorkflowDataAttributes

      public WorkflowDataAttributes()
    • WorkflowDataAttributes

      public WorkflowDataAttributes(String name, Spec spec)
  • Method Details

    • getCreatedAt

      @Nullable public OffsetDateTime getCreatedAt()
      When the workflow was created.
      Returns:
      createdAt
    • description

      public WorkflowDataAttributes description(String description)
    • getDescription

      @Nullable public String getDescription()
      Description of the workflow.
      Returns:
      description
    • setDescription

      public void setDescription(String description)
    • name

      public WorkflowDataAttributes name(String name)
    • getName

      public String getName()
      Name of the workflow.
      Returns:
      name
    • setName

      public void setName(String name)
    • published

      public WorkflowDataAttributes published(Boolean published)
    • getPublished

      @Nullable public Boolean getPublished()
      Set the workflow to published or unpublished. Workflows in an unpublished state will only be executable via manual runs. Automatic triggers such as Schedule will not execute the workflow until it is published.
      Returns:
      published
    • setPublished

      public void setPublished(Boolean published)
    • runAs

      public WorkflowDataAttributes runAs(WorkflowRunAs runAs)
    • getRunAs

      @Nullable public WorkflowRunAs getRunAs()
      Identity used to run the workflow.
      Returns:
      runAs
    • setRunAs

      public void setRunAs(WorkflowRunAs runAs)
    • runAsUserMode

      public WorkflowDataAttributes runAsUserMode(WorkflowRunAsUserMode runAsUserMode)
    • getRunAsUserMode

      @Nullable public WorkflowRunAsUserMode getRunAsUserMode()
      The effective type of identity used to run the workflow.
      Returns:
      runAsUserMode
    • setRunAsUserMode

      public void setRunAsUserMode(WorkflowRunAsUserMode runAsUserMode)
    • sensitivePrivileges

      public WorkflowDataAttributes sensitivePrivileges(Boolean sensitivePrivileges)
    • getSensitivePrivileges

      @Nullable public Boolean getSensitivePrivileges()
      Whether the workflow requires sensitive privileges to run. Only the workflow owner can update this field. This allows it to run actions that use Execution Policies.
      Returns:
      sensitivePrivileges
    • setSensitivePrivileges

      public void setSensitivePrivileges(Boolean sensitivePrivileges)
    • spec

      public WorkflowDataAttributes spec(Spec spec)
    • getSpec

      public Spec getSpec()
      A complete Workflow Automation definition, including its triggers, steps, and connections.
      Returns:
      spec
    • setSpec

      public void setSpec(Spec spec)
    • tags

      public WorkflowDataAttributes tags(List<String> tags)
    • addTagsItem

      public WorkflowDataAttributes addTagsItem(String tagsItem)
    • getTags

      @Nullable public List<String> getTags()
      Tags of the workflow.
      Returns:
      tags
    • setTags

      public void setTags(List<String> tags)
    • getUpdatedAt

      @Nullable public OffsetDateTime getUpdatedAt()
      When the workflow was last updated.
      Returns:
      updatedAt
    • webhookSecret

      public WorkflowDataAttributes webhookSecret(String webhookSecret)
    • getWebhookSecret

      @Nullable public String getWebhookSecret()
      If a Webhook trigger is defined on this workflow, a webhookSecret is required and should be provided here.
      Returns:
      webhookSecret
    • setWebhookSecret

      public void setWebhookSecret(String webhookSecret)
    • putAdditionalProperty

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