{-# 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.CodeGuruProfiler.Types.FeedbackType
-- 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.CodeGuruProfiler.Types.FeedbackType
  ( FeedbackType
      ( ..,
        FeedbackType_Negative,
        FeedbackType_Positive
      ),
  )
where

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

newtype FeedbackType = FeedbackType'
  { FeedbackType -> Text
fromFeedbackType ::
      Data.Text
  }
  deriving stock
    ( Int -> FeedbackType -> ShowS
[FeedbackType] -> ShowS
FeedbackType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [FeedbackType] -> ShowS
$cshowList :: [FeedbackType] -> ShowS
show :: FeedbackType -> String
$cshow :: FeedbackType -> String
showsPrec :: Int -> FeedbackType -> ShowS
$cshowsPrec :: Int -> FeedbackType -> ShowS
Prelude.Show,
      ReadPrec [FeedbackType]
ReadPrec FeedbackType
Int -> ReadS FeedbackType
ReadS [FeedbackType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [FeedbackType]
$creadListPrec :: ReadPrec [FeedbackType]
readPrec :: ReadPrec FeedbackType
$creadPrec :: ReadPrec FeedbackType
readList :: ReadS [FeedbackType]
$creadList :: ReadS [FeedbackType]
readsPrec :: Int -> ReadS FeedbackType
$creadsPrec :: Int -> ReadS FeedbackType
Prelude.Read,
      FeedbackType -> FeedbackType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: FeedbackType -> FeedbackType -> Bool
$c/= :: FeedbackType -> FeedbackType -> Bool
== :: FeedbackType -> FeedbackType -> Bool
$c== :: FeedbackType -> FeedbackType -> Bool
Prelude.Eq,
      Eq FeedbackType
FeedbackType -> FeedbackType -> Bool
FeedbackType -> FeedbackType -> Ordering
FeedbackType -> FeedbackType -> FeedbackType
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 :: FeedbackType -> FeedbackType -> FeedbackType
$cmin :: FeedbackType -> FeedbackType -> FeedbackType
max :: FeedbackType -> FeedbackType -> FeedbackType
$cmax :: FeedbackType -> FeedbackType -> FeedbackType
>= :: FeedbackType -> FeedbackType -> Bool
$c>= :: FeedbackType -> FeedbackType -> Bool
> :: FeedbackType -> FeedbackType -> Bool
$c> :: FeedbackType -> FeedbackType -> Bool
<= :: FeedbackType -> FeedbackType -> Bool
$c<= :: FeedbackType -> FeedbackType -> Bool
< :: FeedbackType -> FeedbackType -> Bool
$c< :: FeedbackType -> FeedbackType -> Bool
compare :: FeedbackType -> FeedbackType -> Ordering
$ccompare :: FeedbackType -> FeedbackType -> Ordering
Prelude.Ord,
      forall x. Rep FeedbackType x -> FeedbackType
forall x. FeedbackType -> Rep FeedbackType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep FeedbackType x -> FeedbackType
$cfrom :: forall x. FeedbackType -> Rep FeedbackType x
Prelude.Generic
    )
  deriving newtype
    ( Eq FeedbackType
Int -> FeedbackType -> Int
FeedbackType -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: FeedbackType -> Int
$chash :: FeedbackType -> Int
hashWithSalt :: Int -> FeedbackType -> Int
$chashWithSalt :: Int -> FeedbackType -> Int
Prelude.Hashable,
      FeedbackType -> ()
forall a. (a -> ()) -> NFData a
rnf :: FeedbackType -> ()
$crnf :: FeedbackType -> ()
Prelude.NFData,
      Text -> Either String FeedbackType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String FeedbackType
$cfromText :: Text -> Either String FeedbackType
Data.FromText,
      FeedbackType -> Text
forall a. (a -> Text) -> ToText a
toText :: FeedbackType -> Text
$ctoText :: FeedbackType -> Text
Data.ToText,
      FeedbackType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: FeedbackType -> ByteString
$ctoBS :: FeedbackType -> ByteString
Data.ToByteString,
      FeedbackType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: FeedbackType -> ByteStringBuilder
$cbuild :: FeedbackType -> ByteStringBuilder
Data.ToLog,
      HeaderName -> FeedbackType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> FeedbackType -> [Header]
$ctoHeader :: HeaderName -> FeedbackType -> [Header]
Data.ToHeader,
      FeedbackType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: FeedbackType -> QueryString
$ctoQuery :: FeedbackType -> QueryString
Data.ToQuery,
      Value -> Parser [FeedbackType]
Value -> Parser FeedbackType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [FeedbackType]
$cparseJSONList :: Value -> Parser [FeedbackType]
parseJSON :: Value -> Parser FeedbackType
$cparseJSON :: Value -> Parser FeedbackType
Data.FromJSON,
      FromJSONKeyFunction [FeedbackType]
FromJSONKeyFunction FeedbackType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [FeedbackType]
$cfromJSONKeyList :: FromJSONKeyFunction [FeedbackType]
fromJSONKey :: FromJSONKeyFunction FeedbackType
$cfromJSONKey :: FromJSONKeyFunction FeedbackType
Data.FromJSONKey,
      [FeedbackType] -> Encoding
[FeedbackType] -> Value
FeedbackType -> Encoding
FeedbackType -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [FeedbackType] -> Encoding
$ctoEncodingList :: [FeedbackType] -> Encoding
toJSONList :: [FeedbackType] -> Value
$ctoJSONList :: [FeedbackType] -> Value
toEncoding :: FeedbackType -> Encoding
$ctoEncoding :: FeedbackType -> Encoding
toJSON :: FeedbackType -> Value
$ctoJSON :: FeedbackType -> Value
Data.ToJSON,
      ToJSONKeyFunction [FeedbackType]
ToJSONKeyFunction FeedbackType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [FeedbackType]
$ctoJSONKeyList :: ToJSONKeyFunction [FeedbackType]
toJSONKey :: ToJSONKeyFunction FeedbackType
$ctoJSONKey :: ToJSONKeyFunction FeedbackType
Data.ToJSONKey,
      [Node] -> Either String FeedbackType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String FeedbackType
$cparseXML :: [Node] -> Either String FeedbackType
Data.FromXML,
      FeedbackType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: FeedbackType -> XML
$ctoXML :: FeedbackType -> XML
Data.ToXML
    )

pattern FeedbackType_Negative :: FeedbackType
pattern $bFeedbackType_Negative :: FeedbackType
$mFeedbackType_Negative :: forall {r}. FeedbackType -> ((# #) -> r) -> ((# #) -> r) -> r
FeedbackType_Negative = FeedbackType' "Negative"

pattern FeedbackType_Positive :: FeedbackType
pattern $bFeedbackType_Positive :: FeedbackType
$mFeedbackType_Positive :: forall {r}. FeedbackType -> ((# #) -> r) -> ((# #) -> r) -> r
FeedbackType_Positive = FeedbackType' "Positive"

{-# COMPLETE
  FeedbackType_Negative,
  FeedbackType_Positive,
  FeedbackType'
  #-}