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

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

newtype ServiceUpdateSeverity = ServiceUpdateSeverity'
  { ServiceUpdateSeverity -> Text
fromServiceUpdateSeverity ::
      Core.Text
  }
  deriving stock
    ( Int -> ServiceUpdateSeverity -> ShowS
[ServiceUpdateSeverity] -> ShowS
ServiceUpdateSeverity -> String
(Int -> ServiceUpdateSeverity -> ShowS)
-> (ServiceUpdateSeverity -> String)
-> ([ServiceUpdateSeverity] -> ShowS)
-> Show ServiceUpdateSeverity
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]
(Int -> ReadS ServiceUpdateSeverity)
-> ReadS [ServiceUpdateSeverity]
-> ReadPrec ServiceUpdateSeverity
-> ReadPrec [ServiceUpdateSeverity]
-> Read 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
(ServiceUpdateSeverity -> ServiceUpdateSeverity -> Bool)
-> (ServiceUpdateSeverity -> ServiceUpdateSeverity -> Bool)
-> Eq ServiceUpdateSeverity
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
Eq ServiceUpdateSeverity
-> (ServiceUpdateSeverity -> ServiceUpdateSeverity -> Ordering)
-> (ServiceUpdateSeverity -> ServiceUpdateSeverity -> Bool)
-> (ServiceUpdateSeverity -> ServiceUpdateSeverity -> Bool)
-> (ServiceUpdateSeverity -> ServiceUpdateSeverity -> Bool)
-> (ServiceUpdateSeverity -> ServiceUpdateSeverity -> Bool)
-> (ServiceUpdateSeverity
    -> ServiceUpdateSeverity -> ServiceUpdateSeverity)
-> (ServiceUpdateSeverity
    -> ServiceUpdateSeverity -> ServiceUpdateSeverity)
-> Ord 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
$cp1Ord :: Eq ServiceUpdateSeverity
Prelude.Ord,
      (forall x. ServiceUpdateSeverity -> Rep ServiceUpdateSeverity x)
-> (forall x. Rep ServiceUpdateSeverity x -> ServiceUpdateSeverity)
-> Generic ServiceUpdateSeverity
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
    ( Int -> ServiceUpdateSeverity -> Int
ServiceUpdateSeverity -> Int
(Int -> ServiceUpdateSeverity -> Int)
-> (ServiceUpdateSeverity -> Int) -> Hashable ServiceUpdateSeverity
forall 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 -> ()
(ServiceUpdateSeverity -> ()) -> NFData ServiceUpdateSeverity
forall a. (a -> ()) -> NFData a
rnf :: ServiceUpdateSeverity -> ()
$crnf :: ServiceUpdateSeverity -> ()
Prelude.NFData,
      Text -> Either String ServiceUpdateSeverity
(Text -> Either String ServiceUpdateSeverity)
-> FromText ServiceUpdateSeverity
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ServiceUpdateSeverity
$cfromText :: Text -> Either String ServiceUpdateSeverity
Core.FromText,
      ServiceUpdateSeverity -> Text
(ServiceUpdateSeverity -> Text) -> ToText ServiceUpdateSeverity
forall a. (a -> Text) -> ToText a
toText :: ServiceUpdateSeverity -> Text
$ctoText :: ServiceUpdateSeverity -> Text
Core.ToText,
      ServiceUpdateSeverity -> ByteString
(ServiceUpdateSeverity -> ByteString)
-> ToByteString ServiceUpdateSeverity
forall a. (a -> ByteString) -> ToByteString a
toBS :: ServiceUpdateSeverity -> ByteString
$ctoBS :: ServiceUpdateSeverity -> ByteString
Core.ToByteString,
      ServiceUpdateSeverity -> ByteStringBuilder
(ServiceUpdateSeverity -> ByteStringBuilder)
-> ToLog ServiceUpdateSeverity
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ServiceUpdateSeverity -> ByteStringBuilder
$cbuild :: ServiceUpdateSeverity -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ServiceUpdateSeverity -> [Header]
(HeaderName -> ServiceUpdateSeverity -> [Header])
-> ToHeader ServiceUpdateSeverity
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ServiceUpdateSeverity -> [Header]
$ctoHeader :: HeaderName -> ServiceUpdateSeverity -> [Header]
Core.ToHeader,
      ServiceUpdateSeverity -> QueryString
(ServiceUpdateSeverity -> QueryString)
-> ToQuery ServiceUpdateSeverity
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ServiceUpdateSeverity -> QueryString
$ctoQuery :: ServiceUpdateSeverity -> QueryString
Core.ToQuery,
      Value -> Parser [ServiceUpdateSeverity]
Value -> Parser ServiceUpdateSeverity
(Value -> Parser ServiceUpdateSeverity)
-> (Value -> Parser [ServiceUpdateSeverity])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [ServiceUpdateSeverity]
FromJSONKeyFunction ServiceUpdateSeverity
FromJSONKeyFunction ServiceUpdateSeverity
-> FromJSONKeyFunction [ServiceUpdateSeverity]
-> FromJSONKey ServiceUpdateSeverity
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ServiceUpdateSeverity]
$cfromJSONKeyList :: FromJSONKeyFunction [ServiceUpdateSeverity]
fromJSONKey :: FromJSONKeyFunction ServiceUpdateSeverity
$cfromJSONKey :: FromJSONKeyFunction ServiceUpdateSeverity
Core.FromJSONKey,
      [ServiceUpdateSeverity] -> Encoding
[ServiceUpdateSeverity] -> Value
ServiceUpdateSeverity -> Encoding
ServiceUpdateSeverity -> Value
(ServiceUpdateSeverity -> Value)
-> (ServiceUpdateSeverity -> Encoding)
-> ([ServiceUpdateSeverity] -> Value)
-> ([ServiceUpdateSeverity] -> Encoding)
-> ToJSON ServiceUpdateSeverity
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
Core.ToJSON,
      ToJSONKeyFunction [ServiceUpdateSeverity]
ToJSONKeyFunction ServiceUpdateSeverity
ToJSONKeyFunction ServiceUpdateSeverity
-> ToJSONKeyFunction [ServiceUpdateSeverity]
-> ToJSONKey ServiceUpdateSeverity
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ServiceUpdateSeverity]
$ctoJSONKeyList :: ToJSONKeyFunction [ServiceUpdateSeverity]
toJSONKey :: ToJSONKeyFunction ServiceUpdateSeverity
$ctoJSONKey :: ToJSONKeyFunction ServiceUpdateSeverity
Core.ToJSONKey,
      [Node] -> Either String ServiceUpdateSeverity
([Node] -> Either String ServiceUpdateSeverity)
-> FromXML ServiceUpdateSeverity
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ServiceUpdateSeverity
$cparseXML :: [Node] -> Either String ServiceUpdateSeverity
Core.FromXML,
      ServiceUpdateSeverity -> XML
(ServiceUpdateSeverity -> XML) -> ToXML ServiceUpdateSeverity
forall a. (a -> XML) -> ToXML a
toXML :: ServiceUpdateSeverity -> XML
$ctoXML :: ServiceUpdateSeverity -> XML
Core.ToXML
    )

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

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

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

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

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