Class DatabaseOperationInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.sql.fluent.models.DatabaseOperationInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class DatabaseOperationInner
extends com.azure.core.management.ProxyResource
A database operation.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DatabaseOperationInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the databaseName property: The name of the database the operation is being performed on.Get the description property: The operation description.Get the errorCode property: The operation error code.Get the errorDescription property: The operation error description.Get the errorSeverity property: The operation error severity.Get the estimatedCompletionTime property: The estimated completion time of the operation.static DatabaseOperationInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DatabaseOperationInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.Get the isCancellable property: Whether the operation can be cancelled.Get the isUserError property: Whether or not the error is a user error.name()Get the name property: The name of the resource.Get the operation property: The name of operation.Get the operationFriendlyName property: The friendly name of operation.Get the percentComplete property: The percentage of the operation completed.Get the serverName property: The name of the server.Get the startTime property: The operation start time.state()Get the state property: The operation state.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DatabaseOperationInner
public DatabaseOperationInner()Creates an instance of DatabaseOperationInner class.
-
-
Method Details
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
databaseName
Get the databaseName property: The name of the database the operation is being performed on.- Returns:
- the databaseName value.
-
operation
Get the operation property: The name of operation.- Returns:
- the operation value.
-
operationFriendlyName
Get the operationFriendlyName property: The friendly name of operation.- Returns:
- the operationFriendlyName value.
-
percentComplete
Get the percentComplete property: The percentage of the operation completed.- Returns:
- the percentComplete value.
-
serverName
Get the serverName property: The name of the server.- Returns:
- the serverName value.
-
startTime
Get the startTime property: The operation start time.- Returns:
- the startTime value.
-
state
Get the state property: The operation state.- Returns:
- the state value.
-
errorCode
Get the errorCode property: The operation error code.- Returns:
- the errorCode value.
-
errorDescription
Get the errorDescription property: The operation error description.- Returns:
- the errorDescription value.
-
errorSeverity
Get the errorSeverity property: The operation error severity.- Returns:
- the errorSeverity value.
-
isUserError
Get the isUserError property: Whether or not the error is a user error.- Returns:
- the isUserError value.
-
estimatedCompletionTime
Get the estimatedCompletionTime property: The estimated completion time of the operation.- Returns:
- the estimatedCompletionTime value.
-
description
Get the description property: The operation description.- Returns:
- the description value.
-
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.ProxyResource- Throws:
IOException
-
fromJson
public static DatabaseOperationInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DatabaseOperationInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DatabaseOperationInner 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 DatabaseOperationInner.
-