custom/autogen-model-cmdlets/New-NmeAzureFilesBasicAutoscaleConfigModel.ps1


# ----------------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.8, generator: @autorest/powershell@4.0.752)
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# ----------------------------------------------------------------------------------

<#
.Synopsis
Create an in-memory object for AzureFilesBasicAutoscaleConfig.
.Description
Create an in-memory object for AzureFilesBasicAutoscaleConfig.

.Outputs
NmePowershell.Models.AzureFilesBasicAutoscaleConfig

#>

function New-NmeAzureFilesBasicAutoscaleConfigModel {
    [NmePowershell.ModelCmdletAttribute()]
    [OutputType('NmePowershell.Models.AzureFilesBasicAutoscaleConfig')]
    [CmdletBinding(PositionalBinding=$false)]
    Param(

        [Parameter(Mandatory)]
        [int]
        $MaxQuotaBuffer,
        [Parameter(Mandatory)]
        [int]
        $MaxQuotaLimitGb,
        [Parameter(Mandatory)]
        [int]
        $MinQuotaBuffer
    )

    process {
        $Object = [NmePowershell.Models.AzureFilesBasicAutoscaleConfig]::New()

        if ($PSBoundParameters.ContainsKey('MaxQuotaBuffer')) {
            $Object.MaxQuotaBuffer = $MaxQuotaBuffer
        }
        if ($PSBoundParameters.ContainsKey('MaxQuotaLimitGb')) {
            $Object.MaxQuotaLimitGb = $MaxQuotaLimitGb
        }
        if ($PSBoundParameters.ContainsKey('MinQuotaBuffer')) {
            $Object.MinQuotaBuffer = $MinQuotaBuffer
        }
        return $Object
    }
}