// 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 ConnectedEnvironmentStorageProperties {
    /*
     * Azure file properties
     */
    @JsonProperty(value = "azureFile")
    private AzureFileProperties azureFile;

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

    /**
     * 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 ConnectedEnvironmentStorageProperties object itself.
     */
    public ConnectedEnvironmentStorageProperties 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();
        }
    }
}
