{-# 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.RedshiftServerLess.Types.WorkgroupStatus
-- 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.RedshiftServerLess.Types.WorkgroupStatus
  ( WorkgroupStatus
      ( ..,
        WorkgroupStatus_AVAILABLE,
        WorkgroupStatus_CREATING,
        WorkgroupStatus_DELETING,
        WorkgroupStatus_MODIFYING
      ),
  )
where

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

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

pattern WorkgroupStatus_AVAILABLE :: WorkgroupStatus
pattern $bWorkgroupStatus_AVAILABLE :: WorkgroupStatus
$mWorkgroupStatus_AVAILABLE :: forall {r}. WorkgroupStatus -> ((# #) -> r) -> ((# #) -> r) -> r
WorkgroupStatus_AVAILABLE = WorkgroupStatus' "AVAILABLE"

pattern WorkgroupStatus_CREATING :: WorkgroupStatus
pattern $bWorkgroupStatus_CREATING :: WorkgroupStatus
$mWorkgroupStatus_CREATING :: forall {r}. WorkgroupStatus -> ((# #) -> r) -> ((# #) -> r) -> r
WorkgroupStatus_CREATING = WorkgroupStatus' "CREATING"

pattern WorkgroupStatus_DELETING :: WorkgroupStatus
pattern $bWorkgroupStatus_DELETING :: WorkgroupStatus
$mWorkgroupStatus_DELETING :: forall {r}. WorkgroupStatus -> ((# #) -> r) -> ((# #) -> r) -> r
WorkgroupStatus_DELETING = WorkgroupStatus' "DELETING"

pattern WorkgroupStatus_MODIFYING :: WorkgroupStatus
pattern $bWorkgroupStatus_MODIFYING :: WorkgroupStatus
$mWorkgroupStatus_MODIFYING :: forall {r}. WorkgroupStatus -> ((# #) -> r) -> ((# #) -> r) -> r
WorkgroupStatus_MODIFYING = WorkgroupStatus' "MODIFYING"

{-# COMPLETE
  WorkgroupStatus_AVAILABLE,
  WorkgroupStatus_CREATING,
  WorkgroupStatus_DELETING,
  WorkgroupStatus_MODIFYING,
  WorkgroupStatus'
  #-}