OperationStatusResult Class
- java.
lang. Object - com.
azure. resourcemanager. redis. models. OperationStatusResult
- com.
Implements
public class OperationStatusResult
implements JsonSerializable<OperationStatusResult>
The current status of an async operation.
Constructor Summary
Constructor | Description |
---|---|
OperationStatusResult() |
Creates an instance of Operation |
Method Summary
Modifier and Type | Method and Description |
---|---|
Offset |
endTime()
Get the end |
Management |
error()
Get the error property: If present, details of the operation error. |
static
Operation |
fromJson(JsonReader jsonReader)
Reads an instance of Operation |
String |
id()
Get the id property: Fully qualified ID for the async operation. |
String |
name()
Get the name property: Name of the async operation. |
List<Operation |
operations()
Get the operations property: The operations list. |
Float |
percentComplete()
Get the percent |
Offset |
startTime()
Get the start |
String |
status()
Get the status property: Operation status. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Operation |
withEndTime(OffsetDateTime endTime)
Set the end |
Operation |
withError(ManagementError error)
Set the error property: If present, details of the operation error. |
Operation |
withId(String id)
Set the id property: Fully qualified ID for the async operation. |
Operation |
withName(String name)
Set the name property: Name of the async operation. |
Operation |
withOperations(List<OperationStatusResult> operations)
Set the operations property: The operations list. |
Operation |
withPercentComplete(Float percentComplete)
Set the percent |
Operation |
withStartTime(OffsetDateTime startTime)
Set the start |
Operation |
withStatus(String status)
Set the status property: Operation status. |
Methods inherited from java.lang.Object
Constructor Details
OperationStatusResult
public OperationStatusResult()
Creates an instance of OperationStatusResult class.
Method Details
endTime
public OffsetDateTime endTime()
Get the endTime property: The end time of the operation.
Returns:
error
public ManagementError error()
Get the error property: If present, details of the operation error.
Returns:
fromJson
public static OperationStatusResult fromJson(JsonReader jsonReader)
Reads an instance of OperationStatusResult from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified ID for the async operation.
Returns:
name
public String name()
Get the name property: Name of the async operation.
Returns:
operations
public List
Get the operations property: The operations list.
Returns:
percentComplete
public Float percentComplete()
Get the percentComplete property: Percent of the operation that is complete.
Returns:
startTime
public OffsetDateTime startTime()
Get the startTime property: The start time of the operation.
Returns:
status
public String status()
Get the status property: Operation status.
Returns:
toJson
validate
public void validate()
Validates the instance.
withEndTime
public OperationStatusResult withEndTime(OffsetDateTime endTime)
Set the endTime property: The end time of the operation.
Parameters:
Returns:
withError
public OperationStatusResult withError(ManagementError error)
Set the error property: If present, details of the operation error.
Parameters:
Returns:
withId
public OperationStatusResult withId(String id)
Set the id property: Fully qualified ID for the async operation.
Parameters:
Returns:
withName
public OperationStatusResult withName(String name)
Set the name property: Name of the async operation.
Parameters:
Returns:
withOperations
public OperationStatusResult withOperations(List
Set the operations property: The operations list.
Parameters:
Returns:
withPercentComplete
public OperationStatusResult withPercentComplete(Float percentComplete)
Set the percentComplete property: Percent of the operation that is complete.
Parameters:
Returns:
withStartTime
public OperationStatusResult withStartTime(OffsetDateTime startTime)
Set the startTime property: The start time of the operation.
Parameters:
Returns:
withStatus
public OperationStatusResult withStatus(String status)
Set the status property: Operation status.
Parameters:
Returns:
Applies to
Azure SDK for Java