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

package com.azure.resourcemanager.resourcemover.models;

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

/** The operation error info. */
@Immutable
public final class OperationErrorAdditionalInfo {
    /*
     * The error type.
     */
    @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
    private String type;

    /*
     * The operation error info.
     */
    @JsonProperty(value = "info", access = JsonProperty.Access.WRITE_ONLY)
    private MoveErrorInfo info;

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

    /**
     * Get the type property: The error type.
     *
     * @return the type value.
     */
    public String type() {
        return this.type;
    }

    /**
     * Get the info property: The operation error info.
     *
     * @return the info value.
     */
    public MoveErrorInfo info() {
        return this.info;
    }

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