OperationStatusResult Class

  • java.lang.Object
    • com.azure.resourcemanager.redis.models.OperationStatusResult

Implements

public class OperationStatusResult
implements JsonSerializable<OperationStatusResult>

The current status of an async operation.

Constructor Summary

Constructor Description
OperationStatusResult()

Creates an instance of OperationStatusResult class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime endTime()

Get the endTime property: The end time of the operation.

ManagementError error()

Get the error property: If present, details of the operation error.

static OperationStatusResult fromJson(JsonReader jsonReader)

Reads an instance of OperationStatusResult from the JsonReader.

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<OperationStatusResult> operations()

Get the operations property: The operations list.

Float percentComplete()

Get the percentComplete property: Percent of the operation that is complete.

OffsetDateTime startTime()

Get the startTime property: The start time of the operation.

String status()

Get the status property: Operation status.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

OperationStatusResult withEndTime(OffsetDateTime endTime)

Set the endTime property: The end time of the operation.

OperationStatusResult withError(ManagementError error)

Set the error property: If present, details of the operation error.

OperationStatusResult withId(String id)

Set the id property: Fully qualified ID for the async operation.

OperationStatusResult withName(String name)

Set the name property: Name of the async operation.

OperationStatusResult withOperations(List<OperationStatusResult> operations)

Set the operations property: The operations list.

OperationStatusResult withPercentComplete(Float percentComplete)

Set the percentComplete property: Percent of the operation that is complete.

OperationStatusResult withStartTime(OffsetDateTime startTime)

Set the startTime property: The start time of the operation.

OperationStatusResult 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:

the endTime value.

error

public ManagementError error()

Get the error property: If present, details of the operation error.

Returns:

the error value.

fromJson

public static OperationStatusResult fromJson(JsonReader jsonReader)

Reads an instance of OperationStatusResult from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of OperationStatusResult if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified ID for the async operation.

Returns:

the id value.

name

public String name()

Get the name property: Name of the async operation.

Returns:

the name value.

operations

public List operations()

Get the operations property: The operations list.

Returns:

the operations value.

percentComplete

public Float percentComplete()

Get the percentComplete property: Percent of the operation that is complete.

Returns:

the percentComplete value.

startTime

public OffsetDateTime startTime()

Get the startTime property: The start time of the operation.

Returns:

the startTime value.

status

public String status()

Get the status property: Operation status.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEndTime

public OperationStatusResult withEndTime(OffsetDateTime endTime)

Set the endTime property: The end time of the operation.

Parameters:

endTime - the endTime value to set.

Returns:

the OperationStatusResult object itself.

withError

public OperationStatusResult withError(ManagementError error)

Set the error property: If present, details of the operation error.

Parameters:

error - the error value to set.

Returns:

the OperationStatusResult object itself.

withId

public OperationStatusResult withId(String id)

Set the id property: Fully qualified ID for the async operation.

Parameters:

id - the id value to set.

Returns:

the OperationStatusResult object itself.

withName

public OperationStatusResult withName(String name)

Set the name property: Name of the async operation.

Parameters:

name - the name value to set.

Returns:

the OperationStatusResult object itself.

withOperations

public OperationStatusResult withOperations(List operations)

Set the operations property: The operations list.

Parameters:

operations - the operations value to set.

Returns:

the OperationStatusResult object itself.

withPercentComplete

public OperationStatusResult withPercentComplete(Float percentComplete)

Set the percentComplete property: Percent of the operation that is complete.

Parameters:

percentComplete - the percentComplete value to set.

Returns:

the OperationStatusResult object itself.

withStartTime

public OperationStatusResult withStartTime(OffsetDateTime startTime)

Set the startTime property: The start time of the operation.

Parameters:

startTime - the startTime value to set.

Returns:

the OperationStatusResult object itself.

withStatus

public OperationStatusResult withStatus(String status)

Set the status property: Operation status.

Parameters:

status - the status value to set.

Returns:

the OperationStatusResult object itself.

Applies to