{-# 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.Transfer.Types.OverwriteExisting
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Transfer.Types.OverwriteExisting
  ( OverwriteExisting
      ( ..,
        OverwriteExisting_FALSE,
        OverwriteExisting_TRUE
      ),
  )
where

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

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

pattern OverwriteExisting_FALSE :: OverwriteExisting
pattern $bOverwriteExisting_FALSE :: OverwriteExisting
$mOverwriteExisting_FALSE :: forall r. OverwriteExisting -> (Void# -> r) -> (Void# -> r) -> r
OverwriteExisting_FALSE = OverwriteExisting' "FALSE"

pattern OverwriteExisting_TRUE :: OverwriteExisting
pattern $bOverwriteExisting_TRUE :: OverwriteExisting
$mOverwriteExisting_TRUE :: forall r. OverwriteExisting -> (Void# -> r) -> (Void# -> r) -> r
OverwriteExisting_TRUE = OverwriteExisting' "TRUE"

{-# COMPLETE
  OverwriteExisting_FALSE,
  OverwriteExisting_TRUE,
  OverwriteExisting'
  #-}