{-# 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.Separator
-- 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.Separator
  ( Separator
      ( ..,
        Separator_Comma,
        Separator_Ctrla,
        Separator_Pipe,
        Separator_Semicolon,
        Separator_Tab
      ),
  )
where

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

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

pattern Separator_Comma :: Separator
pattern $bSeparator_Comma :: Separator
$mSeparator_Comma :: forall {r}. Separator -> ((# #) -> r) -> ((# #) -> r) -> r
Separator_Comma = Separator' "comma"

pattern Separator_Ctrla :: Separator
pattern $bSeparator_Ctrla :: Separator
$mSeparator_Ctrla :: forall {r}. Separator -> ((# #) -> r) -> ((# #) -> r) -> r
Separator_Ctrla = Separator' "ctrla"

pattern Separator_Pipe :: Separator
pattern $bSeparator_Pipe :: Separator
$mSeparator_Pipe :: forall {r}. Separator -> ((# #) -> r) -> ((# #) -> r) -> r
Separator_Pipe = Separator' "pipe"

pattern Separator_Semicolon :: Separator
pattern $bSeparator_Semicolon :: Separator
$mSeparator_Semicolon :: forall {r}. Separator -> ((# #) -> r) -> ((# #) -> r) -> r
Separator_Semicolon = Separator' "semicolon"

pattern Separator_Tab :: Separator
pattern $bSeparator_Tab :: Separator
$mSeparator_Tab :: forall {r}. Separator -> ((# #) -> r) -> ((# #) -> r) -> r
Separator_Tab = Separator' "tab"

{-# COMPLETE
  Separator_Comma,
  Separator_Ctrla,
  Separator_Pipe,
  Separator_Semicolon,
  Separator_Tab,
  Separator'
  #-}