TaskAddResult Class
- java.
lang. Object - com.
microsoft. azure. batch. protocol. models. TaskAddResult
- com.
public class TaskAddResult
Result for a single task added as part of an add task collection operation.
Method Summary
Modifier and Type | Method and Description |
---|---|
Batch |
error()
Get the error value. |
String |
eTag()
Get 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. |
DateTime |
lastModified()
Get the lastModified value. |
String |
location()
Get the location value. |
Task |
status()
Get possible values include: 'success', 'clientError', 'serverError'. |
String |
taskId()
Get the taskId value. |
Task |
withError(BatchError error)
Set the error value. |
Task |
withETag(String eTag)
Set 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. |
Task |
withLastModified(DateTime lastModified)
Set the lastModified value. |
Task |
withLocation(String location)
Set the location value. |
Task |
withStatus(TaskAddStatus status)
Set possible values include: 'success', 'clientError', 'serverError'. |
Task |
withTaskId(String taskId)
Set the taskId value. |
Method Details
error
public BatchError error()
Get the error value.
Returns:
eTag
public String eTag()
Get 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:
lastModified
public DateTime lastModified()
Get the lastModified value.
Returns:
location
public String location()
Get the location value.
Returns:
status
public TaskAddStatus status()
Get possible values include: 'success', 'clientError', 'serverError'.
Returns:
taskId
public String taskId()
Get the taskId value.
Returns:
withError
public TaskAddResult withError(BatchError error)
Set the error value.
Parameters:
Returns:
withETag
public TaskAddResult withETag(String eTag)
Set 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.
Parameters:
Returns:
withLastModified
public TaskAddResult withLastModified(DateTime lastModified)
Set the lastModified value.
Parameters:
Returns:
withLocation
public TaskAddResult withLocation(String location)
Set the location value.
Parameters:
Returns:
withStatus
public TaskAddResult withStatus(TaskAddStatus status)
Set possible values include: 'success', 'clientError', 'serverError'.
Parameters:
Returns:
withTaskId
public TaskAddResult withTaskId(String taskId)
Set the taskId value.
Parameters:
Returns:
Applies to
Azure SDK for Java