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