{-# 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.AnomalyType
-- 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.DevOpsGuru.Types.AnomalyType
  ( AnomalyType
      ( ..,
        AnomalyType_CAUSAL,
        AnomalyType_CONTEXTUAL
      ),
  )
where

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

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

pattern AnomalyType_CAUSAL :: AnomalyType
pattern $bAnomalyType_CAUSAL :: AnomalyType
$mAnomalyType_CAUSAL :: forall {r}. AnomalyType -> ((# #) -> r) -> ((# #) -> r) -> r
AnomalyType_CAUSAL = AnomalyType' "CAUSAL"

pattern AnomalyType_CONTEXTUAL :: AnomalyType
pattern $bAnomalyType_CONTEXTUAL :: AnomalyType
$mAnomalyType_CONTEXTUAL :: forall {r}. AnomalyType -> ((# #) -> r) -> ((# #) -> r) -> r
AnomalyType_CONTEXTUAL = AnomalyType' "CONTEXTUAL"

{-# COMPLETE
  AnomalyType_CAUSAL,
  AnomalyType_CONTEXTUAL,
  AnomalyType'
  #-}