{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Cloud9.Types.EnvironmentStatus
( EnvironmentStatus
( ..,
EnvironmentStatus_Connecting,
EnvironmentStatus_Creating,
EnvironmentStatus_Deleting,
EnvironmentStatus_Error,
EnvironmentStatus_Ready,
EnvironmentStatus_Stopped,
EnvironmentStatus_Stopping
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype EnvironmentStatus = EnvironmentStatus'
{ EnvironmentStatus -> Text
fromEnvironmentStatus ::
Data.Text
}
deriving stock
( Int -> EnvironmentStatus -> ShowS
[EnvironmentStatus] -> ShowS
EnvironmentStatus -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [EnvironmentStatus] -> ShowS
$cshowList :: [EnvironmentStatus] -> ShowS
show :: EnvironmentStatus -> String
$cshow :: EnvironmentStatus -> String
showsPrec :: Int -> EnvironmentStatus -> ShowS
$cshowsPrec :: Int -> EnvironmentStatus -> ShowS
Prelude.Show,
ReadPrec [EnvironmentStatus]
ReadPrec EnvironmentStatus
Int -> ReadS EnvironmentStatus
ReadS [EnvironmentStatus]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [EnvironmentStatus]
$creadListPrec :: ReadPrec [EnvironmentStatus]
readPrec :: ReadPrec EnvironmentStatus
$creadPrec :: ReadPrec EnvironmentStatus
readList :: ReadS [EnvironmentStatus]
$creadList :: ReadS [EnvironmentStatus]
readsPrec :: Int -> ReadS EnvironmentStatus
$creadsPrec :: Int -> ReadS EnvironmentStatus
Prelude.Read,
EnvironmentStatus -> EnvironmentStatus -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: EnvironmentStatus -> EnvironmentStatus -> Bool
$c/= :: EnvironmentStatus -> EnvironmentStatus -> Bool
== :: EnvironmentStatus -> EnvironmentStatus -> Bool
$c== :: EnvironmentStatus -> EnvironmentStatus -> Bool
Prelude.Eq,
Eq EnvironmentStatus
EnvironmentStatus -> EnvironmentStatus -> Bool
EnvironmentStatus -> EnvironmentStatus -> Ordering
EnvironmentStatus -> EnvironmentStatus -> EnvironmentStatus
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 :: EnvironmentStatus -> EnvironmentStatus -> EnvironmentStatus
$cmin :: EnvironmentStatus -> EnvironmentStatus -> EnvironmentStatus
max :: EnvironmentStatus -> EnvironmentStatus -> EnvironmentStatus
$cmax :: EnvironmentStatus -> EnvironmentStatus -> EnvironmentStatus
>= :: EnvironmentStatus -> EnvironmentStatus -> Bool
$c>= :: EnvironmentStatus -> EnvironmentStatus -> Bool
> :: EnvironmentStatus -> EnvironmentStatus -> Bool
$c> :: EnvironmentStatus -> EnvironmentStatus -> Bool
<= :: EnvironmentStatus -> EnvironmentStatus -> Bool
$c<= :: EnvironmentStatus -> EnvironmentStatus -> Bool
< :: EnvironmentStatus -> EnvironmentStatus -> Bool
$c< :: EnvironmentStatus -> EnvironmentStatus -> Bool
compare :: EnvironmentStatus -> EnvironmentStatus -> Ordering
$ccompare :: EnvironmentStatus -> EnvironmentStatus -> Ordering
Prelude.Ord,
forall x. Rep EnvironmentStatus x -> EnvironmentStatus
forall x. EnvironmentStatus -> Rep EnvironmentStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep EnvironmentStatus x -> EnvironmentStatus
$cfrom :: forall x. EnvironmentStatus -> Rep EnvironmentStatus x
Prelude.Generic
)
deriving newtype
( Eq EnvironmentStatus
Int -> EnvironmentStatus -> Int
EnvironmentStatus -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: EnvironmentStatus -> Int
$chash :: EnvironmentStatus -> Int
hashWithSalt :: Int -> EnvironmentStatus -> Int
$chashWithSalt :: Int -> EnvironmentStatus -> Int
Prelude.Hashable,
EnvironmentStatus -> ()
forall a. (a -> ()) -> NFData a
rnf :: EnvironmentStatus -> ()
$crnf :: EnvironmentStatus -> ()
Prelude.NFData,
Text -> Either String EnvironmentStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String EnvironmentStatus
$cfromText :: Text -> Either String EnvironmentStatus
Data.FromText,
EnvironmentStatus -> Text
forall a. (a -> Text) -> ToText a
toText :: EnvironmentStatus -> Text
$ctoText :: EnvironmentStatus -> Text
Data.ToText,
EnvironmentStatus -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: EnvironmentStatus -> ByteString
$ctoBS :: EnvironmentStatus -> ByteString
Data.ToByteString,
EnvironmentStatus -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: EnvironmentStatus -> ByteStringBuilder
$cbuild :: EnvironmentStatus -> ByteStringBuilder
Data.ToLog,
HeaderName -> EnvironmentStatus -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> EnvironmentStatus -> [Header]
$ctoHeader :: HeaderName -> EnvironmentStatus -> [Header]
Data.ToHeader,
EnvironmentStatus -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: EnvironmentStatus -> QueryString
$ctoQuery :: EnvironmentStatus -> QueryString
Data.ToQuery,
Value -> Parser [EnvironmentStatus]
Value -> Parser EnvironmentStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [EnvironmentStatus]
$cparseJSONList :: Value -> Parser [EnvironmentStatus]
parseJSON :: Value -> Parser EnvironmentStatus
$cparseJSON :: Value -> Parser EnvironmentStatus
Data.FromJSON,
FromJSONKeyFunction [EnvironmentStatus]
FromJSONKeyFunction EnvironmentStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [EnvironmentStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [EnvironmentStatus]
fromJSONKey :: FromJSONKeyFunction EnvironmentStatus
$cfromJSONKey :: FromJSONKeyFunction EnvironmentStatus
Data.FromJSONKey,
[EnvironmentStatus] -> Encoding
[EnvironmentStatus] -> Value
EnvironmentStatus -> Encoding
EnvironmentStatus -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [EnvironmentStatus] -> Encoding
$ctoEncodingList :: [EnvironmentStatus] -> Encoding
toJSONList :: [EnvironmentStatus] -> Value
$ctoJSONList :: [EnvironmentStatus] -> Value
toEncoding :: EnvironmentStatus -> Encoding
$ctoEncoding :: EnvironmentStatus -> Encoding
toJSON :: EnvironmentStatus -> Value
$ctoJSON :: EnvironmentStatus -> Value
Data.ToJSON,
ToJSONKeyFunction [EnvironmentStatus]
ToJSONKeyFunction EnvironmentStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [EnvironmentStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [EnvironmentStatus]
toJSONKey :: ToJSONKeyFunction EnvironmentStatus
$ctoJSONKey :: ToJSONKeyFunction EnvironmentStatus
Data.ToJSONKey,
[Node] -> Either String EnvironmentStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String EnvironmentStatus
$cparseXML :: [Node] -> Either String EnvironmentStatus
Data.FromXML,
EnvironmentStatus -> XML
forall a. (a -> XML) -> ToXML a
toXML :: EnvironmentStatus -> XML
$ctoXML :: EnvironmentStatus -> XML
Data.ToXML
)
pattern EnvironmentStatus_Connecting :: EnvironmentStatus
pattern $bEnvironmentStatus_Connecting :: EnvironmentStatus
$mEnvironmentStatus_Connecting :: forall {r}. EnvironmentStatus -> ((# #) -> r) -> ((# #) -> r) -> r
EnvironmentStatus_Connecting = EnvironmentStatus' "connecting"
pattern EnvironmentStatus_Creating :: EnvironmentStatus
pattern $bEnvironmentStatus_Creating :: EnvironmentStatus
$mEnvironmentStatus_Creating :: forall {r}. EnvironmentStatus -> ((# #) -> r) -> ((# #) -> r) -> r
EnvironmentStatus_Creating = EnvironmentStatus' "creating"
pattern EnvironmentStatus_Deleting :: EnvironmentStatus
pattern $bEnvironmentStatus_Deleting :: EnvironmentStatus
$mEnvironmentStatus_Deleting :: forall {r}. EnvironmentStatus -> ((# #) -> r) -> ((# #) -> r) -> r
EnvironmentStatus_Deleting = EnvironmentStatus' "deleting"
pattern EnvironmentStatus_Error :: EnvironmentStatus
pattern $bEnvironmentStatus_Error :: EnvironmentStatus
$mEnvironmentStatus_Error :: forall {r}. EnvironmentStatus -> ((# #) -> r) -> ((# #) -> r) -> r
EnvironmentStatus_Error = EnvironmentStatus' "error"
pattern EnvironmentStatus_Ready :: EnvironmentStatus
pattern $bEnvironmentStatus_Ready :: EnvironmentStatus
$mEnvironmentStatus_Ready :: forall {r}. EnvironmentStatus -> ((# #) -> r) -> ((# #) -> r) -> r
EnvironmentStatus_Ready = EnvironmentStatus' "ready"
pattern EnvironmentStatus_Stopped :: EnvironmentStatus
pattern $bEnvironmentStatus_Stopped :: EnvironmentStatus
$mEnvironmentStatus_Stopped :: forall {r}. EnvironmentStatus -> ((# #) -> r) -> ((# #) -> r) -> r
EnvironmentStatus_Stopped = EnvironmentStatus' "stopped"
pattern EnvironmentStatus_Stopping :: EnvironmentStatus
pattern $bEnvironmentStatus_Stopping :: EnvironmentStatus
$mEnvironmentStatus_Stopping :: forall {r}. EnvironmentStatus -> ((# #) -> r) -> ((# #) -> r) -> r
EnvironmentStatus_Stopping = EnvironmentStatus' "stopping"
{-# COMPLETE
EnvironmentStatus_Connecting,
EnvironmentStatus_Creating,
EnvironmentStatus_Deleting,
EnvironmentStatus_Error,
EnvironmentStatus_Ready,
EnvironmentStatus_Stopped,
EnvironmentStatus_Stopping,
EnvironmentStatus'
#-}