{-# 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.UnionType
-- 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.Glue.Types.UnionType
  ( UnionType
      ( ..,
        UnionType_ALL,
        UnionType_DISTINCT
      ),
  )
where

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

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

pattern UnionType_ALL :: UnionType
pattern $bUnionType_ALL :: UnionType
$mUnionType_ALL :: forall {r}. UnionType -> ((# #) -> r) -> ((# #) -> r) -> r
UnionType_ALL = UnionType' "ALL"

pattern UnionType_DISTINCT :: UnionType
pattern $bUnionType_DISTINCT :: UnionType
$mUnionType_DISTINCT :: forall {r}. UnionType -> ((# #) -> r) -> ((# #) -> r) -> r
UnionType_DISTINCT = UnionType' "DISTINCT"

{-# COMPLETE
  UnionType_ALL,
  UnionType_DISTINCT,
  UnionType'
  #-}