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

.Outputs
NmePowershell.Models.NetAppFilesPreStageConfigUpdate

#>

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

        [Parameter()]
        [bool]
        $IsEnabled,
        [Parameter()]
        [string]
        $TimezoneId,
        [Parameter()]
        [NmePowershell.Models.INetAppFilesWorkTimeSet[]]
        $WorkTimeSets
    )

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

        if ($PSBoundParameters.ContainsKey('IsEnabled')) {
            $Object.IsEnabled = $IsEnabled
        }
        if ($PSBoundParameters.ContainsKey('TimezoneId')) {
            $Object.TimezoneId = $TimezoneId
        }
        if ($PSBoundParameters.ContainsKey('WorkTimeSets')) {
            $Object.WorkTimeSets = $WorkTimeSets
        }
        return $Object
    }
}