{-# 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.Prelude as Prelude
newtype EnvironmentStatus = EnvironmentStatus'
{ EnvironmentStatus -> Text
fromEnvironmentStatus ::
Core.Text
}
deriving stock
( Int -> EnvironmentStatus -> ShowS
[EnvironmentStatus] -> ShowS
EnvironmentStatus -> String
(Int -> EnvironmentStatus -> ShowS)
-> (EnvironmentStatus -> String)
-> ([EnvironmentStatus] -> ShowS)
-> Show EnvironmentStatus
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]
(Int -> ReadS EnvironmentStatus)
-> ReadS [EnvironmentStatus]
-> ReadPrec EnvironmentStatus
-> ReadPrec [EnvironmentStatus]
-> Read 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
(EnvironmentStatus -> EnvironmentStatus -> Bool)
-> (EnvironmentStatus -> EnvironmentStatus -> Bool)
-> Eq EnvironmentStatus
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
Eq EnvironmentStatus
-> (EnvironmentStatus -> EnvironmentStatus -> Ordering)
-> (EnvironmentStatus -> EnvironmentStatus -> Bool)
-> (EnvironmentStatus -> EnvironmentStatus -> Bool)
-> (EnvironmentStatus -> EnvironmentStatus -> Bool)
-> (EnvironmentStatus -> EnvironmentStatus -> Bool)
-> (EnvironmentStatus -> EnvironmentStatus -> EnvironmentStatus)
-> (EnvironmentStatus -> EnvironmentStatus -> EnvironmentStatus)
-> Ord 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
$cp1Ord :: Eq EnvironmentStatus
Prelude.Ord,
(forall x. EnvironmentStatus -> Rep EnvironmentStatus x)
-> (forall x. Rep EnvironmentStatus x -> EnvironmentStatus)
-> Generic EnvironmentStatus
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
( Int -> EnvironmentStatus -> Int
EnvironmentStatus -> Int
(Int -> EnvironmentStatus -> Int)
-> (EnvironmentStatus -> Int) -> Hashable EnvironmentStatus
forall 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 -> ()
(EnvironmentStatus -> ()) -> NFData EnvironmentStatus
forall a. (a -> ()) -> NFData a
rnf :: EnvironmentStatus -> ()
$crnf :: EnvironmentStatus -> ()
Prelude.NFData,
Text -> Either String EnvironmentStatus
(Text -> Either String EnvironmentStatus)
-> FromText EnvironmentStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String EnvironmentStatus
$cfromText :: Text -> Either String EnvironmentStatus
Core.FromText,
EnvironmentStatus -> Text
(EnvironmentStatus -> Text) -> ToText EnvironmentStatus
forall a. (a -> Text) -> ToText a
toText :: EnvironmentStatus -> Text
$ctoText :: EnvironmentStatus -> Text
Core.ToText,
EnvironmentStatus -> ByteString
(EnvironmentStatus -> ByteString) -> ToByteString EnvironmentStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: EnvironmentStatus -> ByteString
$ctoBS :: EnvironmentStatus -> ByteString
Core.ToByteString,
EnvironmentStatus -> ByteStringBuilder
(EnvironmentStatus -> ByteStringBuilder) -> ToLog EnvironmentStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: EnvironmentStatus -> ByteStringBuilder
$cbuild :: EnvironmentStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> EnvironmentStatus -> [Header]
(HeaderName -> EnvironmentStatus -> [Header])
-> ToHeader EnvironmentStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> EnvironmentStatus -> [Header]
$ctoHeader :: HeaderName -> EnvironmentStatus -> [Header]
Core.ToHeader,
EnvironmentStatus -> QueryString
(EnvironmentStatus -> QueryString) -> ToQuery EnvironmentStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: EnvironmentStatus -> QueryString
$ctoQuery :: EnvironmentStatus -> QueryString
Core.ToQuery,
Value -> Parser [EnvironmentStatus]
Value -> Parser EnvironmentStatus
(Value -> Parser EnvironmentStatus)
-> (Value -> Parser [EnvironmentStatus])
-> FromJSON 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
Core.FromJSON,
FromJSONKeyFunction [EnvironmentStatus]
FromJSONKeyFunction EnvironmentStatus
FromJSONKeyFunction EnvironmentStatus
-> FromJSONKeyFunction [EnvironmentStatus]
-> FromJSONKey EnvironmentStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [EnvironmentStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [EnvironmentStatus]
fromJSONKey :: FromJSONKeyFunction EnvironmentStatus
$cfromJSONKey :: FromJSONKeyFunction EnvironmentStatus
Core.FromJSONKey,
[EnvironmentStatus] -> Encoding
[EnvironmentStatus] -> Value
EnvironmentStatus -> Encoding
EnvironmentStatus -> Value
(EnvironmentStatus -> Value)
-> (EnvironmentStatus -> Encoding)
-> ([EnvironmentStatus] -> Value)
-> ([EnvironmentStatus] -> Encoding)
-> ToJSON EnvironmentStatus
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
Core.ToJSON,
ToJSONKeyFunction [EnvironmentStatus]
ToJSONKeyFunction EnvironmentStatus
ToJSONKeyFunction EnvironmentStatus
-> ToJSONKeyFunction [EnvironmentStatus]
-> ToJSONKey EnvironmentStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [EnvironmentStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [EnvironmentStatus]
toJSONKey :: ToJSONKeyFunction EnvironmentStatus
$ctoJSONKey :: ToJSONKeyFunction EnvironmentStatus
Core.ToJSONKey,
[Node] -> Either String EnvironmentStatus
([Node] -> Either String EnvironmentStatus)
-> FromXML EnvironmentStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String EnvironmentStatus
$cparseXML :: [Node] -> Either String EnvironmentStatus
Core.FromXML,
EnvironmentStatus -> XML
(EnvironmentStatus -> XML) -> ToXML EnvironmentStatus
forall a. (a -> XML) -> ToXML a
toXML :: EnvironmentStatus -> XML
$ctoXML :: EnvironmentStatus -> XML
Core.ToXML
)
pattern EnvironmentStatus_Connecting :: EnvironmentStatus
pattern $bEnvironmentStatus_Connecting :: EnvironmentStatus
$mEnvironmentStatus_Connecting :: forall r. EnvironmentStatus -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentStatus_Connecting = EnvironmentStatus' "connecting"
pattern EnvironmentStatus_Creating :: EnvironmentStatus
pattern $bEnvironmentStatus_Creating :: EnvironmentStatus
$mEnvironmentStatus_Creating :: forall r. EnvironmentStatus -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentStatus_Creating = EnvironmentStatus' "creating"
pattern EnvironmentStatus_Deleting :: EnvironmentStatus
pattern $bEnvironmentStatus_Deleting :: EnvironmentStatus
$mEnvironmentStatus_Deleting :: forall r. EnvironmentStatus -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentStatus_Deleting = EnvironmentStatus' "deleting"
pattern EnvironmentStatus_Error :: EnvironmentStatus
pattern $bEnvironmentStatus_Error :: EnvironmentStatus
$mEnvironmentStatus_Error :: forall r. EnvironmentStatus -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentStatus_Error = EnvironmentStatus' "error"
pattern EnvironmentStatus_Ready :: EnvironmentStatus
pattern $bEnvironmentStatus_Ready :: EnvironmentStatus
$mEnvironmentStatus_Ready :: forall r. EnvironmentStatus -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentStatus_Ready = EnvironmentStatus' "ready"
pattern EnvironmentStatus_Stopped :: EnvironmentStatus
pattern $bEnvironmentStatus_Stopped :: EnvironmentStatus
$mEnvironmentStatus_Stopped :: forall r. EnvironmentStatus -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentStatus_Stopped = EnvironmentStatus' "stopped"
pattern EnvironmentStatus_Stopping :: EnvironmentStatus
pattern $bEnvironmentStatus_Stopping :: EnvironmentStatus
$mEnvironmentStatus_Stopping :: forall r. EnvironmentStatus -> (Void# -> r) -> (Void# -> r) -> r
EnvironmentStatus_Stopping = EnvironmentStatus' "stopping"
{-# COMPLETE
EnvironmentStatus_Connecting,
EnvironmentStatus_Creating,
EnvironmentStatus_Deleting,
EnvironmentStatus_Error,
EnvironmentStatus_Ready,
EnvironmentStatus_Stopped,
EnvironmentStatus_Stopping,
EnvironmentStatus'
#-}