{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.SupportApp.Types.NotificationSeverityLevel
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.SupportApp.Types.NotificationSeverityLevel
  ( NotificationSeverityLevel
      ( ..,
        NotificationSeverityLevel_All,
        NotificationSeverityLevel_High,
        NotificationSeverityLevel_None
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype NotificationSeverityLevel = NotificationSeverityLevel'
  { NotificationSeverityLevel -> Text
fromNotificationSeverityLevel ::
      Data.Text
  }
  deriving stock
    ( Int -> NotificationSeverityLevel -> ShowS
[NotificationSeverityLevel] -> ShowS
NotificationSeverityLevel -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [NotificationSeverityLevel] -> ShowS
$cshowList :: [NotificationSeverityLevel] -> ShowS
show :: NotificationSeverityLevel -> String
$cshow :: NotificationSeverityLevel -> String
showsPrec :: Int -> NotificationSeverityLevel -> ShowS
$cshowsPrec :: Int -> NotificationSeverityLevel -> ShowS
Prelude.Show,
      ReadPrec [NotificationSeverityLevel]
ReadPrec NotificationSeverityLevel
Int -> ReadS NotificationSeverityLevel
ReadS [NotificationSeverityLevel]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [NotificationSeverityLevel]
$creadListPrec :: ReadPrec [NotificationSeverityLevel]
readPrec :: ReadPrec NotificationSeverityLevel
$creadPrec :: ReadPrec NotificationSeverityLevel
readList :: ReadS [NotificationSeverityLevel]
$creadList :: ReadS [NotificationSeverityLevel]
readsPrec :: Int -> ReadS NotificationSeverityLevel
$creadsPrec :: Int -> ReadS NotificationSeverityLevel
Prelude.Read,
      NotificationSeverityLevel -> NotificationSeverityLevel -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: NotificationSeverityLevel -> NotificationSeverityLevel -> Bool
$c/= :: NotificationSeverityLevel -> NotificationSeverityLevel -> Bool
== :: NotificationSeverityLevel -> NotificationSeverityLevel -> Bool
$c== :: NotificationSeverityLevel -> NotificationSeverityLevel -> Bool
Prelude.Eq,
      Eq NotificationSeverityLevel
NotificationSeverityLevel -> NotificationSeverityLevel -> Bool
NotificationSeverityLevel -> NotificationSeverityLevel -> Ordering
NotificationSeverityLevel
-> NotificationSeverityLevel -> NotificationSeverityLevel
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: NotificationSeverityLevel
-> NotificationSeverityLevel -> NotificationSeverityLevel
$cmin :: NotificationSeverityLevel
-> NotificationSeverityLevel -> NotificationSeverityLevel
max :: NotificationSeverityLevel
-> NotificationSeverityLevel -> NotificationSeverityLevel
$cmax :: NotificationSeverityLevel
-> NotificationSeverityLevel -> NotificationSeverityLevel
>= :: NotificationSeverityLevel -> NotificationSeverityLevel -> Bool
$c>= :: NotificationSeverityLevel -> NotificationSeverityLevel -> Bool
> :: NotificationSeverityLevel -> NotificationSeverityLevel -> Bool
$c> :: NotificationSeverityLevel -> NotificationSeverityLevel -> Bool
<= :: NotificationSeverityLevel -> NotificationSeverityLevel -> Bool
$c<= :: NotificationSeverityLevel -> NotificationSeverityLevel -> Bool
< :: NotificationSeverityLevel -> NotificationSeverityLevel -> Bool
$c< :: NotificationSeverityLevel -> NotificationSeverityLevel -> Bool
compare :: NotificationSeverityLevel -> NotificationSeverityLevel -> Ordering
$ccompare :: NotificationSeverityLevel -> NotificationSeverityLevel -> Ordering
Prelude.Ord,
      forall x.
Rep NotificationSeverityLevel x -> NotificationSeverityLevel
forall x.
NotificationSeverityLevel -> Rep NotificationSeverityLevel x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep NotificationSeverityLevel x -> NotificationSeverityLevel
$cfrom :: forall x.
NotificationSeverityLevel -> Rep NotificationSeverityLevel x
Prelude.Generic
    )
  deriving newtype
    ( Eq NotificationSeverityLevel
Int -> NotificationSeverityLevel -> Int
NotificationSeverityLevel -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: NotificationSeverityLevel -> Int
$chash :: NotificationSeverityLevel -> Int
hashWithSalt :: Int -> NotificationSeverityLevel -> Int
$chashWithSalt :: Int -> NotificationSeverityLevel -> Int
Prelude.Hashable,
      NotificationSeverityLevel -> ()
forall a. (a -> ()) -> NFData a
rnf :: NotificationSeverityLevel -> ()
$crnf :: NotificationSeverityLevel -> ()
Prelude.NFData,
      Text -> Either String NotificationSeverityLevel
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String NotificationSeverityLevel
$cfromText :: Text -> Either String NotificationSeverityLevel
Data.FromText,
      NotificationSeverityLevel -> Text
forall a. (a -> Text) -> ToText a
toText :: NotificationSeverityLevel -> Text
$ctoText :: NotificationSeverityLevel -> Text
Data.ToText,
      NotificationSeverityLevel -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: NotificationSeverityLevel -> ByteString
$ctoBS :: NotificationSeverityLevel -> ByteString
Data.ToByteString,
      NotificationSeverityLevel -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: NotificationSeverityLevel -> ByteStringBuilder
$cbuild :: NotificationSeverityLevel -> ByteStringBuilder
Data.ToLog,
      HeaderName -> NotificationSeverityLevel -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> NotificationSeverityLevel -> [Header]
$ctoHeader :: HeaderName -> NotificationSeverityLevel -> [Header]
Data.ToHeader,
      NotificationSeverityLevel -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: NotificationSeverityLevel -> QueryString
$ctoQuery :: NotificationSeverityLevel -> QueryString
Data.ToQuery,
      Value -> Parser [NotificationSeverityLevel]
Value -> Parser NotificationSeverityLevel
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [NotificationSeverityLevel]
$cparseJSONList :: Value -> Parser [NotificationSeverityLevel]
parseJSON :: Value -> Parser NotificationSeverityLevel
$cparseJSON :: Value -> Parser NotificationSeverityLevel
Data.FromJSON,
      FromJSONKeyFunction [NotificationSeverityLevel]
FromJSONKeyFunction NotificationSeverityLevel
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [NotificationSeverityLevel]
$cfromJSONKeyList :: FromJSONKeyFunction [NotificationSeverityLevel]
fromJSONKey :: FromJSONKeyFunction NotificationSeverityLevel
$cfromJSONKey :: FromJSONKeyFunction NotificationSeverityLevel
Data.FromJSONKey,
      [NotificationSeverityLevel] -> Encoding
[NotificationSeverityLevel] -> Value
NotificationSeverityLevel -> Encoding
NotificationSeverityLevel -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [NotificationSeverityLevel] -> Encoding
$ctoEncodingList :: [NotificationSeverityLevel] -> Encoding
toJSONList :: [NotificationSeverityLevel] -> Value
$ctoJSONList :: [NotificationSeverityLevel] -> Value
toEncoding :: NotificationSeverityLevel -> Encoding
$ctoEncoding :: NotificationSeverityLevel -> Encoding
toJSON :: NotificationSeverityLevel -> Value
$ctoJSON :: NotificationSeverityLevel -> Value
Data.ToJSON,
      ToJSONKeyFunction [NotificationSeverityLevel]
ToJSONKeyFunction NotificationSeverityLevel
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [NotificationSeverityLevel]
$ctoJSONKeyList :: ToJSONKeyFunction [NotificationSeverityLevel]
toJSONKey :: ToJSONKeyFunction NotificationSeverityLevel
$ctoJSONKey :: ToJSONKeyFunction NotificationSeverityLevel
Data.ToJSONKey,
      [Node] -> Either String NotificationSeverityLevel
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String NotificationSeverityLevel
$cparseXML :: [Node] -> Either String NotificationSeverityLevel
Data.FromXML,
      NotificationSeverityLevel -> XML
forall a. (a -> XML) -> ToXML a
toXML :: NotificationSeverityLevel -> XML
$ctoXML :: NotificationSeverityLevel -> XML
Data.ToXML
    )

pattern NotificationSeverityLevel_All :: NotificationSeverityLevel
pattern $bNotificationSeverityLevel_All :: NotificationSeverityLevel
$mNotificationSeverityLevel_All :: forall {r}.
NotificationSeverityLevel -> ((# #) -> r) -> ((# #) -> r) -> r
NotificationSeverityLevel_All = NotificationSeverityLevel' "all"

pattern NotificationSeverityLevel_High :: NotificationSeverityLevel
pattern $bNotificationSeverityLevel_High :: NotificationSeverityLevel
$mNotificationSeverityLevel_High :: forall {r}.
NotificationSeverityLevel -> ((# #) -> r) -> ((# #) -> r) -> r
NotificationSeverityLevel_High = NotificationSeverityLevel' "high"

pattern NotificationSeverityLevel_None :: NotificationSeverityLevel
pattern $bNotificationSeverityLevel_None :: NotificationSeverityLevel
$mNotificationSeverityLevel_None :: forall {r}.
NotificationSeverityLevel -> ((# #) -> r) -> ((# #) -> r) -> r
NotificationSeverityLevel_None = NotificationSeverityLevel' "none"

{-# COMPLETE
  NotificationSeverityLevel_All,
  NotificationSeverityLevel_High,
  NotificationSeverityLevel_None,
  NotificationSeverityLevel'
  #-}