{-# 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.CostExplorer.Types.AnomalyFeedbackType
-- 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.CostExplorer.Types.AnomalyFeedbackType
  ( AnomalyFeedbackType
      ( ..,
        AnomalyFeedbackType_NO,
        AnomalyFeedbackType_PLANNED_ACTIVITY,
        AnomalyFeedbackType_YES
      ),
  )
where

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

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

pattern AnomalyFeedbackType_NO :: AnomalyFeedbackType
pattern $bAnomalyFeedbackType_NO :: AnomalyFeedbackType
$mAnomalyFeedbackType_NO :: forall r. AnomalyFeedbackType -> (Void# -> r) -> (Void# -> r) -> r
AnomalyFeedbackType_NO = AnomalyFeedbackType' "NO"

pattern AnomalyFeedbackType_PLANNED_ACTIVITY :: AnomalyFeedbackType
pattern $bAnomalyFeedbackType_PLANNED_ACTIVITY :: AnomalyFeedbackType
$mAnomalyFeedbackType_PLANNED_ACTIVITY :: forall r. AnomalyFeedbackType -> (Void# -> r) -> (Void# -> r) -> r
AnomalyFeedbackType_PLANNED_ACTIVITY = AnomalyFeedbackType' "PLANNED_ACTIVITY"

pattern AnomalyFeedbackType_YES :: AnomalyFeedbackType
pattern $bAnomalyFeedbackType_YES :: AnomalyFeedbackType
$mAnomalyFeedbackType_YES :: forall r. AnomalyFeedbackType -> (Void# -> r) -> (Void# -> r) -> r
AnomalyFeedbackType_YES = AnomalyFeedbackType' "YES"

{-# COMPLETE
  AnomalyFeedbackType_NO,
  AnomalyFeedbackType_PLANNED_ACTIVITY,
  AnomalyFeedbackType_YES,
  AnomalyFeedbackType'
  #-}