OperationStatus Class

  • java.lang.Object
    • com.azure.developer.loadtesting.models.OperationStatus

Implements

public final class OperationStatus
implements JsonSerializable<OperationStatus>

Status of a long running operation.

Method Summary

Modifier and Type Method and Description
static OperationStatus fromJson(JsonReader jsonReader)

Reads an instance of OperationStatus from the JsonReader.

ResponseError getError()

Get the error property: Error object that describes the error when status is "Failed".

String getId()

Get the id property: The unique ID of the operation.

OperationKind getKind()

Get the kind property: The kind of the operation.

OperationState getStatus()

Get the status property: The state of the operation.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static OperationStatus fromJson(JsonReader jsonReader)

Reads an instance of OperationStatus from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of OperationStatus 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.

getError

public ResponseError getError()

Get the error property: Error object that describes the error when status is "Failed".

Returns:

the error value.

getId

public String getId()

Get the id property: The unique ID of the operation.

Returns:

the id value.

getKind

public OperationKind getKind()

Get the kind property: The kind of the operation.

Returns:

the kind value.

getStatus

public OperationState getStatus()

Get the status property: The state of the operation.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to