{-# 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.ElastiCache.Types.ServiceUpdateSeverity
-- 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.ElastiCache.Types.ServiceUpdateSeverity
  ( ServiceUpdateSeverity
      ( ..,
        ServiceUpdateSeverity_Critical,
        ServiceUpdateSeverity_Important,
        ServiceUpdateSeverity_Low,
        ServiceUpdateSeverity_Medium
      ),
  )
where

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

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

pattern ServiceUpdateSeverity_Critical :: ServiceUpdateSeverity
pattern $bServiceUpdateSeverity_Critical :: ServiceUpdateSeverity
$mServiceUpdateSeverity_Critical :: forall {r}.
ServiceUpdateSeverity -> ((# #) -> r) -> ((# #) -> r) -> r
ServiceUpdateSeverity_Critical = ServiceUpdateSeverity' "critical"

pattern ServiceUpdateSeverity_Important :: ServiceUpdateSeverity
pattern $bServiceUpdateSeverity_Important :: ServiceUpdateSeverity
$mServiceUpdateSeverity_Important :: forall {r}.
ServiceUpdateSeverity -> ((# #) -> r) -> ((# #) -> r) -> r
ServiceUpdateSeverity_Important = ServiceUpdateSeverity' "important"

pattern ServiceUpdateSeverity_Low :: ServiceUpdateSeverity
pattern $bServiceUpdateSeverity_Low :: ServiceUpdateSeverity
$mServiceUpdateSeverity_Low :: forall {r}.
ServiceUpdateSeverity -> ((# #) -> r) -> ((# #) -> r) -> r
ServiceUpdateSeverity_Low = ServiceUpdateSeverity' "low"

pattern ServiceUpdateSeverity_Medium :: ServiceUpdateSeverity
pattern $bServiceUpdateSeverity_Medium :: ServiceUpdateSeverity
$mServiceUpdateSeverity_Medium :: forall {r}.
ServiceUpdateSeverity -> ((# #) -> r) -> ((# #) -> r) -> r
ServiceUpdateSeverity_Medium = ServiceUpdateSeverity' "medium"

{-# COMPLETE
  ServiceUpdateSeverity_Critical,
  ServiceUpdateSeverity_Important,
  ServiceUpdateSeverity_Low,
  ServiceUpdateSeverity_Medium,
  ServiceUpdateSeverity'
  #-}