Class TaskAddResult
- java.lang.Object
-
- com.microsoft.azure.batch.protocol.models.TaskAddResult
-
public class TaskAddResult extends Object
Result for a single Task added as part of an add Task collection operation.
-
-
Constructor Summary
Constructors Constructor Description TaskAddResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchError
error()
Get the error value.String
eTag()
Get you can use this to detect whether the Task has changed between requests.org.joda.time.DateTime
lastModified()
Get the lastModified value.String
location()
Get the location value.TaskAddStatus
status()
Get possible values include: 'success', 'clientError', 'serverError'.String
taskId()
Get the taskId value.TaskAddResult
withError(BatchError error)
Set the error value.TaskAddResult
withETag(String eTag)
Set you can use this to detect whether the Task has changed between requests.TaskAddResult
withLastModified(org.joda.time.DateTime lastModified)
Set the lastModified value.TaskAddResult
withLocation(String location)
Set the location value.TaskAddResult
withStatus(TaskAddStatus status)
Set possible values include: 'success', 'clientError', 'serverError'.TaskAddResult
withTaskId(String taskId)
Set the taskId value.
-
-
-
Method Detail
-
status
public TaskAddStatus status()
Get possible values include: 'success', 'clientError', 'serverError'.- Returns:
- the status value
-
withStatus
public TaskAddResult withStatus(TaskAddStatus status)
Set possible values include: 'success', 'clientError', 'serverError'.- Parameters:
status
- the status value to set- Returns:
- the TaskAddResult object itself.
-
taskId
public String taskId()
Get the taskId value.- Returns:
- the taskId value
-
withTaskId
public TaskAddResult withTaskId(String taskId)
Set the taskId value.- Parameters:
taskId
- the taskId value to set- Returns:
- the TaskAddResult object itself.
-
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:
- the eTag value
-
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:
eTag
- the eTag value to set- Returns:
- the TaskAddResult object itself.
-
lastModified
public org.joda.time.DateTime lastModified()
Get the lastModified value.- Returns:
- the lastModified value
-
withLastModified
public TaskAddResult withLastModified(org.joda.time.DateTime lastModified)
Set the lastModified value.- Parameters:
lastModified
- the lastModified value to set- Returns:
- the TaskAddResult object itself.
-
location
public String location()
Get the location value.- Returns:
- the location value
-
withLocation
public TaskAddResult withLocation(String location)
Set the location value.- Parameters:
location
- the location value to set- Returns:
- the TaskAddResult object itself.
-
error
public BatchError error()
Get the error value.- Returns:
- the error value
-
withError
public TaskAddResult withError(BatchError error)
Set the error value.- Parameters:
error
- the error value to set- Returns:
- the TaskAddResult object itself.
-
-