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

.Outputs
NmePowershell.Models.HostPoolActiveDirectoryUpdate

#>

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

        [Parameter()]
        [NmePowershell.PSArgumentCompleterAttribute("AD", "AzureAD", "AzureADDS")]
        [string]
        $CustomAdIdentityType,
        [Parameter()]
        [string]
        $CustomDomain,
        [Parameter()]
        [bool]
        $CustomEnrollWithIntune,
        [Parameter()]
        [string]
        $CustomFriendlyName,
        [Parameter()]
        [string]
        $CustomOrganizationUnit,
        [Parameter()]
        [string]
        $CustomPassword,
        [Parameter()]
        [string]
        $CustomUsername,
        [Parameter()]
        [int]
        $PredefinedConfigId,
        [Parameter(Mandatory)]
        [NmePowershell.PSArgumentCompleterAttribute("Default", "Predefined", "Custom")]
        [string]
        $Type
    )

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

        if ($PSBoundParameters.ContainsKey('CustomAdIdentityType')) {
            $Object.CustomAdIdentityType = $CustomAdIdentityType
        }
        if ($PSBoundParameters.ContainsKey('CustomDomain')) {
            $Object.CustomDomain = $CustomDomain
        }
        if ($PSBoundParameters.ContainsKey('CustomEnrollWithIntune')) {
            $Object.CustomEnrollWithIntune = $CustomEnrollWithIntune
        }
        if ($PSBoundParameters.ContainsKey('CustomFriendlyName')) {
            $Object.CustomFriendlyName = $CustomFriendlyName
        }
        if ($PSBoundParameters.ContainsKey('CustomOrganizationUnit')) {
            $Object.CustomOrganizationUnit = $CustomOrganizationUnit
        }
        if ($PSBoundParameters.ContainsKey('CustomPassword')) {
            $Object.CustomPassword = $CustomPassword
        }
        if ($PSBoundParameters.ContainsKey('CustomUsername')) {
            $Object.CustomUsername = $CustomUsername
        }
        if ($PSBoundParameters.ContainsKey('PredefinedConfigId')) {
            $Object.PredefinedConfigId = $PredefinedConfigId
        }
        if ($PSBoundParameters.ContainsKey('Type')) {
            $Object.Type = $Type
        }
        return $Object
    }
}