custom/autogen-model-cmdlets/New-NmeAutoScaleSecondaryRegionConfigurationModel.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 AutoScaleSecondaryRegionConfiguration.
.Description
Create an in-memory object for AutoScaleSecondaryRegionConfiguration.

.Outputs
NmePowershell.Models.AutoScaleSecondaryRegionConfiguration

#>

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

        [Parameter(Mandatory)]
        [string]
        $NetworkId,
        [Parameter()]
        [string]
        $Prefix,
        [Parameter(Mandatory)]
        [string]
        $ResourceGroupId,
        [Parameter(Mandatory)]
        [string]
        $Subnet
    )

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

        if ($PSBoundParameters.ContainsKey('NetworkId')) {
            $Object.NetworkId = $NetworkId
        }
        if ($PSBoundParameters.ContainsKey('Prefix')) {
            $Object.Prefix = $Prefix
        }
        if ($PSBoundParameters.ContainsKey('ResourceGroupId')) {
            $Object.ResourceGroupId = $ResourceGroupId
        }
        if ($PSBoundParameters.ContainsKey('Subnet')) {
            $Object.Subnet = $Subnet
        }
        return $Object
    }
}