Class ManagedDatabaseStartMoveDefinition
java.lang.Object
com.azure.resourcemanager.sql.models.ManagedDatabaseStartMoveDefinition
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedDatabaseStartMoveDefinition>
public final class ManagedDatabaseStartMoveDefinition
extends Object
implements com.azure.json.JsonSerializable<ManagedDatabaseStartMoveDefinition>
Contains the information necessary to start a managed database move.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedDatabaseStartMoveDefinition class. -
Method Summary
Modifier and TypeMethodDescriptionGet the destinationManagedDatabaseId property: The destination managed database ID.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedDatabaseStartMoveDefinition from the JsonReader.Get the operationMode property: The move operation mode.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDestinationManagedDatabaseId(String destinationManagedDatabaseId) Set the destinationManagedDatabaseId property: The destination managed database ID.withOperationMode(MoveOperationMode operationMode) Set the operationMode property: The move operation mode.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
-
ManagedDatabaseStartMoveDefinition
public ManagedDatabaseStartMoveDefinition()Creates an instance of ManagedDatabaseStartMoveDefinition class.
-
-
Method Details
-
destinationManagedDatabaseId
Get the destinationManagedDatabaseId property: The destination managed database ID.- Returns:
- the destinationManagedDatabaseId value.
-
withDestinationManagedDatabaseId
public ManagedDatabaseStartMoveDefinition withDestinationManagedDatabaseId(String destinationManagedDatabaseId) Set the destinationManagedDatabaseId property: The destination managed database ID.- Parameters:
destinationManagedDatabaseId- the destinationManagedDatabaseId value to set.- Returns:
- the ManagedDatabaseStartMoveDefinition object itself.
-
operationMode
Get the operationMode property: The move operation mode.- Returns:
- the operationMode value.
-
withOperationMode
Set the operationMode property: The move operation mode.- Parameters:
operationMode- the operationMode value to set.- Returns:
- the ManagedDatabaseStartMoveDefinition object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ManagedDatabaseStartMoveDefinition>- Throws:
IOException
-
fromJson
public static ManagedDatabaseStartMoveDefinition fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ManagedDatabaseStartMoveDefinition from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ManagedDatabaseStartMoveDefinition 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 ManagedDatabaseStartMoveDefinition.
-