{-# 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.CloudWatch.Types.AnomalyDetectorStateValue
-- 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.CloudWatch.Types.AnomalyDetectorStateValue
  ( AnomalyDetectorStateValue
      ( ..,
        AnomalyDetectorStateValue_PENDING_TRAINING,
        AnomalyDetectorStateValue_TRAINED,
        AnomalyDetectorStateValue_TRAINED_INSUFFICIENT_DATA
      ),
  )
where

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

newtype AnomalyDetectorStateValue = AnomalyDetectorStateValue'
  { AnomalyDetectorStateValue -> Text
fromAnomalyDetectorStateValue ::
      Data.Text
  }
  deriving stock
    ( Int -> AnomalyDetectorStateValue -> ShowS
[AnomalyDetectorStateValue] -> ShowS
AnomalyDetectorStateValue -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq AnomalyDetectorStateValue
Int -> AnomalyDetectorStateValue -> Int
AnomalyDetectorStateValue -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: AnomalyDetectorStateValue -> ()
$crnf :: AnomalyDetectorStateValue -> ()
Prelude.NFData,
      Text -> Either String AnomalyDetectorStateValue
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AnomalyDetectorStateValue
$cfromText :: Text -> Either String AnomalyDetectorStateValue
Data.FromText,
      AnomalyDetectorStateValue -> Text
forall a. (a -> Text) -> ToText a
toText :: AnomalyDetectorStateValue -> Text
$ctoText :: AnomalyDetectorStateValue -> Text
Data.ToText,
      AnomalyDetectorStateValue -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: AnomalyDetectorStateValue -> ByteString
$ctoBS :: AnomalyDetectorStateValue -> ByteString
Data.ToByteString,
      AnomalyDetectorStateValue -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AnomalyDetectorStateValue -> ByteStringBuilder
$cbuild :: AnomalyDetectorStateValue -> ByteStringBuilder
Data.ToLog,
      HeaderName -> AnomalyDetectorStateValue -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AnomalyDetectorStateValue -> [Header]
$ctoHeader :: HeaderName -> AnomalyDetectorStateValue -> [Header]
Data.ToHeader,
      AnomalyDetectorStateValue -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AnomalyDetectorStateValue -> QueryString
$ctoQuery :: AnomalyDetectorStateValue -> QueryString
Data.ToQuery,
      Value -> Parser [AnomalyDetectorStateValue]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [AnomalyDetectorStateValue]
FromJSONKeyFunction AnomalyDetectorStateValue
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AnomalyDetectorStateValue]
$cfromJSONKeyList :: FromJSONKeyFunction [AnomalyDetectorStateValue]
fromJSONKey :: FromJSONKeyFunction AnomalyDetectorStateValue
$cfromJSONKey :: FromJSONKeyFunction AnomalyDetectorStateValue
Data.FromJSONKey,
      [AnomalyDetectorStateValue] -> Encoding
[AnomalyDetectorStateValue] -> Value
AnomalyDetectorStateValue -> Encoding
AnomalyDetectorStateValue -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [AnomalyDetectorStateValue]
ToJSONKeyFunction AnomalyDetectorStateValue
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AnomalyDetectorStateValue]
$ctoJSONKeyList :: ToJSONKeyFunction [AnomalyDetectorStateValue]
toJSONKey :: ToJSONKeyFunction AnomalyDetectorStateValue
$ctoJSONKey :: ToJSONKeyFunction AnomalyDetectorStateValue
Data.ToJSONKey,
      [Node] -> Either String AnomalyDetectorStateValue
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AnomalyDetectorStateValue
$cparseXML :: [Node] -> Either String AnomalyDetectorStateValue
Data.FromXML,
      AnomalyDetectorStateValue -> XML
forall a. (a -> XML) -> ToXML a
toXML :: AnomalyDetectorStateValue -> XML
$ctoXML :: AnomalyDetectorStateValue -> XML
Data.ToXML
    )

pattern AnomalyDetectorStateValue_PENDING_TRAINING :: AnomalyDetectorStateValue
pattern $bAnomalyDetectorStateValue_PENDING_TRAINING :: AnomalyDetectorStateValue
$mAnomalyDetectorStateValue_PENDING_TRAINING :: forall {r}.
AnomalyDetectorStateValue -> ((# #) -> r) -> ((# #) -> r) -> r
AnomalyDetectorStateValue_PENDING_TRAINING = AnomalyDetectorStateValue' "PENDING_TRAINING"

pattern AnomalyDetectorStateValue_TRAINED :: AnomalyDetectorStateValue
pattern $bAnomalyDetectorStateValue_TRAINED :: AnomalyDetectorStateValue
$mAnomalyDetectorStateValue_TRAINED :: forall {r}.
AnomalyDetectorStateValue -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> r) -> r
AnomalyDetectorStateValue_TRAINED_INSUFFICIENT_DATA = AnomalyDetectorStateValue' "TRAINED_INSUFFICIENT_DATA"

{-# COMPLETE
  AnomalyDetectorStateValue_PENDING_TRAINING,
  AnomalyDetectorStateValue_TRAINED,
  AnomalyDetectorStateValue_TRAINED_INSUFFICIENT_DATA,
  AnomalyDetectorStateValue'
  #-}