OperationResourceInner Class

  • java.lang.Object
    • com.azure.resourcemanager.dataprotection.fluent.models.OperationResourceInner

Implements

public final class OperationResourceInner
implements JsonSerializable<OperationResourceInner>

Operation Resource.

Method Summary

Modifier and Type Method and Description
OffsetDateTime endTime()

Get the endTime property: End time of the operation.

ManagementError error()

Get the error property: Required if status == failed or status == canceled.

static OperationResourceInner fromJson(JsonReader jsonReader)

Reads an instance of OperationResourceInner from the JsonReader.

String id()

Get the id property: It should match what is used to GET the operation result.

String name()

Get the name property: It must match the last segment of the "id" field, and will typically be a GUID / system generated value.

OperationExtendedInfo properties()

Get the properties property: End time of the operation.

OffsetDateTime startTime()

Get the startTime property: Start time of the operation.

String status()

Get the status property: The status property.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

endTime

public OffsetDateTime endTime()

Get the endTime property: End time of the operation.

Returns:

the endTime value.

error

public ManagementError error()

Get the error property: Required if status == failed or status == canceled. This is the OData v4 error format, used by the RPC and will go into the v2.2 Azure REST API guidelines. The full set of optional properties (e.g. inner errors / details) can be found in the "Error Response" section.

Returns:

the error value.

fromJson

public static OperationResourceInner fromJson(JsonReader jsonReader)

Reads an instance of OperationResourceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of OperationResourceInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the OperationResourceInner.

id

public String id()

Get the id property: It should match what is used to GET the operation result.

Returns:

the id value.

name

public String name()

Get the name property: It must match the last segment of the "id" field, and will typically be a GUID / system generated value.

Returns:

the name value.

properties

public OperationExtendedInfo properties()

Get the properties property: End time of the operation.

Returns:

the properties value.

startTime

public OffsetDateTime startTime()

Get the startTime property: Start time of the operation.

Returns:

the startTime value.

status

public String status()

Get the status property: The status property.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to