{-# 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.Language
-- 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.Language
  ( Language
      ( ..,
        Language_PYTHON,
        Language_SCALA
      ),
  )
where

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

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

pattern Language_PYTHON :: Language
pattern $bLanguage_PYTHON :: Language
$mLanguage_PYTHON :: forall {r}. Language -> ((# #) -> r) -> ((# #) -> r) -> r
Language_PYTHON = Language' "PYTHON"

pattern Language_SCALA :: Language
pattern $bLanguage_SCALA :: Language
$mLanguage_SCALA :: forall {r}. Language -> ((# #) -> r) -> ((# #) -> r) -> r
Language_SCALA = Language' "SCALA"

{-# COMPLETE
  Language_PYTHON,
  Language_SCALA,
  Language'
  #-}