{-# 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.SplitType
-- 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.SageMaker.Types.SplitType
  ( SplitType
      ( ..,
        SplitType_Line,
        SplitType_None,
        SplitType_RecordIO,
        SplitType_TFRecord
      ),
  )
where

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

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

pattern SplitType_Line :: SplitType
pattern $bSplitType_Line :: SplitType
$mSplitType_Line :: forall r. SplitType -> (Void# -> r) -> (Void# -> r) -> r
SplitType_Line = SplitType' "Line"

pattern SplitType_None :: SplitType
pattern $bSplitType_None :: SplitType
$mSplitType_None :: forall r. SplitType -> (Void# -> r) -> (Void# -> r) -> r
SplitType_None = SplitType' "None"

pattern SplitType_RecordIO :: SplitType
pattern $bSplitType_RecordIO :: SplitType
$mSplitType_RecordIO :: forall r. SplitType -> (Void# -> r) -> (Void# -> r) -> r
SplitType_RecordIO = SplitType' "RecordIO"

pattern SplitType_TFRecord :: SplitType
pattern $bSplitType_TFRecord :: SplitType
$mSplitType_TFRecord :: forall r. SplitType -> (Void# -> r) -> (Void# -> r) -> r
SplitType_TFRecord = SplitType' "TFRecord"

{-# COMPLETE
  SplitType_Line,
  SplitType_None,
  SplitType_RecordIO,
  SplitType_TFRecord,
  SplitType'
  #-}