{-# 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-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.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.Prelude as Prelude

newtype NotebookExecutionStatus = NotebookExecutionStatus'
  { NotebookExecutionStatus -> Text
fromNotebookExecutionStatus ::
      Core.Text
  }
  deriving stock
    ( Int -> NotebookExecutionStatus -> ShowS
[NotebookExecutionStatus] -> ShowS
NotebookExecutionStatus -> String
(Int -> NotebookExecutionStatus -> ShowS)
-> (NotebookExecutionStatus -> String)
-> ([NotebookExecutionStatus] -> ShowS)
-> Show NotebookExecutionStatus
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]
(Int -> ReadS NotebookExecutionStatus)
-> ReadS [NotebookExecutionStatus]
-> ReadPrec NotebookExecutionStatus
-> ReadPrec [NotebookExecutionStatus]
-> Read 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
(NotebookExecutionStatus -> NotebookExecutionStatus -> Bool)
-> (NotebookExecutionStatus -> NotebookExecutionStatus -> Bool)
-> Eq NotebookExecutionStatus
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
Eq NotebookExecutionStatus
-> (NotebookExecutionStatus -> NotebookExecutionStatus -> Ordering)
-> (NotebookExecutionStatus -> NotebookExecutionStatus -> Bool)
-> (NotebookExecutionStatus -> NotebookExecutionStatus -> Bool)
-> (NotebookExecutionStatus -> NotebookExecutionStatus -> Bool)
-> (NotebookExecutionStatus -> NotebookExecutionStatus -> Bool)
-> (NotebookExecutionStatus
    -> NotebookExecutionStatus -> NotebookExecutionStatus)
-> (NotebookExecutionStatus
    -> NotebookExecutionStatus -> NotebookExecutionStatus)
-> Ord 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
$cp1Ord :: Eq NotebookExecutionStatus
Prelude.Ord,
      (forall x.
 NotebookExecutionStatus -> Rep NotebookExecutionStatus x)
-> (forall x.
    Rep NotebookExecutionStatus x -> NotebookExecutionStatus)
-> Generic NotebookExecutionStatus
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
    ( Int -> NotebookExecutionStatus -> Int
NotebookExecutionStatus -> Int
(Int -> NotebookExecutionStatus -> Int)
-> (NotebookExecutionStatus -> Int)
-> Hashable NotebookExecutionStatus
forall 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 -> ()
(NotebookExecutionStatus -> ()) -> NFData NotebookExecutionStatus
forall a. (a -> ()) -> NFData a
rnf :: NotebookExecutionStatus -> ()
$crnf :: NotebookExecutionStatus -> ()
Prelude.NFData,
      Text -> Either String NotebookExecutionStatus
(Text -> Either String NotebookExecutionStatus)
-> FromText NotebookExecutionStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String NotebookExecutionStatus
$cfromText :: Text -> Either String NotebookExecutionStatus
Core.FromText,
      NotebookExecutionStatus -> Text
(NotebookExecutionStatus -> Text) -> ToText NotebookExecutionStatus
forall a. (a -> Text) -> ToText a
toText :: NotebookExecutionStatus -> Text
$ctoText :: NotebookExecutionStatus -> Text
Core.ToText,
      NotebookExecutionStatus -> ByteString
(NotebookExecutionStatus -> ByteString)
-> ToByteString NotebookExecutionStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: NotebookExecutionStatus -> ByteString
$ctoBS :: NotebookExecutionStatus -> ByteString
Core.ToByteString,
      NotebookExecutionStatus -> ByteStringBuilder
(NotebookExecutionStatus -> ByteStringBuilder)
-> ToLog NotebookExecutionStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: NotebookExecutionStatus -> ByteStringBuilder
$cbuild :: NotebookExecutionStatus -> ByteStringBuilder
Core.ToLog,
      HeaderName -> NotebookExecutionStatus -> [Header]
(HeaderName -> NotebookExecutionStatus -> [Header])
-> ToHeader NotebookExecutionStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> NotebookExecutionStatus -> [Header]
$ctoHeader :: HeaderName -> NotebookExecutionStatus -> [Header]
Core.ToHeader,
      NotebookExecutionStatus -> QueryString
(NotebookExecutionStatus -> QueryString)
-> ToQuery NotebookExecutionStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: NotebookExecutionStatus -> QueryString
$ctoQuery :: NotebookExecutionStatus -> QueryString
Core.ToQuery,
      Value -> Parser [NotebookExecutionStatus]
Value -> Parser NotebookExecutionStatus
(Value -> Parser NotebookExecutionStatus)
-> (Value -> Parser [NotebookExecutionStatus])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [NotebookExecutionStatus]
FromJSONKeyFunction NotebookExecutionStatus
FromJSONKeyFunction NotebookExecutionStatus
-> FromJSONKeyFunction [NotebookExecutionStatus]
-> FromJSONKey NotebookExecutionStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [NotebookExecutionStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [NotebookExecutionStatus]
fromJSONKey :: FromJSONKeyFunction NotebookExecutionStatus
$cfromJSONKey :: FromJSONKeyFunction NotebookExecutionStatus
Core.FromJSONKey,
      [NotebookExecutionStatus] -> Encoding
[NotebookExecutionStatus] -> Value
NotebookExecutionStatus -> Encoding
NotebookExecutionStatus -> Value
(NotebookExecutionStatus -> Value)
-> (NotebookExecutionStatus -> Encoding)
-> ([NotebookExecutionStatus] -> Value)
-> ([NotebookExecutionStatus] -> Encoding)
-> ToJSON NotebookExecutionStatus
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
Core.ToJSON,
      ToJSONKeyFunction [NotebookExecutionStatus]
ToJSONKeyFunction NotebookExecutionStatus
ToJSONKeyFunction NotebookExecutionStatus
-> ToJSONKeyFunction [NotebookExecutionStatus]
-> ToJSONKey NotebookExecutionStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [NotebookExecutionStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [NotebookExecutionStatus]
toJSONKey :: ToJSONKeyFunction NotebookExecutionStatus
$ctoJSONKey :: ToJSONKeyFunction NotebookExecutionStatus
Core.ToJSONKey,
      [Node] -> Either String NotebookExecutionStatus
([Node] -> Either String NotebookExecutionStatus)
-> FromXML NotebookExecutionStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String NotebookExecutionStatus
$cparseXML :: [Node] -> Either String NotebookExecutionStatus
Core.FromXML,
      NotebookExecutionStatus -> XML
(NotebookExecutionStatus -> XML) -> ToXML NotebookExecutionStatus
forall a. (a -> XML) -> ToXML a
toXML :: NotebookExecutionStatus -> XML
$ctoXML :: NotebookExecutionStatus -> XML
Core.ToXML
    )

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

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

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

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

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

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

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

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

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

pattern NotebookExecutionStatus_STOP_PENDING :: NotebookExecutionStatus
pattern $bNotebookExecutionStatus_STOP_PENDING :: NotebookExecutionStatus
$mNotebookExecutionStatus_STOP_PENDING :: forall r.
NotebookExecutionStatus -> (Void# -> r) -> (Void# -> 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'
  #-}