OperationResultInner Class
- java.
lang. Object - com.
azure. resourcemanager. labservices. fluent. models. OperationResultInner
- com.
Implements
public final class OperationResultInner
implements JsonSerializable<OperationResultInner>
A long running operation result.
Constructor Summary
| Constructor | Description |
|---|---|
| OperationResultInner() |
Creates an instance of Operation |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Offset |
endTime()
Get the end |
|
Management |
error()
Get the error property: The error for a failure if the operation failed. |
|
static
Operation |
fromJson(JsonReader jsonReader)
Reads an instance of Operation |
| 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 percent |
|
Offset |
startTime()
Get the start |
|
Operation |
status()
Get the status property: The operation status. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Operation |
withEndTime(OffsetDateTime endTime)
Set the end |
|
Operation |
withError(ManagementError error)
Set the error property: The error for a failure if the operation failed. |
|
Operation |
withPercentComplete(Float percentComplete)
Set the percent |
|
Operation |
withStartTime(OffsetDateTime startTime)
Set the start |
|
Operation |
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:
error
public ManagementError error()
Get the error property: The error for a failure if the operation failed.
Returns:
fromJson
public static OperationResultInner fromJson(JsonReader jsonReader)
Reads an instance of OperationResultInner from the JsonReader.
Parameters:
Returns:
Throws:
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:
name
public String name()
Get the name property: The name of the resource.
Returns:
percentComplete
public Float percentComplete()
Get the percentComplete property: Percent completion.
Returns:
startTime
public OffsetDateTime startTime()
Get the startTime property: Start time.
Returns:
status
public OperationStatus status()
Get the status property: The operation status.
Returns:
toJson
validate
public void validate()
Validates the instance.
withEndTime
public OperationResultInner withEndTime(OffsetDateTime endTime)
Set the endTime property: End time.
Parameters:
Returns:
withError
public OperationResultInner withError(ManagementError error)
Set the error property: The error for a failure if the operation failed.
Parameters:
Returns:
withPercentComplete
public OperationResultInner withPercentComplete(Float percentComplete)
Set the percentComplete property: Percent completion.
Parameters:
Returns:
withStartTime
public OperationResultInner withStartTime(OffsetDateTime startTime)
Set the startTime property: Start time.
Parameters:
Returns:
withStatus
public OperationResultInner withStatus(OperationStatus status)
Set the status property: The operation status.
Parameters:
Returns: