Class SchemaComparisonValidationResult
java.lang.Object
com.azure.resourcemanager.datamigration.models.SchemaComparisonValidationResult
Results for schema comparison between the source and target.
-
Constructor Summary
ConstructorDescriptionCreates an instance of SchemaComparisonValidationResult class. -
Method Summary
Modifier and TypeMethodDescriptionGet the schemaDifferences property: List of schema differences between the source and target databases.Get the sourceDatabaseObjectCount property: Count of source database objects.Get the targetDatabaseObjectCount property: Count of target database objects.void
validate()
Validates the instance.Get the validationErrors property: List of errors that happened while performing schema compare validation.withSourceDatabaseObjectCount
(Map<String, Long> sourceDatabaseObjectCount) Set the sourceDatabaseObjectCount property: Count of source database objects.withTargetDatabaseObjectCount
(Map<String, Long> targetDatabaseObjectCount) Set the targetDatabaseObjectCount property: Count of target database objects.
-
Constructor Details
-
SchemaComparisonValidationResult
public SchemaComparisonValidationResult()Creates an instance of SchemaComparisonValidationResult class.
-
-
Method Details
-
schemaDifferences
Get the schemaDifferences property: List of schema differences between the source and target databases.- Returns:
- the schemaDifferences value.
-
validationErrors
Get the validationErrors property: List of errors that happened while performing schema compare validation.- Returns:
- the validationErrors value.
-
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
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.
-