{-# 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.Glue.Types.SchemaDiffType
-- 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.Glue.Types.SchemaDiffType
  ( SchemaDiffType
      ( ..,
        SchemaDiffType_SYNTAX_DIFF
      ),
  )
where

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

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

pattern SchemaDiffType_SYNTAX_DIFF :: SchemaDiffType
pattern $bSchemaDiffType_SYNTAX_DIFF :: SchemaDiffType
$mSchemaDiffType_SYNTAX_DIFF :: forall r. SchemaDiffType -> (Void# -> r) -> (Void# -> r) -> r
SchemaDiffType_SYNTAX_DIFF = SchemaDiffType' "SYNTAX_DIFF"

{-# COMPLETE
  SchemaDiffType_SYNTAX_DIFF,
  SchemaDiffType'
  #-}