{-# 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.Athena.Types.DataCatalogType
-- 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.Athena.Types.DataCatalogType
  ( DataCatalogType
      ( ..,
        DataCatalogType_GLUE,
        DataCatalogType_HIVE,
        DataCatalogType_LAMBDA
      ),
  )
where

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

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

pattern DataCatalogType_GLUE :: DataCatalogType
pattern $bDataCatalogType_GLUE :: DataCatalogType
$mDataCatalogType_GLUE :: forall r. DataCatalogType -> (Void# -> r) -> (Void# -> r) -> r
DataCatalogType_GLUE = DataCatalogType' "GLUE"

pattern DataCatalogType_HIVE :: DataCatalogType
pattern $bDataCatalogType_HIVE :: DataCatalogType
$mDataCatalogType_HIVE :: forall r. DataCatalogType -> (Void# -> r) -> (Void# -> r) -> r
DataCatalogType_HIVE = DataCatalogType' "HIVE"

pattern DataCatalogType_LAMBDA :: DataCatalogType
pattern $bDataCatalogType_LAMBDA :: DataCatalogType
$mDataCatalogType_LAMBDA :: forall r. DataCatalogType -> (Void# -> r) -> (Void# -> r) -> r
DataCatalogType_LAMBDA = DataCatalogType' "LAMBDA"

{-# COMPLETE
  DataCatalogType_GLUE,
  DataCatalogType_HIVE,
  DataCatalogType_LAMBDA,
  DataCatalogType'
  #-}