{-# 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.TransformSortColumnType
-- 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.Glue.Types.TransformSortColumnType
  ( TransformSortColumnType
      ( ..,
        TransformSortColumnType_CREATED,
        TransformSortColumnType_LAST_MODIFIED,
        TransformSortColumnType_NAME,
        TransformSortColumnType_STATUS,
        TransformSortColumnType_TRANSFORM_TYPE
      ),
  )
where

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

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

pattern TransformSortColumnType_CREATED :: TransformSortColumnType
pattern $bTransformSortColumnType_CREATED :: TransformSortColumnType
$mTransformSortColumnType_CREATED :: forall r.
TransformSortColumnType -> (Void# -> r) -> (Void# -> r) -> r
TransformSortColumnType_CREATED = TransformSortColumnType' "CREATED"

pattern TransformSortColumnType_LAST_MODIFIED :: TransformSortColumnType
pattern $bTransformSortColumnType_LAST_MODIFIED :: TransformSortColumnType
$mTransformSortColumnType_LAST_MODIFIED :: forall r.
TransformSortColumnType -> (Void# -> r) -> (Void# -> r) -> r
TransformSortColumnType_LAST_MODIFIED = TransformSortColumnType' "LAST_MODIFIED"

pattern TransformSortColumnType_NAME :: TransformSortColumnType
pattern $bTransformSortColumnType_NAME :: TransformSortColumnType
$mTransformSortColumnType_NAME :: forall r.
TransformSortColumnType -> (Void# -> r) -> (Void# -> r) -> r
TransformSortColumnType_NAME = TransformSortColumnType' "NAME"

pattern TransformSortColumnType_STATUS :: TransformSortColumnType
pattern $bTransformSortColumnType_STATUS :: TransformSortColumnType
$mTransformSortColumnType_STATUS :: forall r.
TransformSortColumnType -> (Void# -> r) -> (Void# -> r) -> r
TransformSortColumnType_STATUS = TransformSortColumnType' "STATUS"

pattern TransformSortColumnType_TRANSFORM_TYPE :: TransformSortColumnType
pattern $bTransformSortColumnType_TRANSFORM_TYPE :: TransformSortColumnType
$mTransformSortColumnType_TRANSFORM_TYPE :: forall r.
TransformSortColumnType -> (Void# -> r) -> (Void# -> r) -> r
TransformSortColumnType_TRANSFORM_TYPE = TransformSortColumnType' "TRANSFORM_TYPE"

{-# COMPLETE
  TransformSortColumnType_CREATED,
  TransformSortColumnType_LAST_MODIFIED,
  TransformSortColumnType_NAME,
  TransformSortColumnType_STATUS,
  TransformSortColumnType_TRANSFORM_TYPE,
  TransformSortColumnType'
  #-}