{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.ElastiCache.Types.PendingAutomaticFailoverStatus
( PendingAutomaticFailoverStatus
( ..,
PendingAutomaticFailoverStatus_Disabled,
PendingAutomaticFailoverStatus_Enabled
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype PendingAutomaticFailoverStatus = PendingAutomaticFailoverStatus'
{ PendingAutomaticFailoverStatus -> Text
fromPendingAutomaticFailoverStatus ::
Core.Text
}
deriving stock
( Int -> PendingAutomaticFailoverStatus -> ShowS
[PendingAutomaticFailoverStatus] -> ShowS
PendingAutomaticFailoverStatus -> String
(Int -> PendingAutomaticFailoverStatus -> ShowS)
-> (PendingAutomaticFailoverStatus -> String)
-> ([PendingAutomaticFailoverStatus] -> ShowS)
-> Show PendingAutomaticFailoverStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PendingAutomaticFailoverStatus] -> ShowS
$cshowList :: [PendingAutomaticFailoverStatus] -> ShowS
show :: PendingAutomaticFailoverStatus -> String
$cshow :: PendingAutomaticFailoverStatus -> String
showsPrec :: Int -> PendingAutomaticFailoverStatus -> ShowS
$cshowsPrec :: Int -> PendingAutomaticFailoverStatus -> ShowS
Prelude.Show,
ReadPrec [PendingAutomaticFailoverStatus]
ReadPrec PendingAutomaticFailoverStatus
Int -> ReadS PendingAutomaticFailoverStatus
ReadS [PendingAutomaticFailoverStatus]
(Int -> ReadS PendingAutomaticFailoverStatus)
-> ReadS [PendingAutomaticFailoverStatus]
-> ReadPrec PendingAutomaticFailoverStatus
-> ReadPrec [PendingAutomaticFailoverStatus]
-> Read PendingAutomaticFailoverStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PendingAutomaticFailoverStatus]
$creadListPrec :: ReadPrec [PendingAutomaticFailoverStatus]
readPrec :: ReadPrec PendingAutomaticFailoverStatus
$creadPrec :: ReadPrec PendingAutomaticFailoverStatus
readList :: ReadS [PendingAutomaticFailoverStatus]
$creadList :: ReadS [PendingAutomaticFailoverStatus]
readsPrec :: Int -> ReadS PendingAutomaticFailoverStatus
$creadsPrec :: Int -> ReadS PendingAutomaticFailoverStatus
Prelude.Read,
PendingAutomaticFailoverStatus
-> PendingAutomaticFailoverStatus -> Bool
(PendingAutomaticFailoverStatus
-> PendingAutomaticFailoverStatus -> Bool)
-> (PendingAutomaticFailoverStatus
-> PendingAutomaticFailoverStatus -> Bool)
-> Eq PendingAutomaticFailoverStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PendingAutomaticFailoverStatus
-> PendingAutomaticFailoverStatus -> Bool
$c/= :: PendingAutomaticFailoverStatus
-> PendingAutomaticFailoverStatus -> Bool
== :: PendingAutomaticFailoverStatus
-> PendingAutomaticFailoverStatus -> Bool
$c== :: PendingAutomaticFailoverStatus
-> PendingAutomaticFailoverStatus -> Bool
Prelude.Eq,
Eq PendingAutomaticFailoverStatus
Eq PendingAutomaticFailoverStatus
-> (PendingAutomaticFailoverStatus
-> PendingAutomaticFailoverStatus -> Ordering)
-> (PendingAutomaticFailoverStatus
-> PendingAutomaticFailoverStatus -> Bool)
-> (PendingAutomaticFailoverStatus
-> PendingAutomaticFailoverStatus -> Bool)
-> (PendingAutomaticFailoverStatus
-> PendingAutomaticFailoverStatus -> Bool)
-> (PendingAutomaticFailoverStatus
-> PendingAutomaticFailoverStatus -> Bool)
-> (PendingAutomaticFailoverStatus
-> PendingAutomaticFailoverStatus
-> PendingAutomaticFailoverStatus)
-> (PendingAutomaticFailoverStatus
-> PendingAutomaticFailoverStatus
-> PendingAutomaticFailoverStatus)
-> Ord PendingAutomaticFailoverStatus
PendingAutomaticFailoverStatus
-> PendingAutomaticFailoverStatus -> Bool
PendingAutomaticFailoverStatus
-> PendingAutomaticFailoverStatus -> Ordering
PendingAutomaticFailoverStatus
-> PendingAutomaticFailoverStatus -> PendingAutomaticFailoverStatus
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 :: PendingAutomaticFailoverStatus
-> PendingAutomaticFailoverStatus -> PendingAutomaticFailoverStatus
$cmin :: PendingAutomaticFailoverStatus
-> PendingAutomaticFailoverStatus -> PendingAutomaticFailoverStatus
max :: PendingAutomaticFailoverStatus
-> PendingAutomaticFailoverStatus -> PendingAutomaticFailoverStatus
$cmax :: PendingAutomaticFailoverStatus
-> PendingAutomaticFailoverStatus -> PendingAutomaticFailoverStatus
>= :: PendingAutomaticFailoverStatus
-> PendingAutomaticFailoverStatus -> Bool
$c>= :: PendingAutomaticFailoverStatus
-> PendingAutomaticFailoverStatus -> Bool
> :: PendingAutomaticFailoverStatus
-> PendingAutomaticFailoverStatus -> Bool
$c> :: PendingAutomaticFailoverStatus
-> PendingAutomaticFailoverStatus -> Bool
<= :: PendingAutomaticFailoverStatus
-> PendingAutomaticFailoverStatus -> Bool
$c<= :: PendingAutomaticFailoverStatus
-> PendingAutomaticFailoverStatus -> Bool
< :: PendingAutomaticFailoverStatus
-> PendingAutomaticFailoverStatus -> Bool
$c< :: PendingAutomaticFailoverStatus
-> PendingAutomaticFailoverStatus -> Bool
compare :: PendingAutomaticFailoverStatus
-> PendingAutomaticFailoverStatus -> Ordering
$ccompare :: PendingAutomaticFailoverStatus
-> PendingAutomaticFailoverStatus -> Ordering
$cp1Ord :: Eq PendingAutomaticFailoverStatus
Prelude.Ord,
(forall x.
PendingAutomaticFailoverStatus
-> Rep PendingAutomaticFailoverStatus x)
-> (forall x.
Rep PendingAutomaticFailoverStatus x
-> PendingAutomaticFailoverStatus)
-> Generic PendingAutomaticFailoverStatus
forall x.
Rep PendingAutomaticFailoverStatus x
-> PendingAutomaticFailoverStatus
forall x.
PendingAutomaticFailoverStatus
-> Rep PendingAutomaticFailoverStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PendingAutomaticFailoverStatus x
-> PendingAutomaticFailoverStatus
$cfrom :: forall x.
PendingAutomaticFailoverStatus
-> Rep PendingAutomaticFailoverStatus x
Prelude.Generic
)
deriving newtype
( Int -> PendingAutomaticFailoverStatus -> Int
PendingAutomaticFailoverStatus -> Int
(Int -> PendingAutomaticFailoverStatus -> Int)
-> (PendingAutomaticFailoverStatus -> Int)
-> Hashable PendingAutomaticFailoverStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: PendingAutomaticFailoverStatus -> Int
$chash :: PendingAutomaticFailoverStatus -> Int
hashWithSalt :: Int -> PendingAutomaticFailoverStatus -> Int
$chashWithSalt :: Int -> PendingAutomaticFailoverStatus -> Int
Prelude.Hashable,
PendingAutomaticFailoverStatus -> ()
(PendingAutomaticFailoverStatus -> ())
-> NFData PendingAutomaticFailoverStatus
forall a. (a -> ()) -> NFData a
rnf :: PendingAutomaticFailoverStatus -> ()
$crnf :: PendingAutomaticFailoverStatus -> ()
Prelude.NFData,
Text -> Either String PendingAutomaticFailoverStatus
(Text -> Either String PendingAutomaticFailoverStatus)
-> FromText PendingAutomaticFailoverStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String PendingAutomaticFailoverStatus
$cfromText :: Text -> Either String PendingAutomaticFailoverStatus
Core.FromText,
PendingAutomaticFailoverStatus -> Text
(PendingAutomaticFailoverStatus -> Text)
-> ToText PendingAutomaticFailoverStatus
forall a. (a -> Text) -> ToText a
toText :: PendingAutomaticFailoverStatus -> Text
$ctoText :: PendingAutomaticFailoverStatus -> Text
Core.ToText,
PendingAutomaticFailoverStatus -> ByteString
(PendingAutomaticFailoverStatus -> ByteString)
-> ToByteString PendingAutomaticFailoverStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: PendingAutomaticFailoverStatus -> ByteString
$ctoBS :: PendingAutomaticFailoverStatus -> ByteString
Core.ToByteString,
PendingAutomaticFailoverStatus -> ByteStringBuilder
(PendingAutomaticFailoverStatus -> ByteStringBuilder)
-> ToLog PendingAutomaticFailoverStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: PendingAutomaticFailoverStatus -> ByteStringBuilder
$cbuild :: PendingAutomaticFailoverStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> PendingAutomaticFailoverStatus -> [Header]
(HeaderName -> PendingAutomaticFailoverStatus -> [Header])
-> ToHeader PendingAutomaticFailoverStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> PendingAutomaticFailoverStatus -> [Header]
$ctoHeader :: HeaderName -> PendingAutomaticFailoverStatus -> [Header]
Core.ToHeader,
PendingAutomaticFailoverStatus -> QueryString
(PendingAutomaticFailoverStatus -> QueryString)
-> ToQuery PendingAutomaticFailoverStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: PendingAutomaticFailoverStatus -> QueryString
$ctoQuery :: PendingAutomaticFailoverStatus -> QueryString
Core.ToQuery,
Value -> Parser [PendingAutomaticFailoverStatus]
Value -> Parser PendingAutomaticFailoverStatus
(Value -> Parser PendingAutomaticFailoverStatus)
-> (Value -> Parser [PendingAutomaticFailoverStatus])
-> FromJSON PendingAutomaticFailoverStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [PendingAutomaticFailoverStatus]
$cparseJSONList :: Value -> Parser [PendingAutomaticFailoverStatus]
parseJSON :: Value -> Parser PendingAutomaticFailoverStatus
$cparseJSON :: Value -> Parser PendingAutomaticFailoverStatus
Core.FromJSON,
FromJSONKeyFunction [PendingAutomaticFailoverStatus]
FromJSONKeyFunction PendingAutomaticFailoverStatus
FromJSONKeyFunction PendingAutomaticFailoverStatus
-> FromJSONKeyFunction [PendingAutomaticFailoverStatus]
-> FromJSONKey PendingAutomaticFailoverStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [PendingAutomaticFailoverStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [PendingAutomaticFailoverStatus]
fromJSONKey :: FromJSONKeyFunction PendingAutomaticFailoverStatus
$cfromJSONKey :: FromJSONKeyFunction PendingAutomaticFailoverStatus
Core.FromJSONKey,
[PendingAutomaticFailoverStatus] -> Encoding
[PendingAutomaticFailoverStatus] -> Value
PendingAutomaticFailoverStatus -> Encoding
PendingAutomaticFailoverStatus -> Value
(PendingAutomaticFailoverStatus -> Value)
-> (PendingAutomaticFailoverStatus -> Encoding)
-> ([PendingAutomaticFailoverStatus] -> Value)
-> ([PendingAutomaticFailoverStatus] -> Encoding)
-> ToJSON PendingAutomaticFailoverStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [PendingAutomaticFailoverStatus] -> Encoding
$ctoEncodingList :: [PendingAutomaticFailoverStatus] -> Encoding
toJSONList :: [PendingAutomaticFailoverStatus] -> Value
$ctoJSONList :: [PendingAutomaticFailoverStatus] -> Value
toEncoding :: PendingAutomaticFailoverStatus -> Encoding
$ctoEncoding :: PendingAutomaticFailoverStatus -> Encoding
toJSON :: PendingAutomaticFailoverStatus -> Value
$ctoJSON :: PendingAutomaticFailoverStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [PendingAutomaticFailoverStatus]
ToJSONKeyFunction PendingAutomaticFailoverStatus
ToJSONKeyFunction PendingAutomaticFailoverStatus
-> ToJSONKeyFunction [PendingAutomaticFailoverStatus]
-> ToJSONKey PendingAutomaticFailoverStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [PendingAutomaticFailoverStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [PendingAutomaticFailoverStatus]
toJSONKey :: ToJSONKeyFunction PendingAutomaticFailoverStatus
$ctoJSONKey :: ToJSONKeyFunction PendingAutomaticFailoverStatus
Core.ToJSONKey,
[Node] -> Either String PendingAutomaticFailoverStatus
([Node] -> Either String PendingAutomaticFailoverStatus)
-> FromXML PendingAutomaticFailoverStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String PendingAutomaticFailoverStatus
$cparseXML :: [Node] -> Either String PendingAutomaticFailoverStatus
Core.FromXML,
PendingAutomaticFailoverStatus -> XML
(PendingAutomaticFailoverStatus -> XML)
-> ToXML PendingAutomaticFailoverStatus
forall a. (a -> XML) -> ToXML a
toXML :: PendingAutomaticFailoverStatus -> XML
$ctoXML :: PendingAutomaticFailoverStatus -> XML
Core.ToXML
)
pattern PendingAutomaticFailoverStatus_Disabled :: PendingAutomaticFailoverStatus
pattern $bPendingAutomaticFailoverStatus_Disabled :: PendingAutomaticFailoverStatus
$mPendingAutomaticFailoverStatus_Disabled :: forall r.
PendingAutomaticFailoverStatus -> (Void# -> r) -> (Void# -> r) -> r
PendingAutomaticFailoverStatus_Disabled = PendingAutomaticFailoverStatus' "disabled"
pattern PendingAutomaticFailoverStatus_Enabled :: PendingAutomaticFailoverStatus
pattern $bPendingAutomaticFailoverStatus_Enabled :: PendingAutomaticFailoverStatus
$mPendingAutomaticFailoverStatus_Enabled :: forall r.
PendingAutomaticFailoverStatus -> (Void# -> r) -> (Void# -> r) -> r
PendingAutomaticFailoverStatus_Enabled = PendingAutomaticFailoverStatus' "enabled"
{-# COMPLETE
PendingAutomaticFailoverStatus_Disabled,
PendingAutomaticFailoverStatus_Enabled,
PendingAutomaticFailoverStatus'
#-}