{-# 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.DevOpsGuru.Types.InsightFeedbackOption
-- 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.DevOpsGuru.Types.InsightFeedbackOption
  ( InsightFeedbackOption
      ( ..,
        InsightFeedbackOption_ALERT_TOO_SENSITIVE,
        InsightFeedbackOption_DATA_INCORRECT,
        InsightFeedbackOption_DATA_NOISY_ANOMALY,
        InsightFeedbackOption_RECOMMENDATION_USEFUL,
        InsightFeedbackOption_VALID_COLLECTION
      ),
  )
where

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

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

pattern InsightFeedbackOption_ALERT_TOO_SENSITIVE :: InsightFeedbackOption
pattern $bInsightFeedbackOption_ALERT_TOO_SENSITIVE :: InsightFeedbackOption
$mInsightFeedbackOption_ALERT_TOO_SENSITIVE :: forall r.
InsightFeedbackOption -> (Void# -> r) -> (Void# -> r) -> r
InsightFeedbackOption_ALERT_TOO_SENSITIVE = InsightFeedbackOption' "ALERT_TOO_SENSITIVE"

pattern InsightFeedbackOption_DATA_INCORRECT :: InsightFeedbackOption
pattern $bInsightFeedbackOption_DATA_INCORRECT :: InsightFeedbackOption
$mInsightFeedbackOption_DATA_INCORRECT :: forall r.
InsightFeedbackOption -> (Void# -> r) -> (Void# -> r) -> r
InsightFeedbackOption_DATA_INCORRECT = InsightFeedbackOption' "DATA_INCORRECT"

pattern InsightFeedbackOption_DATA_NOISY_ANOMALY :: InsightFeedbackOption
pattern $bInsightFeedbackOption_DATA_NOISY_ANOMALY :: InsightFeedbackOption
$mInsightFeedbackOption_DATA_NOISY_ANOMALY :: forall r.
InsightFeedbackOption -> (Void# -> r) -> (Void# -> r) -> r
InsightFeedbackOption_DATA_NOISY_ANOMALY = InsightFeedbackOption' "DATA_NOISY_ANOMALY"

pattern InsightFeedbackOption_RECOMMENDATION_USEFUL :: InsightFeedbackOption
pattern $bInsightFeedbackOption_RECOMMENDATION_USEFUL :: InsightFeedbackOption
$mInsightFeedbackOption_RECOMMENDATION_USEFUL :: forall r.
InsightFeedbackOption -> (Void# -> r) -> (Void# -> r) -> r
InsightFeedbackOption_RECOMMENDATION_USEFUL = InsightFeedbackOption' "RECOMMENDATION_USEFUL"

pattern InsightFeedbackOption_VALID_COLLECTION :: InsightFeedbackOption
pattern $bInsightFeedbackOption_VALID_COLLECTION :: InsightFeedbackOption
$mInsightFeedbackOption_VALID_COLLECTION :: forall r.
InsightFeedbackOption -> (Void# -> r) -> (Void# -> r) -> r
InsightFeedbackOption_VALID_COLLECTION = InsightFeedbackOption' "VALID_COLLECTION"

{-# COMPLETE
  InsightFeedbackOption_ALERT_TOO_SENSITIVE,
  InsightFeedbackOption_DATA_INCORRECT,
  InsightFeedbackOption_DATA_NOISY_ANOMALY,
  InsightFeedbackOption_RECOMMENDATION_USEFUL,
  InsightFeedbackOption_VALID_COLLECTION,
  InsightFeedbackOption'
  #-}