{-# 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.AnomalyStatus
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.DevOpsGuru.Types.AnomalyStatus
  ( AnomalyStatus
      ( ..,
        AnomalyStatus_CLOSED,
        AnomalyStatus_ONGOING
      ),
  )
where

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

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

pattern AnomalyStatus_CLOSED :: AnomalyStatus
pattern $bAnomalyStatus_CLOSED :: AnomalyStatus
$mAnomalyStatus_CLOSED :: forall r. AnomalyStatus -> (Void# -> r) -> (Void# -> r) -> r
AnomalyStatus_CLOSED = AnomalyStatus' "CLOSED"

pattern AnomalyStatus_ONGOING :: AnomalyStatus
pattern $bAnomalyStatus_ONGOING :: AnomalyStatus
$mAnomalyStatus_ONGOING :: forall r. AnomalyStatus -> (Void# -> r) -> (Void# -> r) -> r
AnomalyStatus_ONGOING = AnomalyStatus' "ONGOING"

{-# COMPLETE
  AnomalyStatus_CLOSED,
  AnomalyStatus_ONGOING,
  AnomalyStatus'
  #-}