{-# 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.SageMaker.Types.NotebookInstanceStatus
-- 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.SageMaker.Types.NotebookInstanceStatus
  ( NotebookInstanceStatus
      ( ..,
        NotebookInstanceStatus_Deleting,
        NotebookInstanceStatus_Failed,
        NotebookInstanceStatus_InService,
        NotebookInstanceStatus_Pending,
        NotebookInstanceStatus_Stopped,
        NotebookInstanceStatus_Stopping,
        NotebookInstanceStatus_Updating
      ),
  )
where

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

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

pattern NotebookInstanceStatus_Deleting :: NotebookInstanceStatus
pattern $bNotebookInstanceStatus_Deleting :: NotebookInstanceStatus
$mNotebookInstanceStatus_Deleting :: forall r.
NotebookInstanceStatus -> (Void# -> r) -> (Void# -> r) -> r
NotebookInstanceStatus_Deleting = NotebookInstanceStatus' "Deleting"

pattern NotebookInstanceStatus_Failed :: NotebookInstanceStatus
pattern $bNotebookInstanceStatus_Failed :: NotebookInstanceStatus
$mNotebookInstanceStatus_Failed :: forall r.
NotebookInstanceStatus -> (Void# -> r) -> (Void# -> r) -> r
NotebookInstanceStatus_Failed = NotebookInstanceStatus' "Failed"

pattern NotebookInstanceStatus_InService :: NotebookInstanceStatus
pattern $bNotebookInstanceStatus_InService :: NotebookInstanceStatus
$mNotebookInstanceStatus_InService :: forall r.
NotebookInstanceStatus -> (Void# -> r) -> (Void# -> r) -> r
NotebookInstanceStatus_InService = NotebookInstanceStatus' "InService"

pattern NotebookInstanceStatus_Pending :: NotebookInstanceStatus
pattern $bNotebookInstanceStatus_Pending :: NotebookInstanceStatus
$mNotebookInstanceStatus_Pending :: forall r.
NotebookInstanceStatus -> (Void# -> r) -> (Void# -> r) -> r
NotebookInstanceStatus_Pending = NotebookInstanceStatus' "Pending"

pattern NotebookInstanceStatus_Stopped :: NotebookInstanceStatus
pattern $bNotebookInstanceStatus_Stopped :: NotebookInstanceStatus
$mNotebookInstanceStatus_Stopped :: forall r.
NotebookInstanceStatus -> (Void# -> r) -> (Void# -> r) -> r
NotebookInstanceStatus_Stopped = NotebookInstanceStatus' "Stopped"

pattern NotebookInstanceStatus_Stopping :: NotebookInstanceStatus
pattern $bNotebookInstanceStatus_Stopping :: NotebookInstanceStatus
$mNotebookInstanceStatus_Stopping :: forall r.
NotebookInstanceStatus -> (Void# -> r) -> (Void# -> r) -> r
NotebookInstanceStatus_Stopping = NotebookInstanceStatus' "Stopping"

pattern NotebookInstanceStatus_Updating :: NotebookInstanceStatus
pattern $bNotebookInstanceStatus_Updating :: NotebookInstanceStatus
$mNotebookInstanceStatus_Updating :: forall r.
NotebookInstanceStatus -> (Void# -> r) -> (Void# -> r) -> r
NotebookInstanceStatus_Updating = NotebookInstanceStatus' "Updating"

{-# COMPLETE
  NotebookInstanceStatus_Deleting,
  NotebookInstanceStatus_Failed,
  NotebookInstanceStatus_InService,
  NotebookInstanceStatus_Pending,
  NotebookInstanceStatus_Stopped,
  NotebookInstanceStatus_Stopping,
  NotebookInstanceStatus_Updating,
  NotebookInstanceStatus'
  #-}