{-# 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.ApplicationInsights.Types.SeverityLevel
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.ApplicationInsights.Types.SeverityLevel
  ( SeverityLevel
      ( ..,
        SeverityLevel_High,
        SeverityLevel_Low,
        SeverityLevel_Medium
      ),
  )
where

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

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

pattern SeverityLevel_High :: SeverityLevel
pattern $bSeverityLevel_High :: SeverityLevel
$mSeverityLevel_High :: forall r. SeverityLevel -> (Void# -> r) -> (Void# -> r) -> r
SeverityLevel_High = SeverityLevel' "High"

pattern SeverityLevel_Low :: SeverityLevel
pattern $bSeverityLevel_Low :: SeverityLevel
$mSeverityLevel_Low :: forall r. SeverityLevel -> (Void# -> r) -> (Void# -> r) -> r
SeverityLevel_Low = SeverityLevel' "Low"

pattern SeverityLevel_Medium :: SeverityLevel
pattern $bSeverityLevel_Medium :: SeverityLevel
$mSeverityLevel_Medium :: forall r. SeverityLevel -> (Void# -> r) -> (Void# -> r) -> r
SeverityLevel_Medium = SeverityLevel' "Medium"

{-# COMPLETE
  SeverityLevel_High,
  SeverityLevel_Low,
  SeverityLevel_Medium,
  SeverityLevel'
  #-}