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