{-# 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.ApplicationInsights.Types.FeedbackValue
-- 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.ApplicationInsights.Types.FeedbackValue
  ( FeedbackValue
      ( ..,
        FeedbackValue_NOT_SPECIFIED,
        FeedbackValue_NOT_USEFUL,
        FeedbackValue_USEFUL
      ),
  )
where

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

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

pattern FeedbackValue_NOT_SPECIFIED :: FeedbackValue
pattern $bFeedbackValue_NOT_SPECIFIED :: FeedbackValue
$mFeedbackValue_NOT_SPECIFIED :: forall {r}. FeedbackValue -> ((# #) -> r) -> ((# #) -> r) -> r
FeedbackValue_NOT_SPECIFIED = FeedbackValue' "NOT_SPECIFIED"

pattern FeedbackValue_NOT_USEFUL :: FeedbackValue
pattern $bFeedbackValue_NOT_USEFUL :: FeedbackValue
$mFeedbackValue_NOT_USEFUL :: forall {r}. FeedbackValue -> ((# #) -> r) -> ((# #) -> r) -> r
FeedbackValue_NOT_USEFUL = FeedbackValue' "NOT_USEFUL"

pattern FeedbackValue_USEFUL :: FeedbackValue
pattern $bFeedbackValue_USEFUL :: FeedbackValue
$mFeedbackValue_USEFUL :: forall {r}. FeedbackValue -> ((# #) -> r) -> ((# #) -> r) -> r
FeedbackValue_USEFUL = FeedbackValue' "USEFUL"

{-# COMPLETE
  FeedbackValue_NOT_SPECIFIED,
  FeedbackValue_NOT_USEFUL,
  FeedbackValue_USEFUL,
  FeedbackValue'
  #-}