{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.CloudWatch.Types.AnomalyDetectorStateValue
( AnomalyDetectorStateValue
( ..,
AnomalyDetectorStateValue_PENDING_TRAINING,
AnomalyDetectorStateValue_TRAINED,
AnomalyDetectorStateValue_TRAINED_INSUFFICIENT_DATA
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype AnomalyDetectorStateValue = AnomalyDetectorStateValue'
{ AnomalyDetectorStateValue -> Text
fromAnomalyDetectorStateValue ::
Core.Text
}
deriving stock
( Int -> AnomalyDetectorStateValue -> ShowS
[AnomalyDetectorStateValue] -> ShowS
AnomalyDetectorStateValue -> String
(Int -> AnomalyDetectorStateValue -> ShowS)
-> (AnomalyDetectorStateValue -> String)
-> ([AnomalyDetectorStateValue] -> ShowS)
-> Show AnomalyDetectorStateValue
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AnomalyDetectorStateValue] -> ShowS
$cshowList :: [AnomalyDetectorStateValue] -> ShowS
show :: AnomalyDetectorStateValue -> String
$cshow :: AnomalyDetectorStateValue -> String
showsPrec :: Int -> AnomalyDetectorStateValue -> ShowS
$cshowsPrec :: Int -> AnomalyDetectorStateValue -> ShowS
Prelude.Show,
ReadPrec [AnomalyDetectorStateValue]
ReadPrec AnomalyDetectorStateValue
Int -> ReadS AnomalyDetectorStateValue
ReadS [AnomalyDetectorStateValue]
(Int -> ReadS AnomalyDetectorStateValue)
-> ReadS [AnomalyDetectorStateValue]
-> ReadPrec AnomalyDetectorStateValue
-> ReadPrec [AnomalyDetectorStateValue]
-> Read AnomalyDetectorStateValue
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AnomalyDetectorStateValue]
$creadListPrec :: ReadPrec [AnomalyDetectorStateValue]
readPrec :: ReadPrec AnomalyDetectorStateValue
$creadPrec :: ReadPrec AnomalyDetectorStateValue
readList :: ReadS [AnomalyDetectorStateValue]
$creadList :: ReadS [AnomalyDetectorStateValue]
readsPrec :: Int -> ReadS AnomalyDetectorStateValue
$creadsPrec :: Int -> ReadS AnomalyDetectorStateValue
Prelude.Read,
AnomalyDetectorStateValue -> AnomalyDetectorStateValue -> Bool
(AnomalyDetectorStateValue -> AnomalyDetectorStateValue -> Bool)
-> (AnomalyDetectorStateValue -> AnomalyDetectorStateValue -> Bool)
-> Eq AnomalyDetectorStateValue
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AnomalyDetectorStateValue -> AnomalyDetectorStateValue -> Bool
$c/= :: AnomalyDetectorStateValue -> AnomalyDetectorStateValue -> Bool
== :: AnomalyDetectorStateValue -> AnomalyDetectorStateValue -> Bool
$c== :: AnomalyDetectorStateValue -> AnomalyDetectorStateValue -> Bool
Prelude.Eq,
Eq AnomalyDetectorStateValue
Eq AnomalyDetectorStateValue
-> (AnomalyDetectorStateValue
-> AnomalyDetectorStateValue -> Ordering)
-> (AnomalyDetectorStateValue -> AnomalyDetectorStateValue -> Bool)
-> (AnomalyDetectorStateValue -> AnomalyDetectorStateValue -> Bool)
-> (AnomalyDetectorStateValue -> AnomalyDetectorStateValue -> Bool)
-> (AnomalyDetectorStateValue -> AnomalyDetectorStateValue -> Bool)
-> (AnomalyDetectorStateValue
-> AnomalyDetectorStateValue -> AnomalyDetectorStateValue)
-> (AnomalyDetectorStateValue
-> AnomalyDetectorStateValue -> AnomalyDetectorStateValue)
-> Ord AnomalyDetectorStateValue
AnomalyDetectorStateValue -> AnomalyDetectorStateValue -> Bool
AnomalyDetectorStateValue -> AnomalyDetectorStateValue -> Ordering
AnomalyDetectorStateValue
-> AnomalyDetectorStateValue -> AnomalyDetectorStateValue
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 :: AnomalyDetectorStateValue
-> AnomalyDetectorStateValue -> AnomalyDetectorStateValue
$cmin :: AnomalyDetectorStateValue
-> AnomalyDetectorStateValue -> AnomalyDetectorStateValue
max :: AnomalyDetectorStateValue
-> AnomalyDetectorStateValue -> AnomalyDetectorStateValue
$cmax :: AnomalyDetectorStateValue
-> AnomalyDetectorStateValue -> AnomalyDetectorStateValue
>= :: AnomalyDetectorStateValue -> AnomalyDetectorStateValue -> Bool
$c>= :: AnomalyDetectorStateValue -> AnomalyDetectorStateValue -> Bool
> :: AnomalyDetectorStateValue -> AnomalyDetectorStateValue -> Bool
$c> :: AnomalyDetectorStateValue -> AnomalyDetectorStateValue -> Bool
<= :: AnomalyDetectorStateValue -> AnomalyDetectorStateValue -> Bool
$c<= :: AnomalyDetectorStateValue -> AnomalyDetectorStateValue -> Bool
< :: AnomalyDetectorStateValue -> AnomalyDetectorStateValue -> Bool
$c< :: AnomalyDetectorStateValue -> AnomalyDetectorStateValue -> Bool
compare :: AnomalyDetectorStateValue -> AnomalyDetectorStateValue -> Ordering
$ccompare :: AnomalyDetectorStateValue -> AnomalyDetectorStateValue -> Ordering
$cp1Ord :: Eq AnomalyDetectorStateValue
Prelude.Ord,
(forall x.
AnomalyDetectorStateValue -> Rep AnomalyDetectorStateValue x)
-> (forall x.
Rep AnomalyDetectorStateValue x -> AnomalyDetectorStateValue)
-> Generic AnomalyDetectorStateValue
forall x.
Rep AnomalyDetectorStateValue x -> AnomalyDetectorStateValue
forall x.
AnomalyDetectorStateValue -> Rep AnomalyDetectorStateValue x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AnomalyDetectorStateValue x -> AnomalyDetectorStateValue
$cfrom :: forall x.
AnomalyDetectorStateValue -> Rep AnomalyDetectorStateValue x
Prelude.Generic
)
deriving newtype
( Int -> AnomalyDetectorStateValue -> Int
AnomalyDetectorStateValue -> Int
(Int -> AnomalyDetectorStateValue -> Int)
-> (AnomalyDetectorStateValue -> Int)
-> Hashable AnomalyDetectorStateValue
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: AnomalyDetectorStateValue -> Int
$chash :: AnomalyDetectorStateValue -> Int
hashWithSalt :: Int -> AnomalyDetectorStateValue -> Int
$chashWithSalt :: Int -> AnomalyDetectorStateValue -> Int
Prelude.Hashable,
AnomalyDetectorStateValue -> ()
(AnomalyDetectorStateValue -> ())
-> NFData AnomalyDetectorStateValue
forall a. (a -> ()) -> NFData a
rnf :: AnomalyDetectorStateValue -> ()
$crnf :: AnomalyDetectorStateValue -> ()
Prelude.NFData,
Text -> Either String AnomalyDetectorStateValue
(Text -> Either String AnomalyDetectorStateValue)
-> FromText AnomalyDetectorStateValue
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AnomalyDetectorStateValue
$cfromText :: Text -> Either String AnomalyDetectorStateValue
Core.FromText,
AnomalyDetectorStateValue -> Text
(AnomalyDetectorStateValue -> Text)
-> ToText AnomalyDetectorStateValue
forall a. (a -> Text) -> ToText a
toText :: AnomalyDetectorStateValue -> Text
$ctoText :: AnomalyDetectorStateValue -> Text
Core.ToText,
AnomalyDetectorStateValue -> ByteString
(AnomalyDetectorStateValue -> ByteString)
-> ToByteString AnomalyDetectorStateValue
forall a. (a -> ByteString) -> ToByteString a
toBS :: AnomalyDetectorStateValue -> ByteString
$ctoBS :: AnomalyDetectorStateValue -> ByteString
Core.ToByteString,
AnomalyDetectorStateValue -> ByteStringBuilder
(AnomalyDetectorStateValue -> ByteStringBuilder)
-> ToLog AnomalyDetectorStateValue
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AnomalyDetectorStateValue -> ByteStringBuilder
$cbuild :: AnomalyDetectorStateValue -> ByteStringBuilder
Core.ToLog,
HeaderName -> AnomalyDetectorStateValue -> [Header]
(HeaderName -> AnomalyDetectorStateValue -> [Header])
-> ToHeader AnomalyDetectorStateValue
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AnomalyDetectorStateValue -> [Header]
$ctoHeader :: HeaderName -> AnomalyDetectorStateValue -> [Header]
Core.ToHeader,
AnomalyDetectorStateValue -> QueryString
(AnomalyDetectorStateValue -> QueryString)
-> ToQuery AnomalyDetectorStateValue
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AnomalyDetectorStateValue -> QueryString
$ctoQuery :: AnomalyDetectorStateValue -> QueryString
Core.ToQuery,
Value -> Parser [AnomalyDetectorStateValue]
Value -> Parser AnomalyDetectorStateValue
(Value -> Parser AnomalyDetectorStateValue)
-> (Value -> Parser [AnomalyDetectorStateValue])
-> FromJSON AnomalyDetectorStateValue
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [AnomalyDetectorStateValue]
$cparseJSONList :: Value -> Parser [AnomalyDetectorStateValue]
parseJSON :: Value -> Parser AnomalyDetectorStateValue
$cparseJSON :: Value -> Parser AnomalyDetectorStateValue
Core.FromJSON,
FromJSONKeyFunction [AnomalyDetectorStateValue]
FromJSONKeyFunction AnomalyDetectorStateValue
FromJSONKeyFunction AnomalyDetectorStateValue
-> FromJSONKeyFunction [AnomalyDetectorStateValue]
-> FromJSONKey AnomalyDetectorStateValue
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AnomalyDetectorStateValue]
$cfromJSONKeyList :: FromJSONKeyFunction [AnomalyDetectorStateValue]
fromJSONKey :: FromJSONKeyFunction AnomalyDetectorStateValue
$cfromJSONKey :: FromJSONKeyFunction AnomalyDetectorStateValue
Core.FromJSONKey,
[AnomalyDetectorStateValue] -> Encoding
[AnomalyDetectorStateValue] -> Value
AnomalyDetectorStateValue -> Encoding
AnomalyDetectorStateValue -> Value
(AnomalyDetectorStateValue -> Value)
-> (AnomalyDetectorStateValue -> Encoding)
-> ([AnomalyDetectorStateValue] -> Value)
-> ([AnomalyDetectorStateValue] -> Encoding)
-> ToJSON AnomalyDetectorStateValue
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [AnomalyDetectorStateValue] -> Encoding
$ctoEncodingList :: [AnomalyDetectorStateValue] -> Encoding
toJSONList :: [AnomalyDetectorStateValue] -> Value
$ctoJSONList :: [AnomalyDetectorStateValue] -> Value
toEncoding :: AnomalyDetectorStateValue -> Encoding
$ctoEncoding :: AnomalyDetectorStateValue -> Encoding
toJSON :: AnomalyDetectorStateValue -> Value
$ctoJSON :: AnomalyDetectorStateValue -> Value
Core.ToJSON,
ToJSONKeyFunction [AnomalyDetectorStateValue]
ToJSONKeyFunction AnomalyDetectorStateValue
ToJSONKeyFunction AnomalyDetectorStateValue
-> ToJSONKeyFunction [AnomalyDetectorStateValue]
-> ToJSONKey AnomalyDetectorStateValue
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AnomalyDetectorStateValue]
$ctoJSONKeyList :: ToJSONKeyFunction [AnomalyDetectorStateValue]
toJSONKey :: ToJSONKeyFunction AnomalyDetectorStateValue
$ctoJSONKey :: ToJSONKeyFunction AnomalyDetectorStateValue
Core.ToJSONKey,
[Node] -> Either String AnomalyDetectorStateValue
([Node] -> Either String AnomalyDetectorStateValue)
-> FromXML AnomalyDetectorStateValue
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AnomalyDetectorStateValue
$cparseXML :: [Node] -> Either String AnomalyDetectorStateValue
Core.FromXML,
AnomalyDetectorStateValue -> XML
(AnomalyDetectorStateValue -> XML)
-> ToXML AnomalyDetectorStateValue
forall a. (a -> XML) -> ToXML a
toXML :: AnomalyDetectorStateValue -> XML
$ctoXML :: AnomalyDetectorStateValue -> XML
Core.ToXML
)
pattern AnomalyDetectorStateValue_PENDING_TRAINING :: AnomalyDetectorStateValue
pattern $bAnomalyDetectorStateValue_PENDING_TRAINING :: AnomalyDetectorStateValue
$mAnomalyDetectorStateValue_PENDING_TRAINING :: forall r.
AnomalyDetectorStateValue -> (Void# -> r) -> (Void# -> r) -> r
AnomalyDetectorStateValue_PENDING_TRAINING = AnomalyDetectorStateValue' "PENDING_TRAINING"
pattern AnomalyDetectorStateValue_TRAINED :: AnomalyDetectorStateValue
pattern $bAnomalyDetectorStateValue_TRAINED :: AnomalyDetectorStateValue
$mAnomalyDetectorStateValue_TRAINED :: forall r.
AnomalyDetectorStateValue -> (Void# -> r) -> (Void# -> r) -> r
AnomalyDetectorStateValue_TRAINED = AnomalyDetectorStateValue' "TRAINED"
pattern AnomalyDetectorStateValue_TRAINED_INSUFFICIENT_DATA :: AnomalyDetectorStateValue
pattern $bAnomalyDetectorStateValue_TRAINED_INSUFFICIENT_DATA :: AnomalyDetectorStateValue
$mAnomalyDetectorStateValue_TRAINED_INSUFFICIENT_DATA :: forall r.
AnomalyDetectorStateValue -> (Void# -> r) -> (Void# -> r) -> r
AnomalyDetectorStateValue_TRAINED_INSUFFICIENT_DATA = AnomalyDetectorStateValue' "TRAINED_INSUFFICIENT_DATA"
{-# COMPLETE
AnomalyDetectorStateValue_PENDING_TRAINING,
AnomalyDetectorStateValue_TRAINED,
AnomalyDetectorStateValue_TRAINED_INSUFFICIENT_DATA,
AnomalyDetectorStateValue'
#-}