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

.Outputs
NmePowershell.Models.SessionHostAssociate

#>

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

        [Parameter(Mandatory)]
        [string]
        $VMId
    )

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

        if ($PSBoundParameters.ContainsKey('VMId')) {
            $Object.VMId = $VMId
        }
        return $Object
    }
}