{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Polly.Types.OutputFormat
( OutputFormat
( ..,
OutputFormat_Json,
OutputFormat_Mp3,
OutputFormat_Ogg_vorbis,
OutputFormat_Pcm
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype OutputFormat = OutputFormat'
{ OutputFormat -> Text
fromOutputFormat ::
Data.Text
}
deriving stock
( Int -> OutputFormat -> ShowS
[OutputFormat] -> ShowS
OutputFormat -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [OutputFormat] -> ShowS
$cshowList :: [OutputFormat] -> ShowS
show :: OutputFormat -> String
$cshow :: OutputFormat -> String
showsPrec :: Int -> OutputFormat -> ShowS
$cshowsPrec :: Int -> OutputFormat -> ShowS
Prelude.Show,
ReadPrec [OutputFormat]
ReadPrec OutputFormat
Int -> ReadS OutputFormat
ReadS [OutputFormat]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [OutputFormat]
$creadListPrec :: ReadPrec [OutputFormat]
readPrec :: ReadPrec OutputFormat
$creadPrec :: ReadPrec OutputFormat
readList :: ReadS [OutputFormat]
$creadList :: ReadS [OutputFormat]
readsPrec :: Int -> ReadS OutputFormat
$creadsPrec :: Int -> ReadS OutputFormat
Prelude.Read,
OutputFormat -> OutputFormat -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: OutputFormat -> OutputFormat -> Bool
$c/= :: OutputFormat -> OutputFormat -> Bool
== :: OutputFormat -> OutputFormat -> Bool
$c== :: OutputFormat -> OutputFormat -> Bool
Prelude.Eq,
Eq OutputFormat
OutputFormat -> OutputFormat -> Bool
OutputFormat -> OutputFormat -> Ordering
OutputFormat -> OutputFormat -> OutputFormat
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 :: OutputFormat -> OutputFormat -> OutputFormat
$cmin :: OutputFormat -> OutputFormat -> OutputFormat
max :: OutputFormat -> OutputFormat -> OutputFormat
$cmax :: OutputFormat -> OutputFormat -> OutputFormat
>= :: OutputFormat -> OutputFormat -> Bool
$c>= :: OutputFormat -> OutputFormat -> Bool
> :: OutputFormat -> OutputFormat -> Bool
$c> :: OutputFormat -> OutputFormat -> Bool
<= :: OutputFormat -> OutputFormat -> Bool
$c<= :: OutputFormat -> OutputFormat -> Bool
< :: OutputFormat -> OutputFormat -> Bool
$c< :: OutputFormat -> OutputFormat -> Bool
compare :: OutputFormat -> OutputFormat -> Ordering
$ccompare :: OutputFormat -> OutputFormat -> Ordering
Prelude.Ord,
forall x. Rep OutputFormat x -> OutputFormat
forall x. OutputFormat -> Rep OutputFormat x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep OutputFormat x -> OutputFormat
$cfrom :: forall x. OutputFormat -> Rep OutputFormat x
Prelude.Generic
)
deriving newtype
( Eq OutputFormat
Int -> OutputFormat -> Int
OutputFormat -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: OutputFormat -> Int
$chash :: OutputFormat -> Int
hashWithSalt :: Int -> OutputFormat -> Int
$chashWithSalt :: Int -> OutputFormat -> Int
Prelude.Hashable,
OutputFormat -> ()
forall a. (a -> ()) -> NFData a
rnf :: OutputFormat -> ()
$crnf :: OutputFormat -> ()
Prelude.NFData,
Text -> Either String OutputFormat
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String OutputFormat
$cfromText :: Text -> Either String OutputFormat
Data.FromText,
OutputFormat -> Text
forall a. (a -> Text) -> ToText a
toText :: OutputFormat -> Text
$ctoText :: OutputFormat -> Text
Data.ToText,
OutputFormat -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: OutputFormat -> ByteString
$ctoBS :: OutputFormat -> ByteString
Data.ToByteString,
OutputFormat -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: OutputFormat -> ByteStringBuilder
$cbuild :: OutputFormat -> ByteStringBuilder
Data.ToLog,
HeaderName -> OutputFormat -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> OutputFormat -> [Header]
$ctoHeader :: HeaderName -> OutputFormat -> [Header]
Data.ToHeader,
OutputFormat -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: OutputFormat -> QueryString
$ctoQuery :: OutputFormat -> QueryString
Data.ToQuery,
Value -> Parser [OutputFormat]
Value -> Parser OutputFormat
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [OutputFormat]
$cparseJSONList :: Value -> Parser [OutputFormat]
parseJSON :: Value -> Parser OutputFormat
$cparseJSON :: Value -> Parser OutputFormat
Data.FromJSON,
FromJSONKeyFunction [OutputFormat]
FromJSONKeyFunction OutputFormat
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [OutputFormat]
$cfromJSONKeyList :: FromJSONKeyFunction [OutputFormat]
fromJSONKey :: FromJSONKeyFunction OutputFormat
$cfromJSONKey :: FromJSONKeyFunction OutputFormat
Data.FromJSONKey,
[OutputFormat] -> Encoding
[OutputFormat] -> Value
OutputFormat -> Encoding
OutputFormat -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [OutputFormat] -> Encoding
$ctoEncodingList :: [OutputFormat] -> Encoding
toJSONList :: [OutputFormat] -> Value
$ctoJSONList :: [OutputFormat] -> Value
toEncoding :: OutputFormat -> Encoding
$ctoEncoding :: OutputFormat -> Encoding
toJSON :: OutputFormat -> Value
$ctoJSON :: OutputFormat -> Value
Data.ToJSON,
ToJSONKeyFunction [OutputFormat]
ToJSONKeyFunction OutputFormat
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [OutputFormat]
$ctoJSONKeyList :: ToJSONKeyFunction [OutputFormat]
toJSONKey :: ToJSONKeyFunction OutputFormat
$ctoJSONKey :: ToJSONKeyFunction OutputFormat
Data.ToJSONKey,
[Node] -> Either String OutputFormat
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String OutputFormat
$cparseXML :: [Node] -> Either String OutputFormat
Data.FromXML,
OutputFormat -> XML
forall a. (a -> XML) -> ToXML a
toXML :: OutputFormat -> XML
$ctoXML :: OutputFormat -> XML
Data.ToXML
)
pattern OutputFormat_Json :: OutputFormat
pattern $bOutputFormat_Json :: OutputFormat
$mOutputFormat_Json :: forall {r}. OutputFormat -> ((# #) -> r) -> ((# #) -> r) -> r
OutputFormat_Json = OutputFormat' "json"
pattern OutputFormat_Mp3 :: OutputFormat
pattern $bOutputFormat_Mp3 :: OutputFormat
$mOutputFormat_Mp3 :: forall {r}. OutputFormat -> ((# #) -> r) -> ((# #) -> r) -> r
OutputFormat_Mp3 = OutputFormat' "mp3"
pattern OutputFormat_Ogg_vorbis :: OutputFormat
pattern $bOutputFormat_Ogg_vorbis :: OutputFormat
$mOutputFormat_Ogg_vorbis :: forall {r}. OutputFormat -> ((# #) -> r) -> ((# #) -> r) -> r
OutputFormat_Ogg_vorbis = OutputFormat' "ogg_vorbis"
pattern OutputFormat_Pcm :: OutputFormat
pattern $bOutputFormat_Pcm :: OutputFormat
$mOutputFormat_Pcm :: forall {r}. OutputFormat -> ((# #) -> r) -> ((# #) -> r) -> r
OutputFormat_Pcm = OutputFormat' "pcm"
{-# COMPLETE
OutputFormat_Json,
OutputFormat_Mp3,
OutputFormat_Ogg_vorbis,
OutputFormat_Pcm,
OutputFormat'
#-}