Share via


OperationResultInner Class

  • java.lang.Object
    • com.azure.resourcemanager.labservices.fluent.models.OperationResultInner

Implements

public final class OperationResultInner
implements JsonSerializable<OperationResultInner>

A long running operation result.

Constructor Summary

Constructor Description
OperationResultInner()

Creates an instance of OperationResultInner class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime endTime()

Get the endTime property: End time.

ManagementError error()

Get the error property: The error for a failure if the operation failed.

static OperationResultInner fromJson(JsonReader jsonReader)

Reads an instance of OperationResultInner from the JsonReader.

String id()

Get the id property: Fully qualified resource ID for the resource.

String name()

Get the name property: The name of the resource.

Float percentComplete()

Get the percentComplete property: Percent completion.

OffsetDateTime startTime()

Get the startTime property: Start time.

OperationStatus status()

Get the status property: The operation status.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

OperationResultInner withEndTime(OffsetDateTime endTime)

Set the endTime property: End time.

OperationResultInner withError(ManagementError error)

Set the error property: The error for a failure if the operation failed.

OperationResultInner withPercentComplete(Float percentComplete)

Set the percentComplete property: Percent completion.

OperationResultInner withStartTime(OffsetDateTime startTime)

Set the startTime property: Start time.

OperationResultInner withStatus(OperationStatus status)

Set the status property: The operation status.

Methods inherited from java.lang.Object

Constructor Details

OperationResultInner

public OperationResultInner()

Creates an instance of OperationResultInner class.

Method Details

endTime

public OffsetDateTime endTime()

Get the endTime property: End time.

Returns:

the endTime value.

error

public ManagementError error()

Get the error property: The error for a failure if the operation failed.

Returns:

the error value.

fromJson

public static OperationResultInner fromJson(JsonReader jsonReader)

Reads an instance of OperationResultInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of OperationResultInner 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 resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Returns:

the name value.

percentComplete

public Float percentComplete()

Get the percentComplete property: Percent completion.

Returns:

the percentComplete value.

startTime

public OffsetDateTime startTime()

Get the startTime property: Start time.

Returns:

the startTime value.

status

public OperationStatus status()

Get the status property: The operation status.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEndTime

public OperationResultInner withEndTime(OffsetDateTime endTime)

Set the endTime property: End time.

Parameters:

endTime - the endTime value to set.

Returns:

the OperationResultInner object itself.

withError

public OperationResultInner withError(ManagementError error)

Set the error property: The error for a failure if the operation failed.

Parameters:

error - the error value to set.

Returns:

the OperationResultInner object itself.

withPercentComplete

public OperationResultInner withPercentComplete(Float percentComplete)

Set the percentComplete property: Percent completion.

Parameters:

percentComplete - the percentComplete value to set.

Returns:

the OperationResultInner object itself.

withStartTime

public OperationResultInner withStartTime(OffsetDateTime startTime)

Set the startTime property: Start time.

Parameters:

startTime - the startTime value to set.

Returns:

the OperationResultInner object itself.

withStatus

public OperationResultInner withStatus(OperationStatus status)

Set the status property: The operation status.

Parameters:

status - the status value to set.

Returns:

the OperationResultInner object itself.

Applies to