{-# 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.LookoutEquipment.Types.InferenceExecutionStatus
-- 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.LookoutEquipment.Types.InferenceExecutionStatus
  ( InferenceExecutionStatus
      ( ..,
        InferenceExecutionStatus_FAILED,
        InferenceExecutionStatus_IN_PROGRESS,
        InferenceExecutionStatus_SUCCESS
      ),
  )
where

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

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

pattern InferenceExecutionStatus_FAILED :: InferenceExecutionStatus
pattern $bInferenceExecutionStatus_FAILED :: InferenceExecutionStatus
$mInferenceExecutionStatus_FAILED :: forall r.
InferenceExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
InferenceExecutionStatus_FAILED = InferenceExecutionStatus' "FAILED"

pattern InferenceExecutionStatus_IN_PROGRESS :: InferenceExecutionStatus
pattern $bInferenceExecutionStatus_IN_PROGRESS :: InferenceExecutionStatus
$mInferenceExecutionStatus_IN_PROGRESS :: forall r.
InferenceExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
InferenceExecutionStatus_IN_PROGRESS = InferenceExecutionStatus' "IN_PROGRESS"

pattern InferenceExecutionStatus_SUCCESS :: InferenceExecutionStatus
pattern $bInferenceExecutionStatus_SUCCESS :: InferenceExecutionStatus
$mInferenceExecutionStatus_SUCCESS :: forall r.
InferenceExecutionStatus -> (Void# -> r) -> (Void# -> r) -> r
InferenceExecutionStatus_SUCCESS = InferenceExecutionStatus' "SUCCESS"

{-# COMPLETE
  InferenceExecutionStatus_FAILED,
  InferenceExecutionStatus_IN_PROGRESS,
  InferenceExecutionStatus_SUCCESS,
  InferenceExecutionStatus'
  #-}