{-# 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.Processor
-- 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.Processor
  ( Processor
      ( ..,
        Processor_CPU,
        Processor_GPU
      ),
  )
where

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

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

pattern Processor_CPU :: Processor
pattern $bProcessor_CPU :: Processor
$mProcessor_CPU :: forall {r}. Processor -> ((# #) -> r) -> ((# #) -> r) -> r
Processor_CPU = Processor' "CPU"

pattern Processor_GPU :: Processor
pattern $bProcessor_GPU :: Processor
$mProcessor_GPU :: forall {r}. Processor -> ((# #) -> r) -> ((# #) -> r) -> r
Processor_GPU = Processor' "GPU"

{-# COMPLETE
  Processor_CPU,
  Processor_GPU,
  Processor'
  #-}