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

package com.azure.resourcemanager.appcontainers.models;

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

/** Storage properties. */
@Fluent
public final class ManagedEnvironmentStorageProperties {
    /*
     * Azure file properties
     */
    @JsonProperty(value = "azureFile")
    private AzureFileProperties azureFile;

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

    /**
     * Get the azureFile property: Azure file properties.
     *
     * @return the azureFile value.
     */
    public AzureFileProperties azureFile() {
        return this.azureFile;
    }

    /**
     * Set the azureFile property: Azure file properties.
     *
     * @param azureFile the azureFile value to set.
     * @return the ManagedEnvironmentStorageProperties object itself.
     */
    public ManagedEnvironmentStorageProperties withAzureFile(AzureFileProperties azureFile) {
        this.azureFile = azureFile;
        return this;
    }

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