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

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

pattern StudioState_CREATE_FAILED :: StudioState
pattern $bStudioState_CREATE_FAILED :: StudioState
$mStudioState_CREATE_FAILED :: forall r. StudioState -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> r) -> r
StudioState_CREATE_IN_PROGRESS = StudioState' "CREATE_IN_PROGRESS"

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

pattern StudioState_DELETE_FAILED :: StudioState
pattern $bStudioState_DELETE_FAILED :: StudioState
$mStudioState_DELETE_FAILED :: forall r. StudioState -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> r) -> r
StudioState_DELETE_IN_PROGRESS = StudioState' "DELETE_IN_PROGRESS"

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

pattern StudioState_UPDATE_FAILED :: StudioState
pattern $bStudioState_UPDATE_FAILED :: StudioState
$mStudioState_UPDATE_FAILED :: forall r. StudioState -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> 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'
  #-}