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

.Outputs
NmePowershell.Models.NotificationActionEmailDelivery

#>

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

        [Parameter(Mandatory)]
        [NmePowershell.PSArgumentCompleterAttribute("None", "EntraIdManager")]
        [string[]]
        $BuiltInRecipients,
        [Parameter(Mandatory)]
        [bool]
        $Enable,
        [Parameter()]
        [int]
        $MailboxId,
        [Parameter(Mandatory)]
        [string[]]
        $SendTo
    )

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

        if ($PSBoundParameters.ContainsKey('BuiltInRecipients')) {
            $Object.BuiltInRecipients = $BuiltInRecipients
        }
        if ($PSBoundParameters.ContainsKey('Enable')) {
            $Object.Enable = $Enable
        }
        if ($PSBoundParameters.ContainsKey('MailboxId')) {
            $Object.MailboxId = $MailboxId
        }
        if ($PSBoundParameters.ContainsKey('SendTo')) {
            $Object.SendTo = $SendTo
        }
        return $Object
    }
}