{-# 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.Personalize.Types.RecipeProvider
-- 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.Personalize.Types.RecipeProvider
  ( RecipeProvider
      ( ..,
        RecipeProvider_SERVICE
      ),
  )
where

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

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

pattern RecipeProvider_SERVICE :: RecipeProvider
pattern $bRecipeProvider_SERVICE :: RecipeProvider
$mRecipeProvider_SERVICE :: forall {r}. RecipeProvider -> ((# #) -> r) -> ((# #) -> r) -> r
RecipeProvider_SERVICE = RecipeProvider' "SERVICE"

{-# COMPLETE
  RecipeProvider_SERVICE,
  RecipeProvider'
  #-}