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

.Outputs
NmePowershell.Models.HostPoolFsLogixUpdate

#>

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

        [Parameter()]
        [NmePowershell.Models.IHostPoolFsLogixProperties]
        $Custom,
        [Parameter(Mandatory)]
        [bool]
        $Enable,
        [Parameter()]
        [int]
        $PredefinedConfigId,
        [Parameter()]
        [NmePowershell.PSArgumentCompleterAttribute("Default", "Predefined", "Custom")]
        [string]
        $Type
    )

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

        if ($PSBoundParameters.ContainsKey('Custom')) {
            $Object.Custom = $Custom
        }
        if ($PSBoundParameters.ContainsKey('Enable')) {
            $Object.Enable = $Enable
        }
        if ($PSBoundParameters.ContainsKey('PredefinedConfigId')) {
            $Object.PredefinedConfigId = $PredefinedConfigId
        }
        if ($PSBoundParameters.ContainsKey('Type')) {
            $Object.Type = $Type
        }
        return $Object
    }
}