{-# 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.EMRContainers.Types.VirtualClusterState
-- 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.EMRContainers.Types.VirtualClusterState
  ( VirtualClusterState
      ( ..,
        VirtualClusterState_ARRESTED,
        VirtualClusterState_RUNNING,
        VirtualClusterState_TERMINATED,
        VirtualClusterState_TERMINATING
      ),
  )
where

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

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

pattern VirtualClusterState_ARRESTED :: VirtualClusterState
pattern $bVirtualClusterState_ARRESTED :: VirtualClusterState
$mVirtualClusterState_ARRESTED :: forall {r}.
VirtualClusterState -> ((# #) -> r) -> ((# #) -> r) -> r
VirtualClusterState_ARRESTED = VirtualClusterState' "ARRESTED"

pattern VirtualClusterState_RUNNING :: VirtualClusterState
pattern $bVirtualClusterState_RUNNING :: VirtualClusterState
$mVirtualClusterState_RUNNING :: forall {r}.
VirtualClusterState -> ((# #) -> r) -> ((# #) -> r) -> r
VirtualClusterState_RUNNING = VirtualClusterState' "RUNNING"

pattern VirtualClusterState_TERMINATED :: VirtualClusterState
pattern $bVirtualClusterState_TERMINATED :: VirtualClusterState
$mVirtualClusterState_TERMINATED :: forall {r}.
VirtualClusterState -> ((# #) -> r) -> ((# #) -> r) -> r
VirtualClusterState_TERMINATED = VirtualClusterState' "TERMINATED"

pattern VirtualClusterState_TERMINATING :: VirtualClusterState
pattern $bVirtualClusterState_TERMINATING :: VirtualClusterState
$mVirtualClusterState_TERMINATING :: forall {r}.
VirtualClusterState -> ((# #) -> r) -> ((# #) -> r) -> r
VirtualClusterState_TERMINATING = VirtualClusterState' "TERMINATING"

{-# COMPLETE
  VirtualClusterState_ARRESTED,
  VirtualClusterState_RUNNING,
  VirtualClusterState_TERMINATED,
  VirtualClusterState_TERMINATING,
  VirtualClusterState'
  #-}