{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.EMRContainers.Types.VirtualClusterState
( VirtualClusterState
( ..,
VirtualClusterState_ARRESTED,
VirtualClusterState_RUNNING,
VirtualClusterState_TERMINATED,
VirtualClusterState_TERMINATING
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype VirtualClusterState = VirtualClusterState'
{ VirtualClusterState -> Text
fromVirtualClusterState ::
Core.Text
}
deriving stock
( Int -> VirtualClusterState -> ShowS
[VirtualClusterState] -> ShowS
VirtualClusterState -> String
(Int -> VirtualClusterState -> ShowS)
-> (VirtualClusterState -> String)
-> ([VirtualClusterState] -> ShowS)
-> Show VirtualClusterState
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]
(Int -> ReadS VirtualClusterState)
-> ReadS [VirtualClusterState]
-> ReadPrec VirtualClusterState
-> ReadPrec [VirtualClusterState]
-> Read 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
(VirtualClusterState -> VirtualClusterState -> Bool)
-> (VirtualClusterState -> VirtualClusterState -> Bool)
-> Eq VirtualClusterState
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
Eq VirtualClusterState
-> (VirtualClusterState -> VirtualClusterState -> Ordering)
-> (VirtualClusterState -> VirtualClusterState -> Bool)
-> (VirtualClusterState -> VirtualClusterState -> Bool)
-> (VirtualClusterState -> VirtualClusterState -> Bool)
-> (VirtualClusterState -> VirtualClusterState -> Bool)
-> (VirtualClusterState
-> VirtualClusterState -> VirtualClusterState)
-> (VirtualClusterState
-> VirtualClusterState -> VirtualClusterState)
-> Ord 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
$cp1Ord :: Eq VirtualClusterState
Prelude.Ord,
(forall x. VirtualClusterState -> Rep VirtualClusterState x)
-> (forall x. Rep VirtualClusterState x -> VirtualClusterState)
-> Generic VirtualClusterState
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
( Int -> VirtualClusterState -> Int
VirtualClusterState -> Int
(Int -> VirtualClusterState -> Int)
-> (VirtualClusterState -> Int) -> Hashable VirtualClusterState
forall 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 -> ()
(VirtualClusterState -> ()) -> NFData VirtualClusterState
forall a. (a -> ()) -> NFData a
rnf :: VirtualClusterState -> ()
$crnf :: VirtualClusterState -> ()
Prelude.NFData,
Text -> Either String VirtualClusterState
(Text -> Either String VirtualClusterState)
-> FromText VirtualClusterState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String VirtualClusterState
$cfromText :: Text -> Either String VirtualClusterState
Core.FromText,
VirtualClusterState -> Text
(VirtualClusterState -> Text) -> ToText VirtualClusterState
forall a. (a -> Text) -> ToText a
toText :: VirtualClusterState -> Text
$ctoText :: VirtualClusterState -> Text
Core.ToText,
VirtualClusterState -> ByteString
(VirtualClusterState -> ByteString)
-> ToByteString VirtualClusterState
forall a. (a -> ByteString) -> ToByteString a
toBS :: VirtualClusterState -> ByteString
$ctoBS :: VirtualClusterState -> ByteString
Core.ToByteString,
VirtualClusterState -> ByteStringBuilder
(VirtualClusterState -> ByteStringBuilder)
-> ToLog VirtualClusterState
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: VirtualClusterState -> ByteStringBuilder
$cbuild :: VirtualClusterState -> ByteStringBuilder
Core.ToLog,
HeaderName -> VirtualClusterState -> [Header]
(HeaderName -> VirtualClusterState -> [Header])
-> ToHeader VirtualClusterState
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> VirtualClusterState -> [Header]
$ctoHeader :: HeaderName -> VirtualClusterState -> [Header]
Core.ToHeader,
VirtualClusterState -> QueryString
(VirtualClusterState -> QueryString) -> ToQuery VirtualClusterState
forall a. (a -> QueryString) -> ToQuery a
toQuery :: VirtualClusterState -> QueryString
$ctoQuery :: VirtualClusterState -> QueryString
Core.ToQuery,
Value -> Parser [VirtualClusterState]
Value -> Parser VirtualClusterState
(Value -> Parser VirtualClusterState)
-> (Value -> Parser [VirtualClusterState])
-> FromJSON 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
Core.FromJSON,
FromJSONKeyFunction [VirtualClusterState]
FromJSONKeyFunction VirtualClusterState
FromJSONKeyFunction VirtualClusterState
-> FromJSONKeyFunction [VirtualClusterState]
-> FromJSONKey VirtualClusterState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [VirtualClusterState]
$cfromJSONKeyList :: FromJSONKeyFunction [VirtualClusterState]
fromJSONKey :: FromJSONKeyFunction VirtualClusterState
$cfromJSONKey :: FromJSONKeyFunction VirtualClusterState
Core.FromJSONKey,
[VirtualClusterState] -> Encoding
[VirtualClusterState] -> Value
VirtualClusterState -> Encoding
VirtualClusterState -> Value
(VirtualClusterState -> Value)
-> (VirtualClusterState -> Encoding)
-> ([VirtualClusterState] -> Value)
-> ([VirtualClusterState] -> Encoding)
-> ToJSON VirtualClusterState
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
Core.ToJSON,
ToJSONKeyFunction [VirtualClusterState]
ToJSONKeyFunction VirtualClusterState
ToJSONKeyFunction VirtualClusterState
-> ToJSONKeyFunction [VirtualClusterState]
-> ToJSONKey VirtualClusterState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [VirtualClusterState]
$ctoJSONKeyList :: ToJSONKeyFunction [VirtualClusterState]
toJSONKey :: ToJSONKeyFunction VirtualClusterState
$ctoJSONKey :: ToJSONKeyFunction VirtualClusterState
Core.ToJSONKey,
[Node] -> Either String VirtualClusterState
([Node] -> Either String VirtualClusterState)
-> FromXML VirtualClusterState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String VirtualClusterState
$cparseXML :: [Node] -> Either String VirtualClusterState
Core.FromXML,
VirtualClusterState -> XML
(VirtualClusterState -> XML) -> ToXML VirtualClusterState
forall a. (a -> XML) -> ToXML a
toXML :: VirtualClusterState -> XML
$ctoXML :: VirtualClusterState -> XML
Core.ToXML
)
pattern VirtualClusterState_ARRESTED :: VirtualClusterState
pattern $bVirtualClusterState_ARRESTED :: VirtualClusterState
$mVirtualClusterState_ARRESTED :: forall r. VirtualClusterState -> (Void# -> r) -> (Void# -> r) -> r
VirtualClusterState_ARRESTED = VirtualClusterState' "ARRESTED"
pattern VirtualClusterState_RUNNING :: VirtualClusterState
pattern $bVirtualClusterState_RUNNING :: VirtualClusterState
$mVirtualClusterState_RUNNING :: forall r. VirtualClusterState -> (Void# -> r) -> (Void# -> r) -> r
VirtualClusterState_RUNNING = VirtualClusterState' "RUNNING"
pattern VirtualClusterState_TERMINATED :: VirtualClusterState
pattern $bVirtualClusterState_TERMINATED :: VirtualClusterState
$mVirtualClusterState_TERMINATED :: forall r. VirtualClusterState -> (Void# -> r) -> (Void# -> r) -> r
VirtualClusterState_TERMINATED = VirtualClusterState' "TERMINATED"
pattern VirtualClusterState_TERMINATING :: VirtualClusterState
pattern $bVirtualClusterState_TERMINATING :: VirtualClusterState
$mVirtualClusterState_TERMINATING :: forall r. VirtualClusterState -> (Void# -> r) -> (Void# -> r) -> r
VirtualClusterState_TERMINATING = VirtualClusterState' "TERMINATING"
{-# COMPLETE
VirtualClusterState_ARRESTED,
VirtualClusterState_RUNNING,
VirtualClusterState_TERMINATED,
VirtualClusterState_TERMINATING,
VirtualClusterState'
#-}