Class Task


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               comments="Generator version: 7.9.0")
    public class Task
    extends Object
    Task
    • Constructor Detail

      • Task

        public Task()
    • Method Detail

      • getId

        @Nullable
        public String getId()
        The identifier for the Task.
        Returns:
        id
      • setId

        public void setId​(String id)
      • workflowRunId

        public Task workflowRunId​(UUID workflowRunId)
      • getWorkflowRunId

        @Nullable
        public UUID getWorkflowRunId()
        The workflow run id the task belongs to.
        Returns:
        workflowRunId
      • setWorkflowRunId

        public void setWorkflowRunId​(UUID workflowRunId)
      • taskDefId

        public Task taskDefId​(String taskDefId)
      • getTaskDefId

        @Nullable
        public String getTaskDefId()
        The identifier for the Task Definition.
        Returns:
        taskDefId
      • setTaskDefId

        public void setTaskDefId​(String taskDefId)
      • taskDefVersion

        public Task taskDefVersion​(String taskDefVersion)
      • getTaskDefVersion

        @Nullable
        public String getTaskDefVersion()
        The task definition version.
        Returns:
        taskDefVersion
      • setTaskDefVersion

        public void setTaskDefVersion​(String taskDefVersion)
      • getInput

        @Nullable
        public Object getInput()
        Input object with the fields used by the Task to execute.
        Returns:
        input
      • setInput

        public void setInput​(Object input)
      • getOutput

        @Nullable
        public Object getOutput()
        Value field (it can be an Object, List, etc.) with the fields produced by the Task execution.
        Returns:
        output
      • setOutput

        public void setOutput​(Object output)
      • getCreatedAt

        @Nullable
        public OffsetDateTime getCreatedAt()
        The date and time when the Task was created.
        Returns:
        createdAt
      • setCreatedAt

        public void setCreatedAt​(OffsetDateTime createdAt)
      • getUpdatedAt

        @Nullable
        public OffsetDateTime getUpdatedAt()
        The date and time when the Task was last updated.
        Returns:
        updatedAt
      • setUpdatedAt

        public void setUpdatedAt​(OffsetDateTime updatedAt)
      • putAdditionalProperty

        public Task 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 - name of the property
        value - value of the property
        Returns:
        the Task instance itself
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
        Return the additional (undeclared) property.
        Returns:
        a map of objects
      • getAdditionalProperty

        public Object getAdditionalProperty​(String key)
        Return the additional (undeclared) property with the specified name.
        Parameters:
        key - name of the property
        Returns:
        an object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonElement

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws IOException
        Validates the JSON Element and throws an exception if issues found
        Parameters:
        jsonElement - JSON Element
        Throws:
        IOException - if the JSON Element is invalid with respect to Task
      • fromJson

        public static Task fromJson​(String jsonString)
                             throws IOException
        Create an instance of Task given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of Task
        Throws:
        IOException - if the JSON string is invalid with respect to Task
      • toJson

        public String toJson()
        Convert an instance of Task to an JSON string
        Returns:
        JSON string