// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.labservices.models;

import com.azure.core.management.exception.ManagementError;
import com.azure.resourcemanager.labservices.fluent.models.OperationResultInner;
import java.time.OffsetDateTime;

/** An immutable client-side representation of OperationResult. */
public interface OperationResult {
    /**
     * Gets the id property: Fully qualified resource ID for the resource. Ex -
     * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
     *
     * @return the id value.
     */
    String id();

    /**
     * Gets the name property: The name of the resource.
     *
     * @return the name value.
     */
    String name();

    /**
     * Gets the status property: The operation status.
     *
     * @return the status value.
     */
    OperationStatus status();

    /**
     * Gets the startTime property: Start time.
     *
     * @return the startTime value.
     */
    OffsetDateTime startTime();

    /**
     * Gets the endTime property: End time.
     *
     * @return the endTime value.
     */
    OffsetDateTime endTime();

    /**
     * Gets the percentComplete property: Percent completion.
     *
     * @return the percentComplete value.
     */
    Float percentComplete();

    /**
     * Gets the error property: The error for a failure if the operation failed.
     *
     * @return the error value.
     */
    ManagementError error();

    /**
     * Gets the inner com.azure.resourcemanager.labservices.fluent.models.OperationResultInner object.
     *
     * @return the inner object.
     */
    OperationResultInner innerModel();
}
