{-# 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.ECR.Types.FindingSeverity
-- 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.ECR.Types.FindingSeverity
  ( FindingSeverity
      ( ..,
        FindingSeverity_CRITICAL,
        FindingSeverity_HIGH,
        FindingSeverity_INFORMATIONAL,
        FindingSeverity_LOW,
        FindingSeverity_MEDIUM,
        FindingSeverity_UNDEFINED
      ),
  )
where

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

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

pattern FindingSeverity_CRITICAL :: FindingSeverity
pattern $bFindingSeverity_CRITICAL :: FindingSeverity
$mFindingSeverity_CRITICAL :: forall r. FindingSeverity -> (Void# -> r) -> (Void# -> r) -> r
FindingSeverity_CRITICAL = FindingSeverity' "CRITICAL"

pattern FindingSeverity_HIGH :: FindingSeverity
pattern $bFindingSeverity_HIGH :: FindingSeverity
$mFindingSeverity_HIGH :: forall r. FindingSeverity -> (Void# -> r) -> (Void# -> r) -> r
FindingSeverity_HIGH = FindingSeverity' "HIGH"

pattern FindingSeverity_INFORMATIONAL :: FindingSeverity
pattern $bFindingSeverity_INFORMATIONAL :: FindingSeverity
$mFindingSeverity_INFORMATIONAL :: forall r. FindingSeverity -> (Void# -> r) -> (Void# -> r) -> r
FindingSeverity_INFORMATIONAL = FindingSeverity' "INFORMATIONAL"

pattern FindingSeverity_LOW :: FindingSeverity
pattern $bFindingSeverity_LOW :: FindingSeverity
$mFindingSeverity_LOW :: forall r. FindingSeverity -> (Void# -> r) -> (Void# -> r) -> r
FindingSeverity_LOW = FindingSeverity' "LOW"

pattern FindingSeverity_MEDIUM :: FindingSeverity
pattern $bFindingSeverity_MEDIUM :: FindingSeverity
$mFindingSeverity_MEDIUM :: forall r. FindingSeverity -> (Void# -> r) -> (Void# -> r) -> r
FindingSeverity_MEDIUM = FindingSeverity' "MEDIUM"

pattern FindingSeverity_UNDEFINED :: FindingSeverity
pattern $bFindingSeverity_UNDEFINED :: FindingSeverity
$mFindingSeverity_UNDEFINED :: forall r. FindingSeverity -> (Void# -> r) -> (Void# -> r) -> r
FindingSeverity_UNDEFINED = FindingSeverity' "UNDEFINED"

{-# COMPLETE
  FindingSeverity_CRITICAL,
  FindingSeverity_HIGH,
  FindingSeverity_INFORMATIONAL,
  FindingSeverity_LOW,
  FindingSeverity_MEDIUM,
  FindingSeverity_UNDEFINED,
  FindingSeverity'
  #-}