Functions/New-IAConnectorNotificationObject.ps1

Function New-IAConnectorNotificationObject{
    Param(
        [Bool]$Acknowledged = $false,
        [Int]$NotificationType = 1,
        [Parameter(Mandatory = $true)]
        [Guid]$ConnectorId,
        [String]$Timestamp = [DateTime]::UtcNow.ToString("yyyy-MM-ddTHH:mm:ss.000Z")
    )
    $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
}