{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.DataSync.Types.PreserveDeletedFiles
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.DataSync.Types.PreserveDeletedFiles
  ( PreserveDeletedFiles
      ( ..,
        PreserveDeletedFiles_PRESERVE,
        PreserveDeletedFiles_REMOVE
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype PreserveDeletedFiles = PreserveDeletedFiles'
  { PreserveDeletedFiles -> Text
fromPreserveDeletedFiles ::
      Data.Text
  }
  deriving stock
    ( Int -> PreserveDeletedFiles -> ShowS
[PreserveDeletedFiles] -> ShowS
PreserveDeletedFiles -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq PreserveDeletedFiles
Int -> PreserveDeletedFiles -> Int
PreserveDeletedFiles -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: PreserveDeletedFiles -> ()
$crnf :: PreserveDeletedFiles -> ()
Prelude.NFData,
      Text -> Either String PreserveDeletedFiles
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String PreserveDeletedFiles
$cfromText :: Text -> Either String PreserveDeletedFiles
Data.FromText,
      PreserveDeletedFiles -> Text
forall a. (a -> Text) -> ToText a
toText :: PreserveDeletedFiles -> Text
$ctoText :: PreserveDeletedFiles -> Text
Data.ToText,
      PreserveDeletedFiles -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: PreserveDeletedFiles -> ByteString
$ctoBS :: PreserveDeletedFiles -> ByteString
Data.ToByteString,
      PreserveDeletedFiles -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: PreserveDeletedFiles -> ByteStringBuilder
$cbuild :: PreserveDeletedFiles -> ByteStringBuilder
Data.ToLog,
      HeaderName -> PreserveDeletedFiles -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> PreserveDeletedFiles -> [Header]
$ctoHeader :: HeaderName -> PreserveDeletedFiles -> [Header]
Data.ToHeader,
      PreserveDeletedFiles -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: PreserveDeletedFiles -> QueryString
$ctoQuery :: PreserveDeletedFiles -> QueryString
Data.ToQuery,
      Value -> Parser [PreserveDeletedFiles]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [PreserveDeletedFiles]
FromJSONKeyFunction PreserveDeletedFiles
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [PreserveDeletedFiles]
$cfromJSONKeyList :: FromJSONKeyFunction [PreserveDeletedFiles]
fromJSONKey :: FromJSONKeyFunction PreserveDeletedFiles
$cfromJSONKey :: FromJSONKeyFunction PreserveDeletedFiles
Data.FromJSONKey,
      [PreserveDeletedFiles] -> Encoding
[PreserveDeletedFiles] -> Value
PreserveDeletedFiles -> Encoding
PreserveDeletedFiles -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [PreserveDeletedFiles]
ToJSONKeyFunction PreserveDeletedFiles
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [PreserveDeletedFiles]
$ctoJSONKeyList :: ToJSONKeyFunction [PreserveDeletedFiles]
toJSONKey :: ToJSONKeyFunction PreserveDeletedFiles
$ctoJSONKey :: ToJSONKeyFunction PreserveDeletedFiles
Data.ToJSONKey,
      [Node] -> Either String PreserveDeletedFiles
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String PreserveDeletedFiles
$cparseXML :: [Node] -> Either String PreserveDeletedFiles
Data.FromXML,
      PreserveDeletedFiles -> XML
forall a. (a -> XML) -> ToXML a
toXML :: PreserveDeletedFiles -> XML
$ctoXML :: PreserveDeletedFiles -> XML
Data.ToXML
    )

pattern PreserveDeletedFiles_PRESERVE :: PreserveDeletedFiles
pattern $bPreserveDeletedFiles_PRESERVE :: PreserveDeletedFiles
$mPreserveDeletedFiles_PRESERVE :: forall {r}.
PreserveDeletedFiles -> ((# #) -> r) -> ((# #) -> r) -> r
PreserveDeletedFiles_PRESERVE = PreserveDeletedFiles' "PRESERVE"

pattern PreserveDeletedFiles_REMOVE :: PreserveDeletedFiles
pattern $bPreserveDeletedFiles_REMOVE :: PreserveDeletedFiles
$mPreserveDeletedFiles_REMOVE :: forall {r}.
PreserveDeletedFiles -> ((# #) -> r) -> ((# #) -> r) -> r
PreserveDeletedFiles_REMOVE = PreserveDeletedFiles' "REMOVE"

{-# COMPLETE
  PreserveDeletedFiles_PRESERVE,
  PreserveDeletedFiles_REMOVE,
  PreserveDeletedFiles'
  #-}