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