// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.datamigration.models;

import com.azure.core.annotation.Immutable;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Description about the errors happen while performing migration validation. */
@Immutable
public final class SchemaComparisonValidationResultType {
    /*
     * Name of the object that has the difference
     */
    @JsonProperty(value = "objectName", access = JsonProperty.Access.WRITE_ONLY)
    private String objectName;

    /*
     * Type of the object that has the difference. e.g (Table/View/StoredProcedure)
     */
    @JsonProperty(value = "objectType", access = JsonProperty.Access.WRITE_ONLY)
    private ObjectType objectType;

    /*
     * Update action type with respect to target
     */
    @JsonProperty(value = "updateAction", access = JsonProperty.Access.WRITE_ONLY)
    private UpdateActionType updateAction;

    /** Creates an instance of SchemaComparisonValidationResultType class. */
    public SchemaComparisonValidationResultType() {
    }

    /**
     * Get the objectName property: Name of the object that has the difference.
     *
     * @return the objectName value.
     */
    public String objectName() {
        return this.objectName;
    }

    /**
     * Get the objectType property: Type of the object that has the difference. e.g (Table/View/StoredProcedure).
     *
     * @return the objectType value.
     */
    public ObjectType objectType() {
        return this.objectType;
    }

    /**
     * Get the updateAction property: Update action type with respect to target.
     *
     * @return the updateAction value.
     */
    public UpdateActionType updateAction() {
        return this.updateAction;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
