{-# 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.InferenceSchedulerStatus
-- 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.InferenceSchedulerStatus
  ( InferenceSchedulerStatus
      ( ..,
        InferenceSchedulerStatus_PENDING,
        InferenceSchedulerStatus_RUNNING,
        InferenceSchedulerStatus_STOPPED,
        InferenceSchedulerStatus_STOPPING
      ),
  )
where

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

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

pattern InferenceSchedulerStatus_PENDING :: InferenceSchedulerStatus
pattern $bInferenceSchedulerStatus_PENDING :: InferenceSchedulerStatus
$mInferenceSchedulerStatus_PENDING :: forall r.
InferenceSchedulerStatus -> (Void# -> r) -> (Void# -> r) -> r
InferenceSchedulerStatus_PENDING = InferenceSchedulerStatus' "PENDING"

pattern InferenceSchedulerStatus_RUNNING :: InferenceSchedulerStatus
pattern $bInferenceSchedulerStatus_RUNNING :: InferenceSchedulerStatus
$mInferenceSchedulerStatus_RUNNING :: forall r.
InferenceSchedulerStatus -> (Void# -> r) -> (Void# -> r) -> r
InferenceSchedulerStatus_RUNNING = InferenceSchedulerStatus' "RUNNING"

pattern InferenceSchedulerStatus_STOPPED :: InferenceSchedulerStatus
pattern $bInferenceSchedulerStatus_STOPPED :: InferenceSchedulerStatus
$mInferenceSchedulerStatus_STOPPED :: forall r.
InferenceSchedulerStatus -> (Void# -> r) -> (Void# -> r) -> r
InferenceSchedulerStatus_STOPPED = InferenceSchedulerStatus' "STOPPED"

pattern InferenceSchedulerStatus_STOPPING :: InferenceSchedulerStatus
pattern $bInferenceSchedulerStatus_STOPPING :: InferenceSchedulerStatus
$mInferenceSchedulerStatus_STOPPING :: forall r.
InferenceSchedulerStatus -> (Void# -> r) -> (Void# -> r) -> r
InferenceSchedulerStatus_STOPPING = InferenceSchedulerStatus' "STOPPING"

{-# COMPLETE
  InferenceSchedulerStatus_PENDING,
  InferenceSchedulerStatus_RUNNING,
  InferenceSchedulerStatus_STOPPED,
  InferenceSchedulerStatus_STOPPING,
  InferenceSchedulerStatus'
  #-}