{-# 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.CodeGuruReviewer.Types.Reaction
-- 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.CodeGuruReviewer.Types.Reaction
  ( Reaction
      ( ..,
        Reaction_ThumbsDown,
        Reaction_ThumbsUp
      ),
  )
where

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

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

pattern Reaction_ThumbsDown :: Reaction
pattern $bReaction_ThumbsDown :: Reaction
$mReaction_ThumbsDown :: forall {r}. Reaction -> ((# #) -> r) -> ((# #) -> r) -> r
Reaction_ThumbsDown = Reaction' "ThumbsDown"

pattern Reaction_ThumbsUp :: Reaction
pattern $bReaction_ThumbsUp :: Reaction
$mReaction_ThumbsUp :: forall {r}. Reaction -> ((# #) -> r) -> ((# #) -> r) -> r
Reaction_ThumbsUp = Reaction' "ThumbsUp"

{-# COMPLETE
  Reaction_ThumbsDown,
  Reaction_ThumbsUp,
  Reaction'
  #-}