MigrationValidationOptions Class

  • java.lang.Object
    • com.azure.resourcemanager.datamigration.models.MigrationValidationOptions

Implements

public final class MigrationValidationOptions
implements JsonSerializable<MigrationValidationOptions>

Types of validations to run after the migration.

Constructor Summary

Constructor Description
MigrationValidationOptions()

Creates an instance of MigrationValidationOptions class.

Method Summary

Modifier and Type Method and Description
Boolean enableDataIntegrityValidation()

Get the enableDataIntegrityValidation property: Allows to perform a checksum based data integrity validation between source and target for the selected database / tables .

Boolean enableQueryAnalysisValidation()

Get the enableQueryAnalysisValidation property: Allows to perform a quick and intelligent query analysis by retrieving queries from the source database and executes them in the target.

Boolean enableSchemaValidation()

Get the enableSchemaValidation property: Allows to compare the schema information between source and target.

static MigrationValidationOptions fromJson(JsonReader jsonReader)

Reads an instance of MigrationValidationOptions from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MigrationValidationOptions withEnableDataIntegrityValidation(Boolean enableDataIntegrityValidation)

Set the enableDataIntegrityValidation property: Allows to perform a checksum based data integrity validation between source and target for the selected database / tables .

MigrationValidationOptions withEnableQueryAnalysisValidation(Boolean enableQueryAnalysisValidation)

Set the enableQueryAnalysisValidation property: Allows to perform a quick and intelligent query analysis by retrieving queries from the source database and executes them in the target.

MigrationValidationOptions withEnableSchemaValidation(Boolean enableSchemaValidation)

Set the enableSchemaValidation property: Allows to compare the schema information between source and target.

Methods inherited from java.lang.Object

Constructor Details

MigrationValidationOptions

public MigrationValidationOptions()

Creates an instance of MigrationValidationOptions class.

Method Details

enableDataIntegrityValidation

public Boolean enableDataIntegrityValidation()

Get the enableDataIntegrityValidation property: Allows to perform a checksum based data integrity validation between source and target for the selected database / tables .

Returns:

the enableDataIntegrityValidation value.

enableQueryAnalysisValidation

public Boolean enableQueryAnalysisValidation()

Get the enableQueryAnalysisValidation property: Allows to perform a quick and intelligent query analysis by retrieving queries from the source database and executes them in the target. The result will have execution statistics for executions in source and target databases for the extracted queries.

Returns:

the enableQueryAnalysisValidation value.

enableSchemaValidation

public Boolean enableSchemaValidation()

Get the enableSchemaValidation property: Allows to compare the schema information between source and target.

Returns:

the enableSchemaValidation value.

fromJson

public static MigrationValidationOptions fromJson(JsonReader jsonReader)

Reads an instance of MigrationValidationOptions from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MigrationValidationOptions if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MigrationValidationOptions.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEnableDataIntegrityValidation

public MigrationValidationOptions withEnableDataIntegrityValidation(Boolean enableDataIntegrityValidation)

Set the enableDataIntegrityValidation property: Allows to perform a checksum based data integrity validation between source and target for the selected database / tables .

Parameters:

enableDataIntegrityValidation - the enableDataIntegrityValidation value to set.

Returns:

the MigrationValidationOptions object itself.

withEnableQueryAnalysisValidation

public MigrationValidationOptions withEnableQueryAnalysisValidation(Boolean enableQueryAnalysisValidation)

Set the enableQueryAnalysisValidation property: Allows to perform a quick and intelligent query analysis by retrieving queries from the source database and executes them in the target. The result will have execution statistics for executions in source and target databases for the extracted queries.

Parameters:

enableQueryAnalysisValidation - the enableQueryAnalysisValidation value to set.

Returns:

the MigrationValidationOptions object itself.

withEnableSchemaValidation

public MigrationValidationOptions withEnableSchemaValidation(Boolean enableSchemaValidation)

Set the enableSchemaValidation property: Allows to compare the schema information between source and target.

Parameters:

enableSchemaValidation - the enableSchemaValidation value to set.

Returns:

the MigrationValidationOptions object itself.

Applies to