{-# 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.WriteForwardingStatus
( WriteForwardingStatus
( ..,
WriteForwardingStatus_Disabled,
WriteForwardingStatus_Disabling,
WriteForwardingStatus_Enabled,
WriteForwardingStatus_Enabling,
WriteForwardingStatus_Unknown
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype WriteForwardingStatus = WriteForwardingStatus'
{ WriteForwardingStatus -> Text
fromWriteForwardingStatus ::
Core.Text
}
deriving stock
( Int -> WriteForwardingStatus -> ShowS
[WriteForwardingStatus] -> ShowS
WriteForwardingStatus -> String
(Int -> WriteForwardingStatus -> ShowS)
-> (WriteForwardingStatus -> String)
-> ([WriteForwardingStatus] -> ShowS)
-> Show WriteForwardingStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [WriteForwardingStatus] -> ShowS
$cshowList :: [WriteForwardingStatus] -> ShowS
show :: WriteForwardingStatus -> String
$cshow :: WriteForwardingStatus -> String
showsPrec :: Int -> WriteForwardingStatus -> ShowS
$cshowsPrec :: Int -> WriteForwardingStatus -> ShowS
Prelude.Show,
ReadPrec [WriteForwardingStatus]
ReadPrec WriteForwardingStatus
Int -> ReadS WriteForwardingStatus
ReadS [WriteForwardingStatus]
(Int -> ReadS WriteForwardingStatus)
-> ReadS [WriteForwardingStatus]
-> ReadPrec WriteForwardingStatus
-> ReadPrec [WriteForwardingStatus]
-> Read WriteForwardingStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [WriteForwardingStatus]
$creadListPrec :: ReadPrec [WriteForwardingStatus]
readPrec :: ReadPrec WriteForwardingStatus
$creadPrec :: ReadPrec WriteForwardingStatus
readList :: ReadS [WriteForwardingStatus]
$creadList :: ReadS [WriteForwardingStatus]
readsPrec :: Int -> ReadS WriteForwardingStatus
$creadsPrec :: Int -> ReadS WriteForwardingStatus
Prelude.Read,
WriteForwardingStatus -> WriteForwardingStatus -> Bool
(WriteForwardingStatus -> WriteForwardingStatus -> Bool)
-> (WriteForwardingStatus -> WriteForwardingStatus -> Bool)
-> Eq WriteForwardingStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: WriteForwardingStatus -> WriteForwardingStatus -> Bool
$c/= :: WriteForwardingStatus -> WriteForwardingStatus -> Bool
== :: WriteForwardingStatus -> WriteForwardingStatus -> Bool
$c== :: WriteForwardingStatus -> WriteForwardingStatus -> Bool
Prelude.Eq,
Eq WriteForwardingStatus
Eq WriteForwardingStatus
-> (WriteForwardingStatus -> WriteForwardingStatus -> Ordering)
-> (WriteForwardingStatus -> WriteForwardingStatus -> Bool)
-> (WriteForwardingStatus -> WriteForwardingStatus -> Bool)
-> (WriteForwardingStatus -> WriteForwardingStatus -> Bool)
-> (WriteForwardingStatus -> WriteForwardingStatus -> Bool)
-> (WriteForwardingStatus
-> WriteForwardingStatus -> WriteForwardingStatus)
-> (WriteForwardingStatus
-> WriteForwardingStatus -> WriteForwardingStatus)
-> Ord WriteForwardingStatus
WriteForwardingStatus -> WriteForwardingStatus -> Bool
WriteForwardingStatus -> WriteForwardingStatus -> Ordering
WriteForwardingStatus
-> WriteForwardingStatus -> WriteForwardingStatus
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 :: WriteForwardingStatus
-> WriteForwardingStatus -> WriteForwardingStatus
$cmin :: WriteForwardingStatus
-> WriteForwardingStatus -> WriteForwardingStatus
max :: WriteForwardingStatus
-> WriteForwardingStatus -> WriteForwardingStatus
$cmax :: WriteForwardingStatus
-> WriteForwardingStatus -> WriteForwardingStatus
>= :: WriteForwardingStatus -> WriteForwardingStatus -> Bool
$c>= :: WriteForwardingStatus -> WriteForwardingStatus -> Bool
> :: WriteForwardingStatus -> WriteForwardingStatus -> Bool
$c> :: WriteForwardingStatus -> WriteForwardingStatus -> Bool
<= :: WriteForwardingStatus -> WriteForwardingStatus -> Bool
$c<= :: WriteForwardingStatus -> WriteForwardingStatus -> Bool
< :: WriteForwardingStatus -> WriteForwardingStatus -> Bool
$c< :: WriteForwardingStatus -> WriteForwardingStatus -> Bool
compare :: WriteForwardingStatus -> WriteForwardingStatus -> Ordering
$ccompare :: WriteForwardingStatus -> WriteForwardingStatus -> Ordering
$cp1Ord :: Eq WriteForwardingStatus
Prelude.Ord,
(forall x. WriteForwardingStatus -> Rep WriteForwardingStatus x)
-> (forall x. Rep WriteForwardingStatus x -> WriteForwardingStatus)
-> Generic WriteForwardingStatus
forall x. Rep WriteForwardingStatus x -> WriteForwardingStatus
forall x. WriteForwardingStatus -> Rep WriteForwardingStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep WriteForwardingStatus x -> WriteForwardingStatus
$cfrom :: forall x. WriteForwardingStatus -> Rep WriteForwardingStatus x
Prelude.Generic
)
deriving newtype
( Int -> WriteForwardingStatus -> Int
WriteForwardingStatus -> Int
(Int -> WriteForwardingStatus -> Int)
-> (WriteForwardingStatus -> Int) -> Hashable WriteForwardingStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: WriteForwardingStatus -> Int
$chash :: WriteForwardingStatus -> Int
hashWithSalt :: Int -> WriteForwardingStatus -> Int
$chashWithSalt :: Int -> WriteForwardingStatus -> Int
Prelude.Hashable,
WriteForwardingStatus -> ()
(WriteForwardingStatus -> ()) -> NFData WriteForwardingStatus
forall a. (a -> ()) -> NFData a
rnf :: WriteForwardingStatus -> ()
$crnf :: WriteForwardingStatus -> ()
Prelude.NFData,
Text -> Either String WriteForwardingStatus
(Text -> Either String WriteForwardingStatus)
-> FromText WriteForwardingStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String WriteForwardingStatus
$cfromText :: Text -> Either String WriteForwardingStatus
Core.FromText,
WriteForwardingStatus -> Text
(WriteForwardingStatus -> Text) -> ToText WriteForwardingStatus
forall a. (a -> Text) -> ToText a
toText :: WriteForwardingStatus -> Text
$ctoText :: WriteForwardingStatus -> Text
Core.ToText,
WriteForwardingStatus -> ByteString
(WriteForwardingStatus -> ByteString)
-> ToByteString WriteForwardingStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: WriteForwardingStatus -> ByteString
$ctoBS :: WriteForwardingStatus -> ByteString
Core.ToByteString,
WriteForwardingStatus -> ByteStringBuilder
(WriteForwardingStatus -> ByteStringBuilder)
-> ToLog WriteForwardingStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: WriteForwardingStatus -> ByteStringBuilder
$cbuild :: WriteForwardingStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> WriteForwardingStatus -> [Header]
(HeaderName -> WriteForwardingStatus -> [Header])
-> ToHeader WriteForwardingStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> WriteForwardingStatus -> [Header]
$ctoHeader :: HeaderName -> WriteForwardingStatus -> [Header]
Core.ToHeader,
WriteForwardingStatus -> QueryString
(WriteForwardingStatus -> QueryString)
-> ToQuery WriteForwardingStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: WriteForwardingStatus -> QueryString
$ctoQuery :: WriteForwardingStatus -> QueryString
Core.ToQuery,
Value -> Parser [WriteForwardingStatus]
Value -> Parser WriteForwardingStatus
(Value -> Parser WriteForwardingStatus)
-> (Value -> Parser [WriteForwardingStatus])
-> FromJSON WriteForwardingStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [WriteForwardingStatus]
$cparseJSONList :: Value -> Parser [WriteForwardingStatus]
parseJSON :: Value -> Parser WriteForwardingStatus
$cparseJSON :: Value -> Parser WriteForwardingStatus
Core.FromJSON,
FromJSONKeyFunction [WriteForwardingStatus]
FromJSONKeyFunction WriteForwardingStatus
FromJSONKeyFunction WriteForwardingStatus
-> FromJSONKeyFunction [WriteForwardingStatus]
-> FromJSONKey WriteForwardingStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [WriteForwardingStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [WriteForwardingStatus]
fromJSONKey :: FromJSONKeyFunction WriteForwardingStatus
$cfromJSONKey :: FromJSONKeyFunction WriteForwardingStatus
Core.FromJSONKey,
[WriteForwardingStatus] -> Encoding
[WriteForwardingStatus] -> Value
WriteForwardingStatus -> Encoding
WriteForwardingStatus -> Value
(WriteForwardingStatus -> Value)
-> (WriteForwardingStatus -> Encoding)
-> ([WriteForwardingStatus] -> Value)
-> ([WriteForwardingStatus] -> Encoding)
-> ToJSON WriteForwardingStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [WriteForwardingStatus] -> Encoding
$ctoEncodingList :: [WriteForwardingStatus] -> Encoding
toJSONList :: [WriteForwardingStatus] -> Value
$ctoJSONList :: [WriteForwardingStatus] -> Value
toEncoding :: WriteForwardingStatus -> Encoding
$ctoEncoding :: WriteForwardingStatus -> Encoding
toJSON :: WriteForwardingStatus -> Value
$ctoJSON :: WriteForwardingStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [WriteForwardingStatus]
ToJSONKeyFunction WriteForwardingStatus
ToJSONKeyFunction WriteForwardingStatus
-> ToJSONKeyFunction [WriteForwardingStatus]
-> ToJSONKey WriteForwardingStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [WriteForwardingStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [WriteForwardingStatus]
toJSONKey :: ToJSONKeyFunction WriteForwardingStatus
$ctoJSONKey :: ToJSONKeyFunction WriteForwardingStatus
Core.ToJSONKey,
[Node] -> Either String WriteForwardingStatus
([Node] -> Either String WriteForwardingStatus)
-> FromXML WriteForwardingStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String WriteForwardingStatus
$cparseXML :: [Node] -> Either String WriteForwardingStatus
Core.FromXML,
WriteForwardingStatus -> XML
(WriteForwardingStatus -> XML) -> ToXML WriteForwardingStatus
forall a. (a -> XML) -> ToXML a
toXML :: WriteForwardingStatus -> XML
$ctoXML :: WriteForwardingStatus -> XML
Core.ToXML
)
pattern WriteForwardingStatus_Disabled :: WriteForwardingStatus
pattern $bWriteForwardingStatus_Disabled :: WriteForwardingStatus
$mWriteForwardingStatus_Disabled :: forall r.
WriteForwardingStatus -> (Void# -> r) -> (Void# -> r) -> r
WriteForwardingStatus_Disabled = WriteForwardingStatus' "disabled"
pattern WriteForwardingStatus_Disabling :: WriteForwardingStatus
pattern $bWriteForwardingStatus_Disabling :: WriteForwardingStatus
$mWriteForwardingStatus_Disabling :: forall r.
WriteForwardingStatus -> (Void# -> r) -> (Void# -> r) -> r
WriteForwardingStatus_Disabling = WriteForwardingStatus' "disabling"
pattern WriteForwardingStatus_Enabled :: WriteForwardingStatus
pattern $bWriteForwardingStatus_Enabled :: WriteForwardingStatus
$mWriteForwardingStatus_Enabled :: forall r.
WriteForwardingStatus -> (Void# -> r) -> (Void# -> r) -> r
WriteForwardingStatus_Enabled = WriteForwardingStatus' "enabled"
pattern WriteForwardingStatus_Enabling :: WriteForwardingStatus
pattern $bWriteForwardingStatus_Enabling :: WriteForwardingStatus
$mWriteForwardingStatus_Enabling :: forall r.
WriteForwardingStatus -> (Void# -> r) -> (Void# -> r) -> r
WriteForwardingStatus_Enabling = WriteForwardingStatus' "enabling"
pattern WriteForwardingStatus_Unknown :: WriteForwardingStatus
pattern $bWriteForwardingStatus_Unknown :: WriteForwardingStatus
$mWriteForwardingStatus_Unknown :: forall r.
WriteForwardingStatus -> (Void# -> r) -> (Void# -> r) -> r
WriteForwardingStatus_Unknown = WriteForwardingStatus' "unknown"
{-# COMPLETE
WriteForwardingStatus_Disabled,
WriteForwardingStatus_Disabling,
WriteForwardingStatus_Enabled,
WriteForwardingStatus_Enabling,
WriteForwardingStatus_Unknown,
WriteForwardingStatus'
#-}