OperationStatusInner Class

public final class OperationStatusInner
extends OperationStatusResult

Asynchronous operation status.

Constructor Summary

Constructor Description
OperationStatusInner()

Creates an instance of OperationStatusInner class.

Method Summary

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

Reads an instance of OperationStatusInner from the JsonReader.

Map<String,Object> properties()

Get the properties property: Additional properties from RP, only when operation is successful.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

OperationStatusInner withEndTime(OffsetDateTime endTime)

Set the endTime property: The end time of the operation.

OperationStatusInner withError(ManagementError error)

Set the error property: If present, details of the operation error.

OperationStatusInner withId(String id)

Set the id property: Fully qualified ID for the async operation.

OperationStatusInner withName(String name)

Set the name property: Name of the async operation.

OperationStatusInner withOperations(List<OperationStatusResult> operations)

Set the operations property: The operations list.

OperationStatusInner withPercentComplete(Float percentComplete)

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

OperationStatusInner withProperties(Map<String,Object> properties)

Set the properties property: Additional properties from RP, only when operation is successful.

OperationStatusInner withStartTime(OffsetDateTime startTime)

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

OperationStatusInner withStatus(String status)

Set the status property: Operation status.

Methods inherited from OperationStatusResult

Methods inherited from java.lang.Object

Constructor Details

OperationStatusInner

public OperationStatusInner()

Creates an instance of OperationStatusInner class.

Method Details

fromJson

public static OperationStatusInner fromJson(JsonReader jsonReader)

Reads an instance of OperationStatusInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

properties

public Map properties()

Get the properties property: Additional properties from RP, only when operation is successful.

Returns:

the properties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

OperationStatusInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

OperationStatusInner.validate()

withEndTime

public OperationStatusInner withEndTime(OffsetDateTime endTime)

Set the endTime property: The end time of the operation.

Overrides:

OperationStatusInner.withEndTime(OffsetDateTime endTime)

Parameters:

endTime

withError

public OperationStatusInner withError(ManagementError error)

Set the error property: If present, details of the operation error.

Overrides:

OperationStatusInner.withError(ManagementError error)

Parameters:

error

withId

public OperationStatusInner withId(String id)

Set the id property: Fully qualified ID for the async operation.

Overrides:

OperationStatusInner.withId(String id)

Parameters:

id

withName

public OperationStatusInner withName(String name)

Set the name property: Name of the async operation.

Overrides:

OperationStatusInner.withName(String name)

Parameters:

name

withOperations

public OperationStatusInner withOperations(List operations)

Set the operations property: The operations list.

Overrides:

OperationStatusInner.withOperations(List<OperationStatusResult> operations)

Parameters:

operations

withPercentComplete

public OperationStatusInner withPercentComplete(Float percentComplete)

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

Overrides:

OperationStatusInner.withPercentComplete(Float percentComplete)

Parameters:

percentComplete

withProperties

public OperationStatusInner withProperties(Map properties)

Set the properties property: Additional properties from RP, only when operation is successful.

Parameters:

properties - the properties value to set.

Returns:

the OperationStatusInner object itself.

withStartTime

public OperationStatusInner withStartTime(OffsetDateTime startTime)

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

Overrides:

OperationStatusInner.withStartTime(OffsetDateTime startTime)

Parameters:

startTime

withStatus

public OperationStatusInner withStatus(String status)

Set the status property: Operation status.

Overrides:

OperationStatusInner.withStatus(String status)

Parameters:

status

Applies to