Class OperationStatusInner
- java.lang.Object
-
- com.azure.resourcemanager.redis.models.OperationStatusResult
-
- com.azure.resourcemanager.redis.fluent.models.OperationStatusInner
-
public final class OperationStatusInner extends OperationStatusResult
Asynchronous operation status.
-
-
Constructor Summary
Constructors Constructor Description OperationStatusInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>properties()Get the properties property: Additional properties from RP, only when operation is successful.voidvalidate()Validates the instance.OperationStatusInnerwithEndTime(OffsetDateTime endTime)Set the endTime property: The end time of the operation.OperationStatusInnerwithError(ErrorDetail error)Set the error property: If present, details of the operation error.OperationStatusInnerwithId(String id)Set the id property: Fully qualified ID for the async operation.OperationStatusInnerwithName(String name)Set the name property: Name of the async operation.OperationStatusInnerwithOperations(List<OperationStatusResult> operations)Set the operations property: The operations list.OperationStatusInnerwithPercentComplete(Float percentComplete)Set the percentComplete property: Percent of the operation that is complete.OperationStatusInnerwithProperties(Map<String,Object> properties)Set the properties property: Additional properties from RP, only when operation is successful.OperationStatusInnerwithStartTime(OffsetDateTime startTime)Set the startTime property: The start time of the operation.OperationStatusInnerwithStatus(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, status
-
-
-
-
Method Detail
-
properties
public Map<String,Object> properties()
Get the properties property: Additional properties from RP, only when operation is successful.- Returns:
- the properties value.
-
withProperties
public OperationStatusInner withProperties(Map<String,Object> properties)
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
public OperationStatusInner withId(String id)
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
public OperationStatusInner withName(String name)
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
public OperationStatusInner withStatus(String status)
Set the status property: Operation status.- Overrides:
withStatusin classOperationStatusResult- Parameters:
status- the status value to set.- Returns:
- the OperationStatusResult object itself.
-
withPercentComplete
public OperationStatusInner withPercentComplete(Float percentComplete)
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
public OperationStatusInner withStartTime(OffsetDateTime startTime)
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
public OperationStatusInner withEndTime(OffsetDateTime endTime)
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
public OperationStatusInner withOperations(List<OperationStatusResult> operations)
Set the operations property: The operations list.- Overrides:
withOperationsin classOperationStatusResult- Parameters:
operations- the operations value to set.- Returns:
- the OperationStatusResult object itself.
-
withError
public OperationStatusInner withError(ErrorDetail error)
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.
-
-