QueryAnalysisValidationResult Class

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

Implements

public final class QueryAnalysisValidationResult
implements JsonSerializable<QueryAnalysisValidationResult>

Results for query analysis comparison between the source and target.

Constructor Summary

Constructor Description
QueryAnalysisValidationResult()

Creates an instance of QueryAnalysisValidationResult class.

Method Summary

Modifier and Type Method and Description
static QueryAnalysisValidationResult fromJson(JsonReader jsonReader)

Reads an instance of QueryAnalysisValidationResult from the JsonReader.

QueryExecutionResult queryResults()

Get the queryResults property: List of queries executed and it's execution results in source and target.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ValidationError validationErrors()

Get the validationErrors property: Errors that are part of the execution.

QueryAnalysisValidationResult withQueryResults(QueryExecutionResult queryResults)

Set the queryResults property: List of queries executed and it's execution results in source and target.

QueryAnalysisValidationResult withValidationErrors(ValidationError validationErrors)

Set the validationErrors property: Errors that are part of the execution.

Methods inherited from java.lang.Object

Constructor Details

QueryAnalysisValidationResult

public QueryAnalysisValidationResult()

Creates an instance of QueryAnalysisValidationResult class.

Method Details

fromJson

public static QueryAnalysisValidationResult fromJson(JsonReader jsonReader)

Reads an instance of QueryAnalysisValidationResult from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of QueryAnalysisValidationResult 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 QueryAnalysisValidationResult.

queryResults

public QueryExecutionResult queryResults()

Get the queryResults property: List of queries executed and it's execution results in source and target.

Returns:

the queryResults value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

validationErrors

public ValidationError validationErrors()

Get the validationErrors property: Errors that are part of the execution.

Returns:

the validationErrors value.

withQueryResults

public QueryAnalysisValidationResult withQueryResults(QueryExecutionResult queryResults)

Set the queryResults property: List of queries executed and it's execution results in source and target.

Parameters:

queryResults - the queryResults value to set.

Returns:

the QueryAnalysisValidationResult object itself.

withValidationErrors

public QueryAnalysisValidationResult withValidationErrors(ValidationError validationErrors)

Set the validationErrors property: Errors that are part of the execution.

Parameters:

validationErrors - the validationErrors value to set.

Returns:

the QueryAnalysisValidationResult object itself.

Applies to