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