{-# 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.EMR.Types.NotebookExecutionStatus
-- 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.EMR.Types.NotebookExecutionStatus
  ( NotebookExecutionStatus
      ( ..,
        NotebookExecutionStatus_FAILED,
        NotebookExecutionStatus_FAILING,
        NotebookExecutionStatus_FINISHED,
        NotebookExecutionStatus_FINISHING,
        NotebookExecutionStatus_RUNNING,
        NotebookExecutionStatus_STARTING,
        NotebookExecutionStatus_START_PENDING,
        NotebookExecutionStatus_STOPPED,
        NotebookExecutionStatus_STOPPING,
        NotebookExecutionStatus_STOP_PENDING
      ),
  )
where

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

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

pattern NotebookExecutionStatus_FAILED :: NotebookExecutionStatus
pattern $bNotebookExecutionStatus_FAILED :: NotebookExecutionStatus
$mNotebookExecutionStatus_FAILED :: forall {r}.
NotebookExecutionStatus -> ((# #) -> r) -> ((# #) -> r) -> r
NotebookExecutionStatus_FAILED = NotebookExecutionStatus' "FAILED"

pattern NotebookExecutionStatus_FAILING :: NotebookExecutionStatus
pattern $bNotebookExecutionStatus_FAILING :: NotebookExecutionStatus
$mNotebookExecutionStatus_FAILING :: forall {r}.
NotebookExecutionStatus -> ((# #) -> r) -> ((# #) -> r) -> r
NotebookExecutionStatus_FAILING = NotebookExecutionStatus' "FAILING"

pattern NotebookExecutionStatus_FINISHED :: NotebookExecutionStatus
pattern $bNotebookExecutionStatus_FINISHED :: NotebookExecutionStatus
$mNotebookExecutionStatus_FINISHED :: forall {r}.
NotebookExecutionStatus -> ((# #) -> r) -> ((# #) -> r) -> r
NotebookExecutionStatus_FINISHED = NotebookExecutionStatus' "FINISHED"

pattern NotebookExecutionStatus_FINISHING :: NotebookExecutionStatus
pattern $bNotebookExecutionStatus_FINISHING :: NotebookExecutionStatus
$mNotebookExecutionStatus_FINISHING :: forall {r}.
NotebookExecutionStatus -> ((# #) -> r) -> ((# #) -> r) -> r
NotebookExecutionStatus_FINISHING = NotebookExecutionStatus' "FINISHING"

pattern NotebookExecutionStatus_RUNNING :: NotebookExecutionStatus
pattern $bNotebookExecutionStatus_RUNNING :: NotebookExecutionStatus
$mNotebookExecutionStatus_RUNNING :: forall {r}.
NotebookExecutionStatus -> ((# #) -> r) -> ((# #) -> r) -> r
NotebookExecutionStatus_RUNNING = NotebookExecutionStatus' "RUNNING"

pattern NotebookExecutionStatus_STARTING :: NotebookExecutionStatus
pattern $bNotebookExecutionStatus_STARTING :: NotebookExecutionStatus
$mNotebookExecutionStatus_STARTING :: forall {r}.
NotebookExecutionStatus -> ((# #) -> r) -> ((# #) -> r) -> r
NotebookExecutionStatus_STARTING = NotebookExecutionStatus' "STARTING"

pattern NotebookExecutionStatus_START_PENDING :: NotebookExecutionStatus
pattern $bNotebookExecutionStatus_START_PENDING :: NotebookExecutionStatus
$mNotebookExecutionStatus_START_PENDING :: forall {r}.
NotebookExecutionStatus -> ((# #) -> r) -> ((# #) -> r) -> r
NotebookExecutionStatus_START_PENDING = NotebookExecutionStatus' "START_PENDING"

pattern NotebookExecutionStatus_STOPPED :: NotebookExecutionStatus
pattern $bNotebookExecutionStatus_STOPPED :: NotebookExecutionStatus
$mNotebookExecutionStatus_STOPPED :: forall {r}.
NotebookExecutionStatus -> ((# #) -> r) -> ((# #) -> r) -> r
NotebookExecutionStatus_STOPPED = NotebookExecutionStatus' "STOPPED"

pattern NotebookExecutionStatus_STOPPING :: NotebookExecutionStatus
pattern $bNotebookExecutionStatus_STOPPING :: NotebookExecutionStatus
$mNotebookExecutionStatus_STOPPING :: forall {r}.
NotebookExecutionStatus -> ((# #) -> r) -> ((# #) -> r) -> r
NotebookExecutionStatus_STOPPING = NotebookExecutionStatus' "STOPPING"

pattern NotebookExecutionStatus_STOP_PENDING :: NotebookExecutionStatus
pattern $bNotebookExecutionStatus_STOP_PENDING :: NotebookExecutionStatus
$mNotebookExecutionStatus_STOP_PENDING :: forall {r}.
NotebookExecutionStatus -> ((# #) -> r) -> ((# #) -> r) -> r
NotebookExecutionStatus_STOP_PENDING = NotebookExecutionStatus' "STOP_PENDING"

{-# COMPLETE
  NotebookExecutionStatus_FAILED,
  NotebookExecutionStatus_FAILING,
  NotebookExecutionStatus_FINISHED,
  NotebookExecutionStatus_FINISHING,
  NotebookExecutionStatus_RUNNING,
  NotebookExecutionStatus_STARTING,
  NotebookExecutionStatus_START_PENDING,
  NotebookExecutionStatus_STOPPED,
  NotebookExecutionStatus_STOPPING,
  NotebookExecutionStatus_STOP_PENDING,
  NotebookExecutionStatus'
  #-}