{-# 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.InputMode
-- 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.InputMode
  ( InputMode
      ( ..,
        InputMode_File,
        InputMode_Pipe
      ),
  )
where

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

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

pattern InputMode_File :: InputMode
pattern $bInputMode_File :: InputMode
$mInputMode_File :: forall r. InputMode -> (Void# -> r) -> (Void# -> r) -> r
InputMode_File = InputMode' "File"

pattern InputMode_Pipe :: InputMode
pattern $bInputMode_Pipe :: InputMode
$mInputMode_Pipe :: forall r. InputMode -> (Void# -> r) -> (Void# -> r) -> r
InputMode_Pipe = InputMode' "Pipe"

{-# COMPLETE
  InputMode_File,
  InputMode_Pipe,
  InputMode'
  #-}