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