Class OperationStatusInner
java.lang.Object
com.azure.resourcemanager.redis.models.OperationStatusResult
com.azure.resourcemanager.redis.fluent.models.OperationStatusInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OperationStatusResult>
Asynchronous operation status.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OperationStatusInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OperationStatusInner from the JsonReader.Get the properties property: Additional properties from RP, only when operation is successful.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withEndTime(OffsetDateTime endTime) Set the endTime property: The end time of the operation.withError(com.azure.core.management.exception.ManagementError error) Set the error property: If present, details of the operation error.Set the id property: Fully qualified ID for the async operation.Set the name property: Name of the async operation.withOperations(List<OperationStatusResult> operations) Set the operations property: The operations list.withPercentComplete(Float percentComplete) Set the percentComplete property: Percent of the operation that is complete.withProperties(Map<String, Object> properties) Set the properties property: Additional properties from RP, only when operation is successful.withStartTime(OffsetDateTime startTime) Set the startTime property: The start time of the operation.withStatus(String status) Set the status property: Operation status.Methods inherited from class com.azure.resourcemanager.redis.models.OperationStatusResult
endTime, error, id, name, operations, percentComplete, startTime, statusMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
OperationStatusInner
public OperationStatusInner()Creates an instance of OperationStatusInner class.
-
-
Method Details
-
properties
Get the properties property: Additional properties from RP, only when operation is successful.- Returns:
- the properties value.
-
withProperties
Set the properties property: Additional properties from RP, only when operation is successful.- Parameters:
properties- the properties value to set.- Returns:
- the OperationStatusInner object itself.
-
withId
Set the id property: Fully qualified ID for the async operation.- Overrides:
withIdin classOperationStatusResult- Parameters:
id- the id value to set.- Returns:
- the OperationStatusResult object itself.
-
withName
Set the name property: Name of the async operation.- Overrides:
withNamein classOperationStatusResult- Parameters:
name- the name value to set.- Returns:
- the OperationStatusResult object itself.
-
withStatus
Set the status property: Operation status.- Overrides:
withStatusin classOperationStatusResult- Parameters:
status- the status value to set.- Returns:
- the OperationStatusResult object itself.
-
withPercentComplete
Set the percentComplete property: Percent of the operation that is complete.- Overrides:
withPercentCompletein classOperationStatusResult- Parameters:
percentComplete- the percentComplete value to set.- Returns:
- the OperationStatusResult object itself.
-
withStartTime
Set the startTime property: The start time of the operation.- Overrides:
withStartTimein classOperationStatusResult- Parameters:
startTime- the startTime value to set.- Returns:
- the OperationStatusResult object itself.
-
withEndTime
Set the endTime property: The end time of the operation.- Overrides:
withEndTimein classOperationStatusResult- Parameters:
endTime- the endTime value to set.- Returns:
- the OperationStatusResult object itself.
-
withOperations
Set the operations property: The operations list.- Overrides:
withOperationsin classOperationStatusResult- Parameters:
operations- the operations value to set.- Returns:
- the OperationStatusResult object itself.
-
withError
Set the error property: If present, details of the operation error.- Overrides:
withErrorin classOperationStatusResult- Parameters:
error- the error value to set.- Returns:
- the OperationStatusResult object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classOperationStatusResult- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<OperationStatusResult>- Overrides:
toJsonin classOperationStatusResult- Throws:
IOException
-
fromJson
public static OperationStatusInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of OperationStatusInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of OperationStatusInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the OperationStatusInner.
-