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