{-# 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.SageMaker.Types.TableFormat
-- 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.SageMaker.Types.TableFormat
  ( TableFormat
      ( ..,
        TableFormat_Glue,
        TableFormat_Iceberg
      ),
  )
where

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

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

pattern TableFormat_Glue :: TableFormat
pattern $bTableFormat_Glue :: TableFormat
$mTableFormat_Glue :: forall {r}. TableFormat -> ((# #) -> r) -> ((# #) -> r) -> r
TableFormat_Glue = TableFormat' "Glue"

pattern TableFormat_Iceberg :: TableFormat
pattern $bTableFormat_Iceberg :: TableFormat
$mTableFormat_Iceberg :: forall {r}. TableFormat -> ((# #) -> r) -> ((# #) -> r) -> r
TableFormat_Iceberg = TableFormat' "Iceberg"

{-# COMPLETE
  TableFormat_Glue,
  TableFormat_Iceberg,
  TableFormat'
  #-}