OperationStatusResult Class

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

Implements

public final class OperationStatusResult
implements JsonSerializable<OperationStatusResult>

The current status of an async operation.

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.

String exitCode()

Get the exitCode property: For actions that run commands or scripts, the exit code of the script execution.

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.

String outputHead()

Get the outputHead property: For actions that run commands or scripts, the leading bytes of the output of the script execution.

Double percentComplete()

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

String resourceId()

Get the resourceId property: Fully qualified ID of the resource against which the original async operation was started.

String resultRef()

Get the resultRef property: For actions that run commands or scripts, a reference to the location of the result.

String resultUrl()

Get the resultUrl property: For actions that run commands or scripts, the URL where the full output of the script output can be retrieved.

OffsetDateTime startTime()

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

String status()

Get the status property: Operation status.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

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.

exitCode

public String exitCode()

Get the exitCode property: For actions that run commands or scripts, the exit code of the script execution.

Returns:

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

Get the operations property: The operations list.

Returns:

the operations value.

outputHead

public String outputHead()

Get the outputHead property: For actions that run commands or scripts, the leading bytes of the output of the script execution.

Returns:

the outputHead value.

percentComplete

public Double percentComplete()

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

Returns:

the percentComplete value.

resourceId

public String resourceId()

Get the resourceId property: Fully qualified ID of the resource against which the original async operation was started.

Returns:

the resourceId value.

resultRef

public String resultRef()

Get the resultRef property: For actions that run commands or scripts, a reference to the location of the result.

Returns:

the resultRef value.

resultUrl

public String resultUrl()

Get the resultUrl property: For actions that run commands or scripts, the URL where the full output of the script output can be retrieved.

Returns:

the resultUrl 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:

Applies to