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