// 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;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
 * Gets or sets the file share configuration where the transport directory fileshare is created and mounted as a part of
 * the create infra flow. Please pre-create the resource group you intend to place the transport directory in. The
 * storage account and fileshare will be auto-created by the ACSS and doesn’t need to pre-created.
 */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "configurationType")
@JsonTypeName("CreateAndMount")
@Fluent
public final class CreateAndMountFileShareConfiguration extends FileShareConfiguration {
    /*
     * The name of transport file share resource group. This should be pre created by the customer. The app rg is used
     * in case of missing input.
     */
    @JsonProperty(value = "resourceGroup")
    private String resourceGroup;

    /*
     * The name of file share storage account name . A custom name is used in case of missing input.
     */
    @JsonProperty(value = "storageAccountName")
    private String storageAccountName;

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

    /**
     * Get the resourceGroup property: The name of transport file share resource group. This should be pre created by
     * the customer. The app rg is used in case of missing input.
     *
     * @return the resourceGroup value.
     */
    public String resourceGroup() {
        return this.resourceGroup;
    }

    /**
     * Set the resourceGroup property: The name of transport file share resource group. This should be pre created by
     * the customer. The app rg is used in case of missing input.
     *
     * @param resourceGroup the resourceGroup value to set.
     * @return the CreateAndMountFileShareConfiguration object itself.
     */
    public CreateAndMountFileShareConfiguration withResourceGroup(String resourceGroup) {
        this.resourceGroup = resourceGroup;
        return this;
    }

    /**
     * Get the storageAccountName property: The name of file share storage account name . A custom name is used in case
     * of missing input.
     *
     * @return the storageAccountName value.
     */
    public String storageAccountName() {
        return this.storageAccountName;
    }

    /**
     * Set the storageAccountName property: The name of file share storage account name . A custom name is used in case
     * of missing input.
     *
     * @param storageAccountName the storageAccountName value to set.
     * @return the CreateAndMountFileShareConfiguration object itself.
     */
    public CreateAndMountFileShareConfiguration withStorageAccountName(String storageAccountName) {
        this.storageAccountName = storageAccountName;
        return this;
    }

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