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

.Outputs
NmePowershell.Models.HostPoolAdConfig

#>

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

        [Parameter()]
        [int]
        $AdProfileId
    )

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

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