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