{-# 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.AppSync.Types.ConflictDetectionType
-- 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.AppSync.Types.ConflictDetectionType
  ( ConflictDetectionType
      ( ..,
        ConflictDetectionType_NONE,
        ConflictDetectionType_VERSION
      ),
  )
where

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

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

pattern ConflictDetectionType_NONE :: ConflictDetectionType
pattern $bConflictDetectionType_NONE :: ConflictDetectionType
$mConflictDetectionType_NONE :: forall r.
ConflictDetectionType -> (Void# -> r) -> (Void# -> r) -> r
ConflictDetectionType_NONE = ConflictDetectionType' "NONE"

pattern ConflictDetectionType_VERSION :: ConflictDetectionType
pattern $bConflictDetectionType_VERSION :: ConflictDetectionType
$mConflictDetectionType_VERSION :: forall r.
ConflictDetectionType -> (Void# -> r) -> (Void# -> r) -> r
ConflictDetectionType_VERSION = ConflictDetectionType' "VERSION"

{-# COMPLETE
  ConflictDetectionType_NONE,
  ConflictDetectionType_VERSION,
  ConflictDetectionType'
  #-}