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