{-# 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.LookoutMetrics.Types.AnomalyDetectorFailureType
-- 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.LookoutMetrics.Types.AnomalyDetectorFailureType
  ( AnomalyDetectorFailureType
      ( ..,
        AnomalyDetectorFailureType_ACTIVATION_FAILURE,
        AnomalyDetectorFailureType_BACK_TEST_ACTIVATION_FAILURE,
        AnomalyDetectorFailureType_DEACTIVATION_FAILURE,
        AnomalyDetectorFailureType_DELETION_FAILURE
      ),
  )
where

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

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

pattern AnomalyDetectorFailureType_ACTIVATION_FAILURE :: AnomalyDetectorFailureType
pattern $bAnomalyDetectorFailureType_ACTIVATION_FAILURE :: AnomalyDetectorFailureType
$mAnomalyDetectorFailureType_ACTIVATION_FAILURE :: forall {r}.
AnomalyDetectorFailureType -> ((# #) -> r) -> ((# #) -> r) -> r
AnomalyDetectorFailureType_ACTIVATION_FAILURE = AnomalyDetectorFailureType' "ACTIVATION_FAILURE"

pattern AnomalyDetectorFailureType_BACK_TEST_ACTIVATION_FAILURE :: AnomalyDetectorFailureType
pattern $bAnomalyDetectorFailureType_BACK_TEST_ACTIVATION_FAILURE :: AnomalyDetectorFailureType
$mAnomalyDetectorFailureType_BACK_TEST_ACTIVATION_FAILURE :: forall {r}.
AnomalyDetectorFailureType -> ((# #) -> r) -> ((# #) -> r) -> r
AnomalyDetectorFailureType_BACK_TEST_ACTIVATION_FAILURE = AnomalyDetectorFailureType' "BACK_TEST_ACTIVATION_FAILURE"

pattern AnomalyDetectorFailureType_DEACTIVATION_FAILURE :: AnomalyDetectorFailureType
pattern $bAnomalyDetectorFailureType_DEACTIVATION_FAILURE :: AnomalyDetectorFailureType
$mAnomalyDetectorFailureType_DEACTIVATION_FAILURE :: forall {r}.
AnomalyDetectorFailureType -> ((# #) -> r) -> ((# #) -> r) -> r
AnomalyDetectorFailureType_DEACTIVATION_FAILURE = AnomalyDetectorFailureType' "DEACTIVATION_FAILURE"

pattern AnomalyDetectorFailureType_DELETION_FAILURE :: AnomalyDetectorFailureType
pattern $bAnomalyDetectorFailureType_DELETION_FAILURE :: AnomalyDetectorFailureType
$mAnomalyDetectorFailureType_DELETION_FAILURE :: forall {r}.
AnomalyDetectorFailureType -> ((# #) -> r) -> ((# #) -> r) -> r
AnomalyDetectorFailureType_DELETION_FAILURE = AnomalyDetectorFailureType' "DELETION_FAILURE"

{-# COMPLETE
  AnomalyDetectorFailureType_ACTIVATION_FAILURE,
  AnomalyDetectorFailureType_BACK_TEST_ACTIVATION_FAILURE,
  AnomalyDetectorFailureType_DEACTIVATION_FAILURE,
  AnomalyDetectorFailureType_DELETION_FAILURE,
  AnomalyDetectorFailureType'
  #-}