Functions/New-IAConnectorNotificationObject.ps1

Function New-IAConnectorNotificationObject{
    Param(
        [Bool]$Acknowledged = $false,
        [Int]$NotificationType = 1,
        [Parameter(Mandatory = $true)]
        [Guid]$ConnectorId
    )

    $cultureEnUs = New-Object System.Globalization.CultureInfo("en-US")
    $Timestamp = [DateTime]::UtcNow.ToString("yyyy-MM-ddTHH:mm:ss.000Z", $cultureEnUs)

    $IAConnectorNotificationObject = New-Object -TypeName PSObject
    $IAConnectorNotificationObject | Add-Member -MemberType NoteProperty -Name 'Acknowledged' -Value $Acknowledged
    $IAConnectorNotificationObject | Add-Member -MemberType NoteProperty -Name 'NotificationType' -Value $NotificationType
    $IAConnectorNotificationObject | Add-Member -MemberType NoteProperty -Name 'ConnectorId' -Value $ConnectorId
    $IAConnectorNotificationObject | Add-Member -MemberType NoteProperty -Name 'Timestamp' -Value $Timestamp

    return $IAConnectorNotificationObject
}