{-# 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.IoTEvents.Types.AnalysisStatus
-- 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.IoTEvents.Types.AnalysisStatus
  ( AnalysisStatus
      ( ..,
        AnalysisStatus_COMPLETE,
        AnalysisStatus_FAILED,
        AnalysisStatus_RUNNING
      ),
  )
where

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

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

pattern AnalysisStatus_COMPLETE :: AnalysisStatus
pattern $bAnalysisStatus_COMPLETE :: AnalysisStatus
$mAnalysisStatus_COMPLETE :: forall r. AnalysisStatus -> (Void# -> r) -> (Void# -> r) -> r
AnalysisStatus_COMPLETE = AnalysisStatus' "COMPLETE"

pattern AnalysisStatus_FAILED :: AnalysisStatus
pattern $bAnalysisStatus_FAILED :: AnalysisStatus
$mAnalysisStatus_FAILED :: forall r. AnalysisStatus -> (Void# -> r) -> (Void# -> r) -> r
AnalysisStatus_FAILED = AnalysisStatus' "FAILED"

pattern AnalysisStatus_RUNNING :: AnalysisStatus
pattern $bAnalysisStatus_RUNNING :: AnalysisStatus
$mAnalysisStatus_RUNNING :: forall r. AnalysisStatus -> (Void# -> r) -> (Void# -> r) -> r
AnalysisStatus_RUNNING = AnalysisStatus' "RUNNING"

{-# COMPLETE
  AnalysisStatus_COMPLETE,
  AnalysisStatus_FAILED,
  AnalysisStatus_RUNNING,
  AnalysisStatus'
  #-}