{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Transcribe.Types.SentimentValue
( SentimentValue
( ..,
SentimentValue_MIXED,
SentimentValue_NEGATIVE,
SentimentValue_NEUTRAL,
SentimentValue_POSITIVE
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype SentimentValue = SentimentValue'
{ SentimentValue -> Text
fromSentimentValue ::
Core.Text
}
deriving stock
( Int -> SentimentValue -> ShowS
[SentimentValue] -> ShowS
SentimentValue -> String
(Int -> SentimentValue -> ShowS)
-> (SentimentValue -> String)
-> ([SentimentValue] -> ShowS)
-> Show SentimentValue
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SentimentValue] -> ShowS
$cshowList :: [SentimentValue] -> ShowS
show :: SentimentValue -> String
$cshow :: SentimentValue -> String
showsPrec :: Int -> SentimentValue -> ShowS
$cshowsPrec :: Int -> SentimentValue -> ShowS
Prelude.Show,
ReadPrec [SentimentValue]
ReadPrec SentimentValue
Int -> ReadS SentimentValue
ReadS [SentimentValue]
(Int -> ReadS SentimentValue)
-> ReadS [SentimentValue]
-> ReadPrec SentimentValue
-> ReadPrec [SentimentValue]
-> Read SentimentValue
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SentimentValue]
$creadListPrec :: ReadPrec [SentimentValue]
readPrec :: ReadPrec SentimentValue
$creadPrec :: ReadPrec SentimentValue
readList :: ReadS [SentimentValue]
$creadList :: ReadS [SentimentValue]
readsPrec :: Int -> ReadS SentimentValue
$creadsPrec :: Int -> ReadS SentimentValue
Prelude.Read,
SentimentValue -> SentimentValue -> Bool
(SentimentValue -> SentimentValue -> Bool)
-> (SentimentValue -> SentimentValue -> Bool) -> Eq SentimentValue
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SentimentValue -> SentimentValue -> Bool
$c/= :: SentimentValue -> SentimentValue -> Bool
== :: SentimentValue -> SentimentValue -> Bool
$c== :: SentimentValue -> SentimentValue -> Bool
Prelude.Eq,
Eq SentimentValue
Eq SentimentValue
-> (SentimentValue -> SentimentValue -> Ordering)
-> (SentimentValue -> SentimentValue -> Bool)
-> (SentimentValue -> SentimentValue -> Bool)
-> (SentimentValue -> SentimentValue -> Bool)
-> (SentimentValue -> SentimentValue -> Bool)
-> (SentimentValue -> SentimentValue -> SentimentValue)
-> (SentimentValue -> SentimentValue -> SentimentValue)
-> Ord SentimentValue
SentimentValue -> SentimentValue -> Bool
SentimentValue -> SentimentValue -> Ordering
SentimentValue -> SentimentValue -> SentimentValue
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 :: SentimentValue -> SentimentValue -> SentimentValue
$cmin :: SentimentValue -> SentimentValue -> SentimentValue
max :: SentimentValue -> SentimentValue -> SentimentValue
$cmax :: SentimentValue -> SentimentValue -> SentimentValue
>= :: SentimentValue -> SentimentValue -> Bool
$c>= :: SentimentValue -> SentimentValue -> Bool
> :: SentimentValue -> SentimentValue -> Bool
$c> :: SentimentValue -> SentimentValue -> Bool
<= :: SentimentValue -> SentimentValue -> Bool
$c<= :: SentimentValue -> SentimentValue -> Bool
< :: SentimentValue -> SentimentValue -> Bool
$c< :: SentimentValue -> SentimentValue -> Bool
compare :: SentimentValue -> SentimentValue -> Ordering
$ccompare :: SentimentValue -> SentimentValue -> Ordering
$cp1Ord :: Eq SentimentValue
Prelude.Ord,
(forall x. SentimentValue -> Rep SentimentValue x)
-> (forall x. Rep SentimentValue x -> SentimentValue)
-> Generic SentimentValue
forall x. Rep SentimentValue x -> SentimentValue
forall x. SentimentValue -> Rep SentimentValue x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep SentimentValue x -> SentimentValue
$cfrom :: forall x. SentimentValue -> Rep SentimentValue x
Prelude.Generic
)
deriving newtype
( Int -> SentimentValue -> Int
SentimentValue -> Int
(Int -> SentimentValue -> Int)
-> (SentimentValue -> Int) -> Hashable SentimentValue
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: SentimentValue -> Int
$chash :: SentimentValue -> Int
hashWithSalt :: Int -> SentimentValue -> Int
$chashWithSalt :: Int -> SentimentValue -> Int
Prelude.Hashable,
SentimentValue -> ()
(SentimentValue -> ()) -> NFData SentimentValue
forall a. (a -> ()) -> NFData a
rnf :: SentimentValue -> ()
$crnf :: SentimentValue -> ()
Prelude.NFData,
Text -> Either String SentimentValue
(Text -> Either String SentimentValue) -> FromText SentimentValue
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String SentimentValue
$cfromText :: Text -> Either String SentimentValue
Core.FromText,
SentimentValue -> Text
(SentimentValue -> Text) -> ToText SentimentValue
forall a. (a -> Text) -> ToText a
toText :: SentimentValue -> Text
$ctoText :: SentimentValue -> Text
Core.ToText,
SentimentValue -> ByteString
(SentimentValue -> ByteString) -> ToByteString SentimentValue
forall a. (a -> ByteString) -> ToByteString a
toBS :: SentimentValue -> ByteString
$ctoBS :: SentimentValue -> ByteString
Core.ToByteString,
SentimentValue -> ByteStringBuilder
(SentimentValue -> ByteStringBuilder) -> ToLog SentimentValue
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: SentimentValue -> ByteStringBuilder
$cbuild :: SentimentValue -> ByteStringBuilder
Core.ToLog,
HeaderName -> SentimentValue -> [Header]
(HeaderName -> SentimentValue -> [Header])
-> ToHeader SentimentValue
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> SentimentValue -> [Header]
$ctoHeader :: HeaderName -> SentimentValue -> [Header]
Core.ToHeader,
SentimentValue -> QueryString
(SentimentValue -> QueryString) -> ToQuery SentimentValue
forall a. (a -> QueryString) -> ToQuery a
toQuery :: SentimentValue -> QueryString
$ctoQuery :: SentimentValue -> QueryString
Core.ToQuery,
Value -> Parser [SentimentValue]
Value -> Parser SentimentValue
(Value -> Parser SentimentValue)
-> (Value -> Parser [SentimentValue]) -> FromJSON SentimentValue
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [SentimentValue]
$cparseJSONList :: Value -> Parser [SentimentValue]
parseJSON :: Value -> Parser SentimentValue
$cparseJSON :: Value -> Parser SentimentValue
Core.FromJSON,
FromJSONKeyFunction [SentimentValue]
FromJSONKeyFunction SentimentValue
FromJSONKeyFunction SentimentValue
-> FromJSONKeyFunction [SentimentValue]
-> FromJSONKey SentimentValue
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [SentimentValue]
$cfromJSONKeyList :: FromJSONKeyFunction [SentimentValue]
fromJSONKey :: FromJSONKeyFunction SentimentValue
$cfromJSONKey :: FromJSONKeyFunction SentimentValue
Core.FromJSONKey,
[SentimentValue] -> Encoding
[SentimentValue] -> Value
SentimentValue -> Encoding
SentimentValue -> Value
(SentimentValue -> Value)
-> (SentimentValue -> Encoding)
-> ([SentimentValue] -> Value)
-> ([SentimentValue] -> Encoding)
-> ToJSON SentimentValue
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [SentimentValue] -> Encoding
$ctoEncodingList :: [SentimentValue] -> Encoding
toJSONList :: [SentimentValue] -> Value
$ctoJSONList :: [SentimentValue] -> Value
toEncoding :: SentimentValue -> Encoding
$ctoEncoding :: SentimentValue -> Encoding
toJSON :: SentimentValue -> Value
$ctoJSON :: SentimentValue -> Value
Core.ToJSON,
ToJSONKeyFunction [SentimentValue]
ToJSONKeyFunction SentimentValue
ToJSONKeyFunction SentimentValue
-> ToJSONKeyFunction [SentimentValue] -> ToJSONKey SentimentValue
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [SentimentValue]
$ctoJSONKeyList :: ToJSONKeyFunction [SentimentValue]
toJSONKey :: ToJSONKeyFunction SentimentValue
$ctoJSONKey :: ToJSONKeyFunction SentimentValue
Core.ToJSONKey,
[Node] -> Either String SentimentValue
([Node] -> Either String SentimentValue) -> FromXML SentimentValue
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String SentimentValue
$cparseXML :: [Node] -> Either String SentimentValue
Core.FromXML,
SentimentValue -> XML
(SentimentValue -> XML) -> ToXML SentimentValue
forall a. (a -> XML) -> ToXML a
toXML :: SentimentValue -> XML
$ctoXML :: SentimentValue -> XML
Core.ToXML
)
pattern SentimentValue_MIXED :: SentimentValue
pattern $bSentimentValue_MIXED :: SentimentValue
$mSentimentValue_MIXED :: forall r. SentimentValue -> (Void# -> r) -> (Void# -> r) -> r
SentimentValue_MIXED = SentimentValue' "MIXED"
pattern SentimentValue_NEGATIVE :: SentimentValue
pattern $bSentimentValue_NEGATIVE :: SentimentValue
$mSentimentValue_NEGATIVE :: forall r. SentimentValue -> (Void# -> r) -> (Void# -> r) -> r
SentimentValue_NEGATIVE = SentimentValue' "NEGATIVE"
pattern SentimentValue_NEUTRAL :: SentimentValue
pattern $bSentimentValue_NEUTRAL :: SentimentValue
$mSentimentValue_NEUTRAL :: forall r. SentimentValue -> (Void# -> r) -> (Void# -> r) -> r
SentimentValue_NEUTRAL = SentimentValue' "NEUTRAL"
pattern SentimentValue_POSITIVE :: SentimentValue
pattern $bSentimentValue_POSITIVE :: SentimentValue
$mSentimentValue_POSITIVE :: forall r. SentimentValue -> (Void# -> r) -> (Void# -> r) -> r
SentimentValue_POSITIVE = SentimentValue' "POSITIVE"
{-# COMPLETE
SentimentValue_MIXED,
SentimentValue_NEGATIVE,
SentimentValue_NEUTRAL,
SentimentValue_POSITIVE,
SentimentValue'
#-}