{-# 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.ConflictDetailLevelTypeEnum
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.CodeCommit.Types.ConflictDetailLevelTypeEnum
  ( ConflictDetailLevelTypeEnum
      ( ..,
        ConflictDetailLevelTypeEnum_FILE_LEVEL,
        ConflictDetailLevelTypeEnum_LINE_LEVEL
      ),
  )
where

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

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

pattern ConflictDetailLevelTypeEnum_FILE_LEVEL :: ConflictDetailLevelTypeEnum
pattern $bConflictDetailLevelTypeEnum_FILE_LEVEL :: ConflictDetailLevelTypeEnum
$mConflictDetailLevelTypeEnum_FILE_LEVEL :: forall {r}.
ConflictDetailLevelTypeEnum -> ((# #) -> r) -> ((# #) -> r) -> r
ConflictDetailLevelTypeEnum_FILE_LEVEL = ConflictDetailLevelTypeEnum' "FILE_LEVEL"

pattern ConflictDetailLevelTypeEnum_LINE_LEVEL :: ConflictDetailLevelTypeEnum
pattern $bConflictDetailLevelTypeEnum_LINE_LEVEL :: ConflictDetailLevelTypeEnum
$mConflictDetailLevelTypeEnum_LINE_LEVEL :: forall {r}.
ConflictDetailLevelTypeEnum -> ((# #) -> r) -> ((# #) -> r) -> r
ConflictDetailLevelTypeEnum_LINE_LEVEL = ConflictDetailLevelTypeEnum' "LINE_LEVEL"

{-# COMPLETE
  ConflictDetailLevelTypeEnum_FILE_LEVEL,
  ConflictDetailLevelTypeEnum_LINE_LEVEL,
  ConflictDetailLevelTypeEnum'
  #-}