Class ServerOperationInner

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.sql.fluent.models.ServerOperationInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>

public final class ServerOperationInner extends com.azure.core.management.ProxyResource
A server operation.
  • Constructor Details

    • ServerOperationInner

      public ServerOperationInner()
      Creates an instance of ServerOperationInner class.
  • Method Details

    • type

      public String type()
      Get the type property: The type of the resource.
      Overrides:
      type in class com.azure.core.management.ProxyResource
      Returns:
      the type value.
    • name

      public String name()
      Get the name property: The name of the resource.
      Overrides:
      name in class com.azure.core.management.ProxyResource
      Returns:
      the name value.
    • id

      public String id()
      Get the id property: Fully qualified resource Id for the resource.
      Overrides:
      id in class com.azure.core.management.ProxyResource
      Returns:
      the id value.
    • operation

      public String operation()
      Get the operation property: The name of operation.
      Returns:
      the operation value.
    • operationFriendlyName

      public String operationFriendlyName()
      Get the operationFriendlyName property: The friendly name of operation.
      Returns:
      the operationFriendlyName value.
    • percentComplete

      public Integer percentComplete()
      Get the percentComplete property: The percentage of the operation completed.
      Returns:
      the percentComplete value.
    • serverName

      public String serverName()
      Get the serverName property: The name of the server.
      Returns:
      the serverName value.
    • startTime

      public OffsetDateTime startTime()
      Get the startTime property: The operation start time.
      Returns:
      the startTime value.
    • state

      public ManagementOperationState state()
      Get the state property: The operation state.
      Returns:
      the state value.
    • errorCode

      public Integer errorCode()
      Get the errorCode property: The operation error code.
      Returns:
      the errorCode value.
    • errorDescription

      public String errorDescription()
      Get the errorDescription property: The operation error description.
      Returns:
      the errorDescription value.
    • errorSeverity

      public Integer errorSeverity()
      Get the errorSeverity property: The operation error severity.
      Returns:
      the errorSeverity value.
    • isUserError

      public Boolean isUserError()
      Get the isUserError property: Whether or not the error is a user error.
      Returns:
      the isUserError value.
    • estimatedCompletionTime

      public OffsetDateTime estimatedCompletionTime()
      Get the estimatedCompletionTime property: The estimated completion time of the operation.
      Returns:
      the estimatedCompletionTime value.
    • description

      public String description()
      Get the description property: The operation description.
      Returns:
      the description value.
    • isCancellable

      public Boolean isCancellable()
      Get the isCancellable property: Whether the operation can be cancelled.
      Returns:
      the isCancellable value.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
      Overrides:
      toJson in class com.azure.core.management.ProxyResource
      Throws:
      IOException
    • fromJson

      public static ServerOperationInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ServerOperationInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ServerOperationInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the ServerOperationInner.