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

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

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

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

{-# COMPLETE
  FeedbackKey_INSIGHTS_FEEDBACK,
  FeedbackKey'
  #-}