{-# 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.DevOpsGuru.Types.InsightSeverity
-- 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.DevOpsGuru.Types.InsightSeverity
  ( InsightSeverity
      ( ..,
        InsightSeverity_HIGH,
        InsightSeverity_LOW,
        InsightSeverity_MEDIUM
      ),
  )
where

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

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

pattern InsightSeverity_HIGH :: InsightSeverity
pattern $bInsightSeverity_HIGH :: InsightSeverity
$mInsightSeverity_HIGH :: forall r. InsightSeverity -> (Void# -> r) -> (Void# -> r) -> r
InsightSeverity_HIGH = InsightSeverity' "HIGH"

pattern InsightSeverity_LOW :: InsightSeverity
pattern $bInsightSeverity_LOW :: InsightSeverity
$mInsightSeverity_LOW :: forall r. InsightSeverity -> (Void# -> r) -> (Void# -> r) -> r
InsightSeverity_LOW = InsightSeverity' "LOW"

pattern InsightSeverity_MEDIUM :: InsightSeverity
pattern $bInsightSeverity_MEDIUM :: InsightSeverity
$mInsightSeverity_MEDIUM :: forall r. InsightSeverity -> (Void# -> r) -> (Void# -> r) -> r
InsightSeverity_MEDIUM = InsightSeverity' "MEDIUM"

{-# COMPLETE
  InsightSeverity_HIGH,
  InsightSeverity_LOW,
  InsightSeverity_MEDIUM,
  InsightSeverity'
  #-}