{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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.Prelude as Prelude

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

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

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

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