{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.WorkSpaces.Types.RunningMode
( RunningMode
( ..,
RunningMode_ALWAYS_ON,
RunningMode_AUTO_STOP
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype RunningMode = RunningMode'
{ RunningMode -> Text
fromRunningMode ::
Core.Text
}
deriving stock
( Int -> RunningMode -> ShowS
[RunningMode] -> ShowS
RunningMode -> String
(Int -> RunningMode -> ShowS)
-> (RunningMode -> String)
-> ([RunningMode] -> ShowS)
-> Show RunningMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RunningMode] -> ShowS
$cshowList :: [RunningMode] -> ShowS
show :: RunningMode -> String
$cshow :: RunningMode -> String
showsPrec :: Int -> RunningMode -> ShowS
$cshowsPrec :: Int -> RunningMode -> ShowS
Prelude.Show,
ReadPrec [RunningMode]
ReadPrec RunningMode
Int -> ReadS RunningMode
ReadS [RunningMode]
(Int -> ReadS RunningMode)
-> ReadS [RunningMode]
-> ReadPrec RunningMode
-> ReadPrec [RunningMode]
-> Read RunningMode
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RunningMode]
$creadListPrec :: ReadPrec [RunningMode]
readPrec :: ReadPrec RunningMode
$creadPrec :: ReadPrec RunningMode
readList :: ReadS [RunningMode]
$creadList :: ReadS [RunningMode]
readsPrec :: Int -> ReadS RunningMode
$creadsPrec :: Int -> ReadS RunningMode
Prelude.Read,
RunningMode -> RunningMode -> Bool
(RunningMode -> RunningMode -> Bool)
-> (RunningMode -> RunningMode -> Bool) -> Eq RunningMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RunningMode -> RunningMode -> Bool
$c/= :: RunningMode -> RunningMode -> Bool
== :: RunningMode -> RunningMode -> Bool
$c== :: RunningMode -> RunningMode -> Bool
Prelude.Eq,
Eq RunningMode
Eq RunningMode
-> (RunningMode -> RunningMode -> Ordering)
-> (RunningMode -> RunningMode -> Bool)
-> (RunningMode -> RunningMode -> Bool)
-> (RunningMode -> RunningMode -> Bool)
-> (RunningMode -> RunningMode -> Bool)
-> (RunningMode -> RunningMode -> RunningMode)
-> (RunningMode -> RunningMode -> RunningMode)
-> Ord RunningMode
RunningMode -> RunningMode -> Bool
RunningMode -> RunningMode -> Ordering
RunningMode -> RunningMode -> RunningMode
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 :: RunningMode -> RunningMode -> RunningMode
$cmin :: RunningMode -> RunningMode -> RunningMode
max :: RunningMode -> RunningMode -> RunningMode
$cmax :: RunningMode -> RunningMode -> RunningMode
>= :: RunningMode -> RunningMode -> Bool
$c>= :: RunningMode -> RunningMode -> Bool
> :: RunningMode -> RunningMode -> Bool
$c> :: RunningMode -> RunningMode -> Bool
<= :: RunningMode -> RunningMode -> Bool
$c<= :: RunningMode -> RunningMode -> Bool
< :: RunningMode -> RunningMode -> Bool
$c< :: RunningMode -> RunningMode -> Bool
compare :: RunningMode -> RunningMode -> Ordering
$ccompare :: RunningMode -> RunningMode -> Ordering
$cp1Ord :: Eq RunningMode
Prelude.Ord,
(forall x. RunningMode -> Rep RunningMode x)
-> (forall x. Rep RunningMode x -> RunningMode)
-> Generic RunningMode
forall x. Rep RunningMode x -> RunningMode
forall x. RunningMode -> Rep RunningMode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep RunningMode x -> RunningMode
$cfrom :: forall x. RunningMode -> Rep RunningMode x
Prelude.Generic
)
deriving newtype
( Int -> RunningMode -> Int
RunningMode -> Int
(Int -> RunningMode -> Int)
-> (RunningMode -> Int) -> Hashable RunningMode
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: RunningMode -> Int
$chash :: RunningMode -> Int
hashWithSalt :: Int -> RunningMode -> Int
$chashWithSalt :: Int -> RunningMode -> Int
Prelude.Hashable,
RunningMode -> ()
(RunningMode -> ()) -> NFData RunningMode
forall a. (a -> ()) -> NFData a
rnf :: RunningMode -> ()
$crnf :: RunningMode -> ()
Prelude.NFData,
Text -> Either String RunningMode
(Text -> Either String RunningMode) -> FromText RunningMode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String RunningMode
$cfromText :: Text -> Either String RunningMode
Core.FromText,
RunningMode -> Text
(RunningMode -> Text) -> ToText RunningMode
forall a. (a -> Text) -> ToText a
toText :: RunningMode -> Text
$ctoText :: RunningMode -> Text
Core.ToText,
RunningMode -> ByteString
(RunningMode -> ByteString) -> ToByteString RunningMode
forall a. (a -> ByteString) -> ToByteString a
toBS :: RunningMode -> ByteString
$ctoBS :: RunningMode -> ByteString
Core.ToByteString,
RunningMode -> ByteStringBuilder
(RunningMode -> ByteStringBuilder) -> ToLog RunningMode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: RunningMode -> ByteStringBuilder
$cbuild :: RunningMode -> ByteStringBuilder
Core.ToLog,
HeaderName -> RunningMode -> [Header]
(HeaderName -> RunningMode -> [Header]) -> ToHeader RunningMode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> RunningMode -> [Header]
$ctoHeader :: HeaderName -> RunningMode -> [Header]
Core.ToHeader,
RunningMode -> QueryString
(RunningMode -> QueryString) -> ToQuery RunningMode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: RunningMode -> QueryString
$ctoQuery :: RunningMode -> QueryString
Core.ToQuery,
Value -> Parser [RunningMode]
Value -> Parser RunningMode
(Value -> Parser RunningMode)
-> (Value -> Parser [RunningMode]) -> FromJSON RunningMode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [RunningMode]
$cparseJSONList :: Value -> Parser [RunningMode]
parseJSON :: Value -> Parser RunningMode
$cparseJSON :: Value -> Parser RunningMode
Core.FromJSON,
FromJSONKeyFunction [RunningMode]
FromJSONKeyFunction RunningMode
FromJSONKeyFunction RunningMode
-> FromJSONKeyFunction [RunningMode] -> FromJSONKey RunningMode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [RunningMode]
$cfromJSONKeyList :: FromJSONKeyFunction [RunningMode]
fromJSONKey :: FromJSONKeyFunction RunningMode
$cfromJSONKey :: FromJSONKeyFunction RunningMode
Core.FromJSONKey,
[RunningMode] -> Encoding
[RunningMode] -> Value
RunningMode -> Encoding
RunningMode -> Value
(RunningMode -> Value)
-> (RunningMode -> Encoding)
-> ([RunningMode] -> Value)
-> ([RunningMode] -> Encoding)
-> ToJSON RunningMode
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [RunningMode] -> Encoding
$ctoEncodingList :: [RunningMode] -> Encoding
toJSONList :: [RunningMode] -> Value
$ctoJSONList :: [RunningMode] -> Value
toEncoding :: RunningMode -> Encoding
$ctoEncoding :: RunningMode -> Encoding
toJSON :: RunningMode -> Value
$ctoJSON :: RunningMode -> Value
Core.ToJSON,
ToJSONKeyFunction [RunningMode]
ToJSONKeyFunction RunningMode
ToJSONKeyFunction RunningMode
-> ToJSONKeyFunction [RunningMode] -> ToJSONKey RunningMode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [RunningMode]
$ctoJSONKeyList :: ToJSONKeyFunction [RunningMode]
toJSONKey :: ToJSONKeyFunction RunningMode
$ctoJSONKey :: ToJSONKeyFunction RunningMode
Core.ToJSONKey,
[Node] -> Either String RunningMode
([Node] -> Either String RunningMode) -> FromXML RunningMode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String RunningMode
$cparseXML :: [Node] -> Either String RunningMode
Core.FromXML,
RunningMode -> XML
(RunningMode -> XML) -> ToXML RunningMode
forall a. (a -> XML) -> ToXML a
toXML :: RunningMode -> XML
$ctoXML :: RunningMode -> XML
Core.ToXML
)
pattern RunningMode_ALWAYS_ON :: RunningMode
pattern $bRunningMode_ALWAYS_ON :: RunningMode
$mRunningMode_ALWAYS_ON :: forall r. RunningMode -> (Void# -> r) -> (Void# -> r) -> r
RunningMode_ALWAYS_ON = RunningMode' "ALWAYS_ON"
pattern RunningMode_AUTO_STOP :: RunningMode
pattern $bRunningMode_AUTO_STOP :: RunningMode
$mRunningMode_AUTO_STOP :: forall r. RunningMode -> (Void# -> r) -> (Void# -> r) -> r
RunningMode_AUTO_STOP = RunningMode' "AUTO_STOP"
{-# COMPLETE
RunningMode_ALWAYS_ON,
RunningMode_AUTO_STOP,
RunningMode'
#-}