Class SchemaComparisonValidationResult

java.lang.Object
com.azure.resourcemanager.datamigration.models.SchemaComparisonValidationResult

public final class SchemaComparisonValidationResult extends Object
Results for schema comparison between the source and target.
  • Constructor Details

    • SchemaComparisonValidationResult

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

    • schemaDifferences

      public SchemaComparisonValidationResultType schemaDifferences()
      Get the schemaDifferences property: List of schema differences between the source and target databases.
      Returns:
      the schemaDifferences value.
    • validationErrors

      public ValidationError validationErrors()
      Get the validationErrors property: List of errors that happened while performing schema compare validation.
      Returns:
      the validationErrors value.
    • sourceDatabaseObjectCount

      public Map<String,Long> sourceDatabaseObjectCount()
      Get the sourceDatabaseObjectCount property: Count of source database objects.
      Returns:
      the sourceDatabaseObjectCount value.
    • withSourceDatabaseObjectCount

      public SchemaComparisonValidationResult withSourceDatabaseObjectCount(Map<String,Long> sourceDatabaseObjectCount)
      Set the sourceDatabaseObjectCount property: Count of source database objects.
      Parameters:
      sourceDatabaseObjectCount - the sourceDatabaseObjectCount value to set.
      Returns:
      the SchemaComparisonValidationResult object itself.
    • targetDatabaseObjectCount

      public Map<String,Long> targetDatabaseObjectCount()
      Get the targetDatabaseObjectCount property: Count of target database objects.
      Returns:
      the targetDatabaseObjectCount value.
    • withTargetDatabaseObjectCount

      public SchemaComparisonValidationResult withTargetDatabaseObjectCount(Map<String,Long> targetDatabaseObjectCount)
      Set the targetDatabaseObjectCount property: Count of target database objects.
      Parameters:
      targetDatabaseObjectCount - the targetDatabaseObjectCount value to set.
      Returns:
      the SchemaComparisonValidationResult object itself.
    • validate

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