{-# 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.CodeCommit.Types.ReplacementTypeEnum
-- 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.CodeCommit.Types.ReplacementTypeEnum
  ( ReplacementTypeEnum
      ( ..,
        ReplacementTypeEnum_KEEP_BASE,
        ReplacementTypeEnum_KEEP_DESTINATION,
        ReplacementTypeEnum_KEEP_SOURCE,
        ReplacementTypeEnum_USE_NEW_CONTENT
      ),
  )
where

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

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

pattern ReplacementTypeEnum_KEEP_BASE :: ReplacementTypeEnum
pattern $bReplacementTypeEnum_KEEP_BASE :: ReplacementTypeEnum
$mReplacementTypeEnum_KEEP_BASE :: forall r. ReplacementTypeEnum -> (Void# -> r) -> (Void# -> r) -> r
ReplacementTypeEnum_KEEP_BASE = ReplacementTypeEnum' "KEEP_BASE"

pattern ReplacementTypeEnum_KEEP_DESTINATION :: ReplacementTypeEnum
pattern $bReplacementTypeEnum_KEEP_DESTINATION :: ReplacementTypeEnum
$mReplacementTypeEnum_KEEP_DESTINATION :: forall r. ReplacementTypeEnum -> (Void# -> r) -> (Void# -> r) -> r
ReplacementTypeEnum_KEEP_DESTINATION = ReplacementTypeEnum' "KEEP_DESTINATION"

pattern ReplacementTypeEnum_KEEP_SOURCE :: ReplacementTypeEnum
pattern $bReplacementTypeEnum_KEEP_SOURCE :: ReplacementTypeEnum
$mReplacementTypeEnum_KEEP_SOURCE :: forall r. ReplacementTypeEnum -> (Void# -> r) -> (Void# -> r) -> r
ReplacementTypeEnum_KEEP_SOURCE = ReplacementTypeEnum' "KEEP_SOURCE"

pattern ReplacementTypeEnum_USE_NEW_CONTENT :: ReplacementTypeEnum
pattern $bReplacementTypeEnum_USE_NEW_CONTENT :: ReplacementTypeEnum
$mReplacementTypeEnum_USE_NEW_CONTENT :: forall r. ReplacementTypeEnum -> (Void# -> r) -> (Void# -> r) -> r
ReplacementTypeEnum_USE_NEW_CONTENT = ReplacementTypeEnum' "USE_NEW_CONTENT"

{-# COMPLETE
  ReplacementTypeEnum_KEEP_BASE,
  ReplacementTypeEnum_KEEP_DESTINATION,
  ReplacementTypeEnum_KEEP_SOURCE,
  ReplacementTypeEnum_USE_NEW_CONTENT,
  ReplacementTypeEnum'
  #-}