{-# 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.MergeOptionTypeEnum
-- 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.MergeOptionTypeEnum
  ( MergeOptionTypeEnum
      ( ..,
        MergeOptionTypeEnum_FAST_FORWARD_MERGE,
        MergeOptionTypeEnum_SQUASH_MERGE,
        MergeOptionTypeEnum_THREE_WAY_MERGE
      ),
  )
where

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

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

pattern MergeOptionTypeEnum_FAST_FORWARD_MERGE :: MergeOptionTypeEnum
pattern $bMergeOptionTypeEnum_FAST_FORWARD_MERGE :: MergeOptionTypeEnum
$mMergeOptionTypeEnum_FAST_FORWARD_MERGE :: forall r. MergeOptionTypeEnum -> (Void# -> r) -> (Void# -> r) -> r
MergeOptionTypeEnum_FAST_FORWARD_MERGE = MergeOptionTypeEnum' "FAST_FORWARD_MERGE"

pattern MergeOptionTypeEnum_SQUASH_MERGE :: MergeOptionTypeEnum
pattern $bMergeOptionTypeEnum_SQUASH_MERGE :: MergeOptionTypeEnum
$mMergeOptionTypeEnum_SQUASH_MERGE :: forall r. MergeOptionTypeEnum -> (Void# -> r) -> (Void# -> r) -> r
MergeOptionTypeEnum_SQUASH_MERGE = MergeOptionTypeEnum' "SQUASH_MERGE"

pattern MergeOptionTypeEnum_THREE_WAY_MERGE :: MergeOptionTypeEnum
pattern $bMergeOptionTypeEnum_THREE_WAY_MERGE :: MergeOptionTypeEnum
$mMergeOptionTypeEnum_THREE_WAY_MERGE :: forall r. MergeOptionTypeEnum -> (Void# -> r) -> (Void# -> r) -> r
MergeOptionTypeEnum_THREE_WAY_MERGE = MergeOptionTypeEnum' "THREE_WAY_MERGE"

{-# COMPLETE
  MergeOptionTypeEnum_FAST_FORWARD_MERGE,
  MergeOptionTypeEnum_SQUASH_MERGE,
  MergeOptionTypeEnum_THREE_WAY_MERGE,
  MergeOptionTypeEnum'
  #-}