// 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 ValidationError {
    /*
     * Error Text
     */
    @JsonProperty(value = "text", access = JsonProperty.Access.WRITE_ONLY)
    private String text;

    /*
     * Severity of the error
     */
    @JsonProperty(value = "severity", access = JsonProperty.Access.WRITE_ONLY)
    private Severity severity;

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

    /**
     * Get the text property: Error Text.
     *
     * @return the text value.
     */
    public String text() {
        return this.text;
    }

    /**
     * Get the severity property: Severity of the error.
     *
     * @return the severity value.
     */
    public Severity severity() {
        return this.severity;
    }

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