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

package com.azure.resourcemanager.workloads.models;

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

/** Gets or sets the storage configuration. */
@Fluent
public final class StorageConfiguration {
    /*
     * The properties of the transport directory attached to the VIS. The default for transportFileShareConfiguration
     * is the createAndMount flow if storage configuration is missing.
     */
    @JsonProperty(value = "transportFileShareConfiguration")
    private FileShareConfiguration transportFileShareConfiguration;

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

    /**
     * Get the transportFileShareConfiguration property: The properties of the transport directory attached to the VIS.
     * The default for transportFileShareConfiguration is the createAndMount flow if storage configuration is missing.
     *
     * @return the transportFileShareConfiguration value.
     */
    public FileShareConfiguration transportFileShareConfiguration() {
        return this.transportFileShareConfiguration;
    }

    /**
     * Set the transportFileShareConfiguration property: The properties of the transport directory attached to the VIS.
     * The default for transportFileShareConfiguration is the createAndMount flow if storage configuration is missing.
     *
     * @param transportFileShareConfiguration the transportFileShareConfiguration value to set.
     * @return the StorageConfiguration object itself.
     */
    public StorageConfiguration withTransportFileShareConfiguration(
        FileShareConfiguration transportFileShareConfiguration) {
        this.transportFileShareConfiguration = transportFileShareConfiguration;
        return this;
    }

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