{-# 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.FeedbackKey
-- 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.FeedbackKey
  ( FeedbackKey
      ( ..,
        FeedbackKey_INSIGHTS_FEEDBACK
      ),
  )
where

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

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

pattern FeedbackKey_INSIGHTS_FEEDBACK :: FeedbackKey
pattern $bFeedbackKey_INSIGHTS_FEEDBACK :: FeedbackKey
$mFeedbackKey_INSIGHTS_FEEDBACK :: forall {r}. FeedbackKey -> ((# #) -> r) -> ((# #) -> r) -> r
FeedbackKey_INSIGHTS_FEEDBACK = FeedbackKey' "INSIGHTS_FEEDBACK"

{-# COMPLETE
  FeedbackKey_INSIGHTS_FEEDBACK,
  FeedbackKey'
  #-}