{-# 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.ProcessingS3InputMode
-- 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.ProcessingS3InputMode
  ( ProcessingS3InputMode
      ( ..,
        ProcessingS3InputMode_File,
        ProcessingS3InputMode_Pipe
      ),
  )
where

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

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

pattern ProcessingS3InputMode_File :: ProcessingS3InputMode
pattern $bProcessingS3InputMode_File :: ProcessingS3InputMode
$mProcessingS3InputMode_File :: forall {r}.
ProcessingS3InputMode -> ((# #) -> r) -> ((# #) -> r) -> r
ProcessingS3InputMode_File = ProcessingS3InputMode' "File"

pattern ProcessingS3InputMode_Pipe :: ProcessingS3InputMode
pattern $bProcessingS3InputMode_Pipe :: ProcessingS3InputMode
$mProcessingS3InputMode_Pipe :: forall {r}.
ProcessingS3InputMode -> ((# #) -> r) -> ((# #) -> r) -> r
ProcessingS3InputMode_Pipe = ProcessingS3InputMode' "Pipe"

{-# COMPLETE
  ProcessingS3InputMode_File,
  ProcessingS3InputMode_Pipe,
  ProcessingS3InputMode'
  #-}