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

.Outputs
NmePowershell.Models.WorkingHoursScaleInPolicy

#>

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

        [Parameter(Mandatory)]
        [NmePowershell.PSArgumentCompleterAttribute("High", "Medium", "Low")]
        [string]
        $Aggressiveness,
        [Parameter()]
        [string]
        $MessagingMessage,
        [Parameter()]
        [int]
        $MessagingMinutesBeforeRemove
    )

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

        if ($PSBoundParameters.ContainsKey('Aggressiveness')) {
            $Object.Aggressiveness = $Aggressiveness
        }
        if ($PSBoundParameters.ContainsKey('MessagingMessage')) {
            $Object.MessagingMessage = $MessagingMessage
        }
        if ($PSBoundParameters.ContainsKey('MessagingMinutesBeforeRemove')) {
            $Object.MessagingMinutesBeforeRemove = $MessagingMinutesBeforeRemove
        }
        return $Object
    }
}