Share via


BatchTaskCreateResult Class

  • java.lang.Object
    • com.azure.compute.batch.models.BatchTaskCreateResult

Implements

public final class BatchTaskCreateResult
implements JsonSerializable<BatchTaskCreateResult>

Result for a single Task created as part of an add Task collection operation.

Method Summary

Modifier and Type Method and Description
static BatchTaskCreateResult fromJson(JsonReader jsonReader)

Reads an instance of BatchTaskCreateResult from the JsonReader.

BatchError getError()

Get the error property: The error encountered while attempting to add the Task.

String getETag()

Get the eTag property: The ETag of the Task, if the Task was successfully added.

OffsetDateTime getLastModified()

Get the lastModified property: The last modified time of the Task.

String getLocation()

Get the location property: The URL of the Task, if the Task was successfully added.

BatchTaskAddStatus getStatus()

Get the status property: The status of the add Task request.

String getTaskId()

Get the taskId property: The ID of the Task for which this is the result.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static BatchTaskCreateResult fromJson(JsonReader jsonReader)

Reads an instance of BatchTaskCreateResult from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BatchTaskCreateResult if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getError

public BatchError getError()

Get the error property: The error encountered while attempting to add the Task.

Returns:

the error value.

getETag

public String getETag()

Get the eTag property: The ETag of the Task, if the Task was successfully added. You can use this to detect whether the Task has changed between requests. In particular, you can be pass the ETag with an Update Task request to specify that your changes should take effect only if nobody else has modified the Job in the meantime.

Returns:

the eTag value.

getLastModified

public OffsetDateTime getLastModified()

Get the lastModified property: The last modified time of the Task.

Returns:

the lastModified value.

getLocation

public String getLocation()

Get the location property: The URL of the Task, if the Task was successfully added.

Returns:

the location value.

getStatus

public BatchTaskAddStatus getStatus()

Get the status property: The status of the add Task request.

Returns:

the status value.

getTaskId

public String getTaskId()

Get the taskId property: The ID of the Task for which this is the result.

Returns:

the taskId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to