Class OperationStatusInner
- java.lang.Object
-
- com.azure.resourcemanager.redisenterprise.fluent.models.OperationStatusInner
-
public final class OperationStatusInner extends Object
The status of a long-running operation.
-
-
Constructor Summary
Constructors Constructor Description OperationStatusInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
endTime()
Get the endTime property: The end time of the operation.com.azure.core.management.exception.ManagementError
error()
Get the error property: Error response Error response describing why the operation failed.String
id()
Get the id property: The operation's unique id.String
name()
Get the name property: The operation's name.String
startTime()
Get the startTime property: The start time of the operation.String
status()
Get the status property: The current status of the operation.void
validate()
Validates the instance.OperationStatusInner
withEndTime(String endTime)
Set the endTime property: The end time of the operation.OperationStatusInner
withError(com.azure.core.management.exception.ManagementError error)
Set the error property: Error response Error response describing why the operation failed.OperationStatusInner
withId(String id)
Set the id property: The operation's unique id.OperationStatusInner
withName(String name)
Set the name property: The operation's name.OperationStatusInner
withStartTime(String startTime)
Set the startTime property: The start time of the operation.OperationStatusInner
withStatus(String status)
Set the status property: The current status of the operation.
-
-
-
Method Detail
-
id
public String id()
Get the id property: The operation's unique id.- Returns:
- the id value.
-
withId
public OperationStatusInner withId(String id)
Set the id property: The operation's unique id.- Parameters:
id
- the id value to set.- Returns:
- the OperationStatusInner object itself.
-
name
public String name()
Get the name property: The operation's name.- Returns:
- the name value.
-
withName
public OperationStatusInner withName(String name)
Set the name property: The operation's name.- Parameters:
name
- the name value to set.- Returns:
- the OperationStatusInner object itself.
-
startTime
public String startTime()
Get the startTime property: The start time of the operation.- Returns:
- the startTime value.
-
withStartTime
public OperationStatusInner withStartTime(String startTime)
Set the startTime property: The start time of the operation.- Parameters:
startTime
- the startTime value to set.- Returns:
- the OperationStatusInner object itself.
-
endTime
public String endTime()
Get the endTime property: The end time of the operation.- Returns:
- the endTime value.
-
withEndTime
public OperationStatusInner withEndTime(String endTime)
Set the endTime property: The end time of the operation.- Parameters:
endTime
- the endTime value to set.- Returns:
- the OperationStatusInner object itself.
-
status
public String status()
Get the status property: The current status of the operation.- Returns:
- the status value.
-
withStatus
public OperationStatusInner withStatus(String status)
Set the status property: The current status of the operation.- Parameters:
status
- the status value to set.- Returns:
- the OperationStatusInner object itself.
-
error
public com.azure.core.management.exception.ManagementError error()
Get the error property: Error response Error response describing why the operation failed.- Returns:
- the error value.
-
withError
public OperationStatusInner withError(com.azure.core.management.exception.ManagementError error)
Set the error property: Error response Error response describing why the operation failed.- Parameters:
error
- the error value to set.- Returns:
- the OperationStatusInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-