Package io.tiledb.cloud.rest_api.model
Class TaskGraphNodeMetadata
- java.lang.Object
-
- io.tiledb.cloud.rest_api.model.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TaskGraphNodeMetadata.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static java.util.HashSet<java.lang.String>
openapiFields
static java.util.HashSet<java.lang.String>
openapiRequiredFields
static java.lang.String
SERIALIZED_NAME_CLIENT_NODE_UUID
static java.lang.String
SERIALIZED_NAME_DEPENDS_ON
static java.lang.String
SERIALIZED_NAME_EXECUTIONS
static java.lang.String
SERIALIZED_NAME_NAME
static java.lang.String
SERIALIZED_NAME_RUN_LOCATION
static java.lang.String
SERIALIZED_NAME_STATUS
static java.lang.String
SERIALIZED_NAME_STATUS_MESSAGE
-
Constructor Summary
Constructors Constructor Description TaskGraphNodeMetadata()
TaskGraphNodeMetadata(java.util.List<ArrayTask> executions)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TaskGraphNodeMetadata
addDependsOnItem(java.lang.String dependsOnItem)
TaskGraphNodeMetadata
clientNodeUuid(java.lang.String clientNodeUuid)
TaskGraphNodeMetadata
dependsOn(java.util.List<java.lang.String> dependsOn)
boolean
equals(java.lang.Object o)
static TaskGraphNodeMetadata
fromJson(java.lang.String jsonString)
Create an instance of TaskGraphNodeMetadata given an JSON stringjava.util.Map<java.lang.String,java.lang.Object>
getAdditionalProperties()
Return the additional (undeclared) property.java.lang.Object
getAdditionalProperty(java.lang.String key)
Return the additional (undeclared) property with the specified name.java.lang.String
getClientNodeUuid()
The client-generated UUID of the given graph node.java.util.List<java.lang.String>
getDependsOn()
The client_node_uuid of each node that this node depends upon.java.util.List<ArrayTask>
getExecutions()
ArrayTasks representing each execution attempt for this node.java.lang.String
getName()
The client-generated name of the node.TaskGraphLogRunLocation
getRunLocation()
Get runLocationArrayTaskStatus
getStatus()
Get statusjava.lang.String
getStatusMessage()
The reason the array task status is in the stateint
hashCode()
TaskGraphNodeMetadata
name(java.lang.String name)
TaskGraphNodeMetadata
putAdditionalProperty(java.lang.String key, java.lang.Object value)
Set the additional (undeclared) property with the specified name and value.TaskGraphNodeMetadata
runLocation(TaskGraphLogRunLocation runLocation)
void
setClientNodeUuid(java.lang.String clientNodeUuid)
void
setDependsOn(java.util.List<java.lang.String> dependsOn)
void
setName(java.lang.String name)
void
setRunLocation(TaskGraphLogRunLocation runLocation)
void
setStatus(ArrayTaskStatus status)
void
setStatusMessage(java.lang.String statusMessage)
TaskGraphNodeMetadata
status(ArrayTaskStatus status)
TaskGraphNodeMetadata
statusMessage(java.lang.String statusMessage)
java.lang.String
toJson()
Convert an instance of TaskGraphNodeMetadata to an JSON stringjava.lang.String
toString()
static void
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
-
-
-
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
-
clientNodeUuid
public TaskGraphNodeMetadata clientNodeUuid(java.lang.String clientNodeUuid)
-
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)
-
name
public TaskGraphNodeMetadata name(java.lang.String name)
-
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)
-
dependsOn
public TaskGraphNodeMetadata dependsOn(java.util.List<java.lang.String> dependsOn)
-
addDependsOnItem
public TaskGraphNodeMetadata addDependsOnItem(java.lang.String dependsOnItem)
-
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)
-
runLocation
public TaskGraphNodeMetadata runLocation(TaskGraphLogRunLocation runLocation)
-
getRunLocation
@Nullable public TaskGraphLogRunLocation getRunLocation()
Get runLocation- Returns:
- runLocation
-
setRunLocation
public void setRunLocation(TaskGraphLogRunLocation runLocation)
-
status
public TaskGraphNodeMetadata status(ArrayTaskStatus status)
-
getStatus
@Nullable public ArrayTaskStatus getStatus()
Get status- Returns:
- status
-
setStatus
public void setStatus(ArrayTaskStatus status)
-
statusMessage
public TaskGraphNodeMetadata statusMessage(java.lang.String statusMessage)
-
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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.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
-
-