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 Details

    • ManagedDatabaseStartMoveDefinition

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

    • destinationManagedDatabaseId

      public String 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

      public MoveOperationMode operationMode()
      Get the operationMode property: The move operation mode.
      Returns:
      the operationMode value.
    • withOperationMode

      public ManagedDatabaseStartMoveDefinition withOperationMode(MoveOperationMode operationMode)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.