{-# 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.Nimble.Types.StudioState
-- 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.Nimble.Types.StudioState
  ( StudioState
      ( ..,
        StudioState_CREATE_FAILED,
        StudioState_CREATE_IN_PROGRESS,
        StudioState_DELETED,
        StudioState_DELETE_FAILED,
        StudioState_DELETE_IN_PROGRESS,
        StudioState_READY,
        StudioState_UPDATE_FAILED,
        StudioState_UPDATE_IN_PROGRESS
      ),
  )
where

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

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

pattern StudioState_CREATE_FAILED :: StudioState
pattern $bStudioState_CREATE_FAILED :: StudioState
$mStudioState_CREATE_FAILED :: forall {r}. StudioState -> ((# #) -> r) -> ((# #) -> r) -> r
StudioState_CREATE_FAILED = StudioState' "CREATE_FAILED"

pattern StudioState_CREATE_IN_PROGRESS :: StudioState
pattern $bStudioState_CREATE_IN_PROGRESS :: StudioState
$mStudioState_CREATE_IN_PROGRESS :: forall {r}. StudioState -> ((# #) -> r) -> ((# #) -> r) -> r
StudioState_CREATE_IN_PROGRESS = StudioState' "CREATE_IN_PROGRESS"

pattern StudioState_DELETED :: StudioState
pattern $bStudioState_DELETED :: StudioState
$mStudioState_DELETED :: forall {r}. StudioState -> ((# #) -> r) -> ((# #) -> r) -> r
StudioState_DELETED = StudioState' "DELETED"

pattern StudioState_DELETE_FAILED :: StudioState
pattern $bStudioState_DELETE_FAILED :: StudioState
$mStudioState_DELETE_FAILED :: forall {r}. StudioState -> ((# #) -> r) -> ((# #) -> r) -> r
StudioState_DELETE_FAILED = StudioState' "DELETE_FAILED"

pattern StudioState_DELETE_IN_PROGRESS :: StudioState
pattern $bStudioState_DELETE_IN_PROGRESS :: StudioState
$mStudioState_DELETE_IN_PROGRESS :: forall {r}. StudioState -> ((# #) -> r) -> ((# #) -> r) -> r
StudioState_DELETE_IN_PROGRESS = StudioState' "DELETE_IN_PROGRESS"

pattern StudioState_READY :: StudioState
pattern $bStudioState_READY :: StudioState
$mStudioState_READY :: forall {r}. StudioState -> ((# #) -> r) -> ((# #) -> r) -> r
StudioState_READY = StudioState' "READY"

pattern StudioState_UPDATE_FAILED :: StudioState
pattern $bStudioState_UPDATE_FAILED :: StudioState
$mStudioState_UPDATE_FAILED :: forall {r}. StudioState -> ((# #) -> r) -> ((# #) -> r) -> r
StudioState_UPDATE_FAILED = StudioState' "UPDATE_FAILED"

pattern StudioState_UPDATE_IN_PROGRESS :: StudioState
pattern $bStudioState_UPDATE_IN_PROGRESS :: StudioState
$mStudioState_UPDATE_IN_PROGRESS :: forall {r}. StudioState -> ((# #) -> r) -> ((# #) -> r) -> r
StudioState_UPDATE_IN_PROGRESS = StudioState' "UPDATE_IN_PROGRESS"

{-# COMPLETE
  StudioState_CREATE_FAILED,
  StudioState_CREATE_IN_PROGRESS,
  StudioState_DELETED,
  StudioState_DELETE_FAILED,
  StudioState_DELETE_IN_PROGRESS,
  StudioState_READY,
  StudioState_UPDATE_FAILED,
  StudioState_UPDATE_IN_PROGRESS,
  StudioState'
  #-}