{-# 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.RecommendationJobType
-- 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.RecommendationJobType
  ( RecommendationJobType
      ( ..,
        RecommendationJobType_Advanced,
        RecommendationJobType_Default
      ),
  )
where

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

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

pattern RecommendationJobType_Advanced :: RecommendationJobType
pattern $bRecommendationJobType_Advanced :: RecommendationJobType
$mRecommendationJobType_Advanced :: forall {r}.
RecommendationJobType -> ((# #) -> r) -> ((# #) -> r) -> r
RecommendationJobType_Advanced = RecommendationJobType' "Advanced"

pattern RecommendationJobType_Default :: RecommendationJobType
pattern $bRecommendationJobType_Default :: RecommendationJobType
$mRecommendationJobType_Default :: forall {r}.
RecommendationJobType -> ((# #) -> r) -> ((# #) -> r) -> r
RecommendationJobType_Default = RecommendationJobType' "Default"

{-# COMPLETE
  RecommendationJobType_Advanced,
  RecommendationJobType_Default,
  RecommendationJobType'
  #-}