Model/SitePolicyElectionSetting.ps1

#
# Cloud Governance Api
# No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
# Version: 1.0
# Generated by OpenAPI Generator: https://openapi-generator.tech
#

<#
.SYNOPSIS

No summary available.

.DESCRIPTION

No description available.

.PARAMETER IsEnabled
No description available.

.PARAMETER EnableOnlyOtherContactElection
No description available.

.PARAMETER ExcludeUsers
No description available.

.PARAMETER IsNotifyTaskEnabled
No description available.

.PARAMETER TaskEmailTemplate
No description available.

.PARAMETER IsNotifyPrimaryContactEnabled
No description available.

.PARAMETER NotifyPrimaryContactTemplate
No description available.

.PARAMETER IsNotifySecondaryContactEnabled
No description available.

.PARAMETER NotifySecondaryContactTemplate
No description available.

.PARAMETER Duration
No description available.

.PARAMETER DurationType
No description available.

.PARAMETER IsReminderEnabled
No description available.

.PARAMETER ReminderProfile
No description available.

.OUTPUTS

SitePolicyElectionSetting<PSCustomObject>
#>


function New-SitePolicyElectionSetting {
    [CmdletBinding()]
    Param (
        [Parameter(Position = 0, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${IsEnabled},
        [Parameter(Position = 1, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${EnableOnlyOtherContactElection},
        [Parameter(Position = 2, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject[]]
        ${ExcludeUsers},
        [Parameter(Position = 3, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${IsNotifyTaskEnabled},
        [Parameter(Position = 4, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${TaskEmailTemplate},
        [Parameter(Position = 5, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${IsNotifyPrimaryContactEnabled},
        [Parameter(Position = 6, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${NotifyPrimaryContactTemplate},
        [Parameter(Position = 7, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${IsNotifySecondaryContactEnabled},
        [Parameter(Position = 8, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${NotifySecondaryContactTemplate},
        [Parameter(Position = 9, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int32]]
        ${Duration},
        [Parameter(Position = 10, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Int32]]
        ${DurationType},
        [Parameter(Position = 11, ValueFromPipelineByPropertyName = $true)]
        [System.Nullable[Boolean]]
        ${IsReminderEnabled},
        [Parameter(Position = 12, ValueFromPipelineByPropertyName = $true)]
        [PSCustomObject]
        ${ReminderProfile}
    )

    Process {
        'Creating object: Cloud.Governance.Client => SitePolicyElectionSetting' | Write-Debug
        $PSBoundParameters | Out-DebugParameter | Write-Debug

        $PSO = [PSCustomObject]@{
            "isEnabled" = ${IsEnabled}
            "enableOnlyOtherContactElection" = ${EnableOnlyOtherContactElection}
            "excludeUsers" = ${ExcludeUsers}
            "isNotifyTaskEnabled" = ${IsNotifyTaskEnabled}
            "taskEmailTemplate" = ${TaskEmailTemplate}
            "isNotifyPrimaryContactEnabled" = ${IsNotifyPrimaryContactEnabled}
            "notifyPrimaryContactTemplate" = ${NotifyPrimaryContactTemplate}
            "isNotifySecondaryContactEnabled" = ${IsNotifySecondaryContactEnabled}
            "notifySecondaryContactTemplate" = ${NotifySecondaryContactTemplate}
            "duration" = ${Duration}
            "durationType" = ${DurationType}
            "isReminderEnabled" = ${IsReminderEnabled}
            "reminderProfile" = ${ReminderProfile}
        }

        return $PSO
    }
}