{-# 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.Polly.Types.Engine
-- 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.Polly.Types.Engine
  ( Engine
      ( ..,
        Engine_Neural,
        Engine_Standard
      ),
  )
where

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

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

pattern Engine_Neural :: Engine
pattern $bEngine_Neural :: Engine
$mEngine_Neural :: forall r. Engine -> (Void# -> r) -> (Void# -> r) -> r
Engine_Neural = Engine' "neural"

pattern Engine_Standard :: Engine
pattern $bEngine_Standard :: Engine
$mEngine_Standard :: forall r. Engine -> (Void# -> r) -> (Void# -> r) -> r
Engine_Standard = Engine' "standard"

{-# COMPLETE
  Engine_Neural,
  Engine_Standard,
  Engine'
  #-}