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

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

newtype RecipeProvider = RecipeProvider'
  { RecipeProvider -> Text
fromRecipeProvider ::
      Core.Text
  }
  deriving stock
    ( Int -> RecipeProvider -> ShowS
[RecipeProvider] -> ShowS
RecipeProvider -> String
(Int -> RecipeProvider -> ShowS)
-> (RecipeProvider -> String)
-> ([RecipeProvider] -> ShowS)
-> Show RecipeProvider
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]
(Int -> ReadS RecipeProvider)
-> ReadS [RecipeProvider]
-> ReadPrec RecipeProvider
-> ReadPrec [RecipeProvider]
-> Read 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
(RecipeProvider -> RecipeProvider -> Bool)
-> (RecipeProvider -> RecipeProvider -> Bool) -> Eq RecipeProvider
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
Eq RecipeProvider
-> (RecipeProvider -> RecipeProvider -> Ordering)
-> (RecipeProvider -> RecipeProvider -> Bool)
-> (RecipeProvider -> RecipeProvider -> Bool)
-> (RecipeProvider -> RecipeProvider -> Bool)
-> (RecipeProvider -> RecipeProvider -> Bool)
-> (RecipeProvider -> RecipeProvider -> RecipeProvider)
-> (RecipeProvider -> RecipeProvider -> RecipeProvider)
-> Ord 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
$cp1Ord :: Eq RecipeProvider
Prelude.Ord,
      (forall x. RecipeProvider -> Rep RecipeProvider x)
-> (forall x. Rep RecipeProvider x -> RecipeProvider)
-> Generic RecipeProvider
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
    ( Int -> RecipeProvider -> Int
RecipeProvider -> Int
(Int -> RecipeProvider -> Int)
-> (RecipeProvider -> Int) -> Hashable RecipeProvider
forall 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 -> ()
(RecipeProvider -> ()) -> NFData RecipeProvider
forall a. (a -> ()) -> NFData a
rnf :: RecipeProvider -> ()
$crnf :: RecipeProvider -> ()
Prelude.NFData,
      Text -> Either String RecipeProvider
(Text -> Either String RecipeProvider) -> FromText RecipeProvider
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String RecipeProvider
$cfromText :: Text -> Either String RecipeProvider
Core.FromText,
      RecipeProvider -> Text
(RecipeProvider -> Text) -> ToText RecipeProvider
forall a. (a -> Text) -> ToText a
toText :: RecipeProvider -> Text
$ctoText :: RecipeProvider -> Text
Core.ToText,
      RecipeProvider -> ByteString
(RecipeProvider -> ByteString) -> ToByteString RecipeProvider
forall a. (a -> ByteString) -> ToByteString a
toBS :: RecipeProvider -> ByteString
$ctoBS :: RecipeProvider -> ByteString
Core.ToByteString,
      RecipeProvider -> ByteStringBuilder
(RecipeProvider -> ByteStringBuilder) -> ToLog RecipeProvider
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: RecipeProvider -> ByteStringBuilder
$cbuild :: RecipeProvider -> ByteStringBuilder
Core.ToLog,
      HeaderName -> RecipeProvider -> [Header]
(HeaderName -> RecipeProvider -> [Header])
-> ToHeader RecipeProvider
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> RecipeProvider -> [Header]
$ctoHeader :: HeaderName -> RecipeProvider -> [Header]
Core.ToHeader,
      RecipeProvider -> QueryString
(RecipeProvider -> QueryString) -> ToQuery RecipeProvider
forall a. (a -> QueryString) -> ToQuery a
toQuery :: RecipeProvider -> QueryString
$ctoQuery :: RecipeProvider -> QueryString
Core.ToQuery,
      Value -> Parser [RecipeProvider]
Value -> Parser RecipeProvider
(Value -> Parser RecipeProvider)
-> (Value -> Parser [RecipeProvider]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [RecipeProvider]
FromJSONKeyFunction RecipeProvider
FromJSONKeyFunction RecipeProvider
-> FromJSONKeyFunction [RecipeProvider]
-> FromJSONKey RecipeProvider
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [RecipeProvider]
$cfromJSONKeyList :: FromJSONKeyFunction [RecipeProvider]
fromJSONKey :: FromJSONKeyFunction RecipeProvider
$cfromJSONKey :: FromJSONKeyFunction RecipeProvider
Core.FromJSONKey,
      [RecipeProvider] -> Encoding
[RecipeProvider] -> Value
RecipeProvider -> Encoding
RecipeProvider -> Value
(RecipeProvider -> Value)
-> (RecipeProvider -> Encoding)
-> ([RecipeProvider] -> Value)
-> ([RecipeProvider] -> Encoding)
-> ToJSON RecipeProvider
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
Core.ToJSON,
      ToJSONKeyFunction [RecipeProvider]
ToJSONKeyFunction RecipeProvider
ToJSONKeyFunction RecipeProvider
-> ToJSONKeyFunction [RecipeProvider] -> ToJSONKey RecipeProvider
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [RecipeProvider]
$ctoJSONKeyList :: ToJSONKeyFunction [RecipeProvider]
toJSONKey :: ToJSONKeyFunction RecipeProvider
$ctoJSONKey :: ToJSONKeyFunction RecipeProvider
Core.ToJSONKey,
      [Node] -> Either String RecipeProvider
([Node] -> Either String RecipeProvider) -> FromXML RecipeProvider
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String RecipeProvider
$cparseXML :: [Node] -> Either String RecipeProvider
Core.FromXML,
      RecipeProvider -> XML
(RecipeProvider -> XML) -> ToXML RecipeProvider
forall a. (a -> XML) -> ToXML a
toXML :: RecipeProvider -> XML
$ctoXML :: RecipeProvider -> XML
Core.ToXML
    )

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

{-# COMPLETE
  RecipeProvider_SERVICE,
  RecipeProvider'
  #-}