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