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

package com.azure.resourcemanager.databox.models;

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

/** This class represents additional info which Resource Providers pass when an error occurs. */
@Fluent
public final class AdditionalErrorInfo {
    /*
     * Additional information of the type of error.
     */
    @JsonProperty(value = "info")
    private Object info;

    /*
     * Type of error (e.g. CustomerIntervention, PolicyViolation, SecurityViolation).
     */
    @JsonProperty(value = "type")
    private String type;

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

    /**
     * Get the info property: Additional information of the type of error.
     *
     * @return the info value.
     */
    public Object info() {
        return this.info;
    }

    /**
     * Set the info property: Additional information of the type of error.
     *
     * @param info the info value to set.
     * @return the AdditionalErrorInfo object itself.
     */
    public AdditionalErrorInfo withInfo(Object info) {
        this.info = info;
        return this;
    }

    /**
     * Get the type property: Type of error (e.g. CustomerIntervention, PolicyViolation, SecurityViolation).
     *
     * @return the type value.
     */
    public String type() {
        return this.type;
    }

    /**
     * Set the type property: Type of error (e.g. CustomerIntervention, PolicyViolation, SecurityViolation).
     *
     * @param type the type value to set.
     * @return the AdditionalErrorInfo object itself.
     */
    public AdditionalErrorInfo withType(String type) {
        this.type = type;
        return this;
    }

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