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