{-# 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.RecordWrapper
-- 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.RecordWrapper
  ( RecordWrapper
      ( ..,
        RecordWrapper_None,
        RecordWrapper_RecordIO
      ),
  )
where

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

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

pattern RecordWrapper_None :: RecordWrapper
pattern $bRecordWrapper_None :: RecordWrapper
$mRecordWrapper_None :: forall r. RecordWrapper -> (Void# -> r) -> (Void# -> r) -> r
RecordWrapper_None = RecordWrapper' "None"

pattern RecordWrapper_RecordIO :: RecordWrapper
pattern $bRecordWrapper_RecordIO :: RecordWrapper
$mRecordWrapper_RecordIO :: forall r. RecordWrapper -> (Void# -> r) -> (Void# -> r) -> r
RecordWrapper_RecordIO = RecordWrapper' "RecordIO"

{-# COMPLETE
  RecordWrapper_None,
  RecordWrapper_RecordIO,
  RecordWrapper'
  #-}