PollOperationDetails Class
- java.
lang. Object - com.
azure. core. util. polling. PollOperationDetails
- com.
Implements
public final class PollOperationDetails
implements JsonSerializable<PollOperationDetails>
PollOperationDetails provides details for long running operations.
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Poll |
fromJson(JsonReader jsonReader)
Reads a JSON stream into a PollOperationDetails. |
Response |
getError()
Gets the error object that describes the error when status is "Failed". |
String |
getOperationId()
Gets the unique ID of the operation. |
Json |
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:
- 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
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for Java