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

.Outputs
NmePowershell.Models.UserDrivenPreStageHostsConfiguration

#>

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

        [Parameter(Mandatory)]
        [NmePowershell.Models.IUserDrivenPreStageHostsConfigurationItem[]]
        $Configs,
        [Parameter(Mandatory)]
        [bool]
        $Enable,
        [Parameter(Mandatory)]
        [bool]
        $PreStageIfUnassigned
    )

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

        if ($PSBoundParameters.ContainsKey('Configs')) {
            $Object.Configs = $Configs
        }
        if ($PSBoundParameters.ContainsKey('Enable')) {
            $Object.Enable = $Enable
        }
        if ($PSBoundParameters.ContainsKey('PreStageIfUnassigned')) {
            $Object.PreStageIfUnassigned = $PreStageIfUnassigned
        }
        return $Object
    }
}