{-# 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.LexV2Models.Types.VoiceEngine
-- 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.LexV2Models.Types.VoiceEngine
  ( VoiceEngine
      ( ..,
        VoiceEngine_Neural,
        VoiceEngine_Standard
      ),
  )
where

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

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

pattern VoiceEngine_Neural :: VoiceEngine
pattern $bVoiceEngine_Neural :: VoiceEngine
$mVoiceEngine_Neural :: forall {r}. VoiceEngine -> ((# #) -> r) -> ((# #) -> r) -> r
VoiceEngine_Neural = VoiceEngine' "neural"

pattern VoiceEngine_Standard :: VoiceEngine
pattern $bVoiceEngine_Standard :: VoiceEngine
$mVoiceEngine_Standard :: forall {r}. VoiceEngine -> ((# #) -> r) -> ((# #) -> r) -> r
VoiceEngine_Standard = VoiceEngine' "standard"

{-# COMPLETE
  VoiceEngine_Neural,
  VoiceEngine_Standard,
  VoiceEngine'
  #-}