{-# 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.Transcribe.Types.SentimentValue
-- 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.Transcribe.Types.SentimentValue
  ( SentimentValue
      ( ..,
        SentimentValue_MIXED,
        SentimentValue_NEGATIVE,
        SentimentValue_NEUTRAL,
        SentimentValue_POSITIVE
      ),
  )
where

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

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

pattern SentimentValue_MIXED :: SentimentValue
pattern $bSentimentValue_MIXED :: SentimentValue
$mSentimentValue_MIXED :: forall {r}. SentimentValue -> ((# #) -> r) -> ((# #) -> r) -> r
SentimentValue_MIXED = SentimentValue' "MIXED"

pattern SentimentValue_NEGATIVE :: SentimentValue
pattern $bSentimentValue_NEGATIVE :: SentimentValue
$mSentimentValue_NEGATIVE :: forall {r}. SentimentValue -> ((# #) -> r) -> ((# #) -> r) -> r
SentimentValue_NEGATIVE = SentimentValue' "NEGATIVE"

pattern SentimentValue_NEUTRAL :: SentimentValue
pattern $bSentimentValue_NEUTRAL :: SentimentValue
$mSentimentValue_NEUTRAL :: forall {r}. SentimentValue -> ((# #) -> r) -> ((# #) -> r) -> r
SentimentValue_NEUTRAL = SentimentValue' "NEUTRAL"

pattern SentimentValue_POSITIVE :: SentimentValue
pattern $bSentimentValue_POSITIVE :: SentimentValue
$mSentimentValue_POSITIVE :: forall {r}. SentimentValue -> ((# #) -> r) -> ((# #) -> r) -> r
SentimentValue_POSITIVE = SentimentValue' "POSITIVE"

{-# COMPLETE
  SentimentValue_MIXED,
  SentimentValue_NEGATIVE,
  SentimentValue_NEUTRAL,
  SentimentValue_POSITIVE,
  SentimentValue'
  #-}