{-# 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.AlertStatus
-- 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.AlertStatus
  ( AlertStatus
      ( ..,
        AlertStatus_ACTIVE,
        AlertStatus_INACTIVE
      ),
  )
where

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

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

pattern AlertStatus_ACTIVE :: AlertStatus
pattern $bAlertStatus_ACTIVE :: AlertStatus
$mAlertStatus_ACTIVE :: forall {r}. AlertStatus -> ((# #) -> r) -> ((# #) -> r) -> r
AlertStatus_ACTIVE = AlertStatus' "ACTIVE"

pattern AlertStatus_INACTIVE :: AlertStatus
pattern $bAlertStatus_INACTIVE :: AlertStatus
$mAlertStatus_INACTIVE :: forall {r}. AlertStatus -> ((# #) -> r) -> ((# #) -> r) -> r
AlertStatus_INACTIVE = AlertStatus' "INACTIVE"

{-# COMPLETE
  AlertStatus_ACTIVE,
  AlertStatus_INACTIVE,
  AlertStatus'
  #-}