// 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.fluent.models;

import com.azure.core.annotation.Immutable;
import com.azure.resourcemanager.databox.models.OverallValidationStatus;
import com.azure.resourcemanager.databox.models.ValidationInputResponse;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** Response of pre job creation validations. */
@Immutable
public final class ValidationResponseInner {
    /*
     * Properties of pre job creation validation response.
     */
    @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
    private ValidationResponseProperties innerProperties;

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

    /**
     * Get the innerProperties property: Properties of pre job creation validation response.
     *
     * @return the innerProperties value.
     */
    private ValidationResponseProperties innerProperties() {
        return this.innerProperties;
    }

    /**
     * Get the status property: Overall validation status.
     *
     * @return the status value.
     */
    public OverallValidationStatus status() {
        return this.innerProperties() == null ? null : this.innerProperties().status();
    }

    /**
     * Get the individualResponseDetails property: List of response details contain validationType and its response as
     * key and value respectively.
     *
     * @return the individualResponseDetails value.
     */
    public List<ValidationInputResponse> individualResponseDetails() {
        return this.innerProperties() == null ? null : this.innerProperties().individualResponseDetails();
    }

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