Share via


OperationStatusResultInner Class

  • java.lang.Object
    • com.azure.resourcemanager.networkcloud.fluent.models.OperationStatusResultInner

Implements

public final class OperationStatusResultInner
implements JsonSerializable<OperationStatusResultInner>

The current status of an async operation.

Constructor Summary

Constructor Description
OperationStatusResultInner()

Creates an instance of OperationStatusResultInner 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.

String exitCode()

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

static OperationStatusResultInner fromJson(JsonReader jsonReader)

Reads an instance of OperationStatusResultInner 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<OperationStatusResultInner> 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.

Float 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)
void validate()

Validates the instance.

OperationStatusResultInner withStatus(String status)

Set the status property: Operation status.

Methods inherited from java.lang.Object

Constructor Details

OperationStatusResultInner

public OperationStatusResultInner()

Creates an instance of OperationStatusResultInner 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.

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 OperationStatusResultInner fromJson(JsonReader jsonReader)

Reads an instance of OperationStatusResultInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of OperationStatusResultInner 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<OperationStatusResultInner> 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 Float 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:

validate

public void validate()

Validates the instance.

withStatus

public OperationStatusResultInner withStatus(String status)

Set the status property: Operation status.

Parameters:

status - the status value to set.

Returns:

the OperationStatusResultInner object itself.

Applies to