Class TaskGraphNodeMetadata


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2023-10-02T12:25:58.319138+03:00[Europe/Athens]")
    public class TaskGraphNodeMetadata
    extends java.lang.Object
    Metadata about an individual node in a task graph.
    • Field Detail

      • SERIALIZED_NAME_CLIENT_NODE_UUID

        public static final java.lang.String SERIALIZED_NAME_CLIENT_NODE_UUID
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_NAME

        public static final java.lang.String SERIALIZED_NAME_NAME
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_DEPENDS_ON

        public static final java.lang.String SERIALIZED_NAME_DEPENDS_ON
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_RUN_LOCATION

        public static final java.lang.String SERIALIZED_NAME_RUN_LOCATION
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_STATUS

        public static final java.lang.String SERIALIZED_NAME_STATUS
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_STATUS_MESSAGE

        public static final java.lang.String SERIALIZED_NAME_STATUS_MESSAGE
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_EXECUTIONS

        public static final java.lang.String SERIALIZED_NAME_EXECUTIONS
        See Also:
        Constant Field Values
      • openapiFields

        public static java.util.HashSet<java.lang.String> openapiFields
      • openapiRequiredFields

        public static java.util.HashSet<java.lang.String> openapiRequiredFields
    • Constructor Detail

      • TaskGraphNodeMetadata

        public TaskGraphNodeMetadata()
      • TaskGraphNodeMetadata

        public TaskGraphNodeMetadata​(java.util.List<ArrayTask> executions)
    • Method Detail

      • getClientNodeUuid

        @Nullable
        public java.lang.String getClientNodeUuid()
        The client-generated UUID of the given graph node.
        Returns:
        clientNodeUuid
      • setClientNodeUuid

        public void setClientNodeUuid​(java.lang.String clientNodeUuid)
      • getName

        @Nullable
        public java.lang.String getName()
        The client-generated name of the node. This is not guaranteed to be unique.
        Returns:
        name
      • setName

        public void setName​(java.lang.String name)
      • getDependsOn

        @Nullable
        public java.util.List<java.lang.String> getDependsOn()
        The client_node_uuid of each node that this node depends upon. Used to define the structure of the graph.
        Returns:
        dependsOn
      • setDependsOn

        public void setDependsOn​(java.util.List<java.lang.String> dependsOn)
      • getStatus

        @Nullable
        public ArrayTaskStatus getStatus()
        Get status
        Returns:
        status
      • getStatusMessage

        @Nullable
        public java.lang.String getStatusMessage()
        The reason the array task status is in the state
        Returns:
        statusMessage
      • setStatusMessage

        public void setStatusMessage​(java.lang.String statusMessage)
      • getExecutions

        @Nullable
        public java.util.List<ArrayTask> getExecutions()
        ArrayTasks representing each execution attempt for this node. For nodes that have never been submitted, this will be empty. For nodes that have been retried, this may have multiple entries. The last one in the list represents the most recent execution. This is read-only and generated by the server based on the tasks it has actually executed.
        Returns:
        executions
      • putAdditionalProperty

        public TaskGraphNodeMetadata putAdditionalProperty​(java.lang.String key,
                                                           java.lang.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.
      • getAdditionalProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getAdditionalProperties()
        Return the additional (undeclared) property.
      • getAdditionalProperty

        public java.lang.Object getAdditionalProperty​(java.lang.String key)
        Return the additional (undeclared) property with the specified name.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws java.io.IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        java.io.IOException - if the JSON Object is invalid with respect to TaskGraphNodeMetadata
      • fromJson

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

        public java.lang.String toJson()
        Convert an instance of TaskGraphNodeMetadata to an JSON string
        Returns:
        JSON string