BatchTaskCreateResult Class
- java.
lang. Object - com.
azure. compute. batch. models. BatchTaskCreateResult
- com.
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
Batch |
fromJson(JsonReader jsonReader)
Reads an instance of Batch |
|
Batch |
getError()
Get the error property: The error encountered while attempting to add the Task. |
| String |
getETag()
Get the e |
|
Offset |
getLastModified()
Get the last |
| String |
getLocation()
Get the location property: The URL of the Task, if the Task was successfully added. |
|
Batch |
getStatus()
Get the status property: The status of the add Task request. |
| String |
getTaskId()
Get the task |
|
Json |
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:
Returns:
Throws:
getError
public BatchError getError()
Get the error property: The error encountered while attempting to add the Task.
Returns:
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:
getLastModified
public OffsetDateTime getLastModified()
Get the lastModified property: The last modified time of the Task.
Returns:
getLocation
public String getLocation()
Get the location property: The URL of the Task, if the Task was successfully added.
Returns:
getStatus
public BatchTaskAddStatus getStatus()
Get the status property: The status of the add Task request.
Returns:
getTaskId
public String getTaskId()
Get the taskId property: The ID of the Task for which this is the result.
Returns: