{-# 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.QuoteChar
-- 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.QuoteChar
  ( QuoteChar
      ( ..,
        QuoteChar_Disabled,
        QuoteChar_Quillemet,
        QuoteChar_Quote,
        QuoteChar_Single_quote
      ),
  )
where

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

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

pattern QuoteChar_Disabled :: QuoteChar
pattern $bQuoteChar_Disabled :: QuoteChar
$mQuoteChar_Disabled :: forall {r}. QuoteChar -> ((# #) -> r) -> ((# #) -> r) -> r
QuoteChar_Disabled = QuoteChar' "disabled"

pattern QuoteChar_Quillemet :: QuoteChar
pattern $bQuoteChar_Quillemet :: QuoteChar
$mQuoteChar_Quillemet :: forall {r}. QuoteChar -> ((# #) -> r) -> ((# #) -> r) -> r
QuoteChar_Quillemet = QuoteChar' "quillemet"

pattern QuoteChar_Quote :: QuoteChar
pattern $bQuoteChar_Quote :: QuoteChar
$mQuoteChar_Quote :: forall {r}. QuoteChar -> ((# #) -> r) -> ((# #) -> r) -> r
QuoteChar_Quote = QuoteChar' "quote"

pattern QuoteChar_Single_quote :: QuoteChar
pattern $bQuoteChar_Single_quote :: QuoteChar
$mQuoteChar_Single_quote :: forall {r}. QuoteChar -> ((# #) -> r) -> ((# #) -> r) -> r
QuoteChar_Single_quote = QuoteChar' "single_quote"

{-# COMPLETE
  QuoteChar_Disabled,
  QuoteChar_Quillemet,
  QuoteChar_Quote,
  QuoteChar_Single_quote,
  QuoteChar'
  #-}