PollOperationDetails Class

  • java.lang.Object
    • com.azure.core.util.polling.PollOperationDetails

Implements

public final class PollOperationDetails
implements JsonSerializable<PollOperationDetails>

PollOperationDetails provides details for long running operations.

Method Summary

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

Reads a JSON stream into a PollOperationDetails.

ResponseError getError()

Gets the error object that describes the error when status is "Failed".

String getOperationId()

Gets the unique ID of the operation.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static PollOperationDetails fromJson(JsonReader jsonReader)

Reads a JSON stream into a PollOperationDetails.

Parameters:

jsonReader - The JsonReader being read.

Returns:

The PollOperationDetails that the JSON stream represented, or null if it pointed to JSON null.

Throws:

IOException

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

getError

public ResponseError getError()

Gets the error object that describes the error when status is "Failed".

Returns:

the error object that describes the error when status is "Failed".

getOperationId

public String getOperationId()

Gets the unique ID of the operation.

Returns:

the unique ID of the operation.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to