{-# 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.InferenceExecutionMode
-- 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.InferenceExecutionMode
  ( InferenceExecutionMode
      ( ..,
        InferenceExecutionMode_Direct,
        InferenceExecutionMode_Serial
      ),
  )
where

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

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

pattern InferenceExecutionMode_Direct :: InferenceExecutionMode
pattern $bInferenceExecutionMode_Direct :: InferenceExecutionMode
$mInferenceExecutionMode_Direct :: forall r.
InferenceExecutionMode -> (Void# -> r) -> (Void# -> r) -> r
InferenceExecutionMode_Direct = InferenceExecutionMode' "Direct"

pattern InferenceExecutionMode_Serial :: InferenceExecutionMode
pattern $bInferenceExecutionMode_Serial :: InferenceExecutionMode
$mInferenceExecutionMode_Serial :: forall r.
InferenceExecutionMode -> (Void# -> r) -> (Void# -> r) -> r
InferenceExecutionMode_Serial = InferenceExecutionMode' "Serial"

{-# COMPLETE
  InferenceExecutionMode_Direct,
  InferenceExecutionMode_Serial,
  InferenceExecutionMode'
  #-}