{-# 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.MeshStatusCode
( MeshStatusCode
( ..,
MeshStatusCode_ACTIVE,
MeshStatusCode_DELETED,
MeshStatusCode_INACTIVE
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype MeshStatusCode = MeshStatusCode'
{ MeshStatusCode -> Text
fromMeshStatusCode ::
Core.Text
}
deriving stock
( Int -> MeshStatusCode -> ShowS
[MeshStatusCode] -> ShowS
MeshStatusCode -> String
(Int -> MeshStatusCode -> ShowS)
-> (MeshStatusCode -> String)
-> ([MeshStatusCode] -> ShowS)
-> Show MeshStatusCode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MeshStatusCode] -> ShowS
$cshowList :: [MeshStatusCode] -> ShowS
show :: MeshStatusCode -> String
$cshow :: MeshStatusCode -> String
showsPrec :: Int -> MeshStatusCode -> ShowS
$cshowsPrec :: Int -> MeshStatusCode -> ShowS
Prelude.Show,
ReadPrec [MeshStatusCode]
ReadPrec MeshStatusCode
Int -> ReadS MeshStatusCode
ReadS [MeshStatusCode]
(Int -> ReadS MeshStatusCode)
-> ReadS [MeshStatusCode]
-> ReadPrec MeshStatusCode
-> ReadPrec [MeshStatusCode]
-> Read MeshStatusCode
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MeshStatusCode]
$creadListPrec :: ReadPrec [MeshStatusCode]
readPrec :: ReadPrec MeshStatusCode
$creadPrec :: ReadPrec MeshStatusCode
readList :: ReadS [MeshStatusCode]
$creadList :: ReadS [MeshStatusCode]
readsPrec :: Int -> ReadS MeshStatusCode
$creadsPrec :: Int -> ReadS MeshStatusCode
Prelude.Read,
MeshStatusCode -> MeshStatusCode -> Bool
(MeshStatusCode -> MeshStatusCode -> Bool)
-> (MeshStatusCode -> MeshStatusCode -> Bool) -> Eq MeshStatusCode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MeshStatusCode -> MeshStatusCode -> Bool
$c/= :: MeshStatusCode -> MeshStatusCode -> Bool
== :: MeshStatusCode -> MeshStatusCode -> Bool
$c== :: MeshStatusCode -> MeshStatusCode -> Bool
Prelude.Eq,
Eq MeshStatusCode
Eq MeshStatusCode
-> (MeshStatusCode -> MeshStatusCode -> Ordering)
-> (MeshStatusCode -> MeshStatusCode -> Bool)
-> (MeshStatusCode -> MeshStatusCode -> Bool)
-> (MeshStatusCode -> MeshStatusCode -> Bool)
-> (MeshStatusCode -> MeshStatusCode -> Bool)
-> (MeshStatusCode -> MeshStatusCode -> MeshStatusCode)
-> (MeshStatusCode -> MeshStatusCode -> MeshStatusCode)
-> Ord MeshStatusCode
MeshStatusCode -> MeshStatusCode -> Bool
MeshStatusCode -> MeshStatusCode -> Ordering
MeshStatusCode -> MeshStatusCode -> MeshStatusCode
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 :: MeshStatusCode -> MeshStatusCode -> MeshStatusCode
$cmin :: MeshStatusCode -> MeshStatusCode -> MeshStatusCode
max :: MeshStatusCode -> MeshStatusCode -> MeshStatusCode
$cmax :: MeshStatusCode -> MeshStatusCode -> MeshStatusCode
>= :: MeshStatusCode -> MeshStatusCode -> Bool
$c>= :: MeshStatusCode -> MeshStatusCode -> Bool
> :: MeshStatusCode -> MeshStatusCode -> Bool
$c> :: MeshStatusCode -> MeshStatusCode -> Bool
<= :: MeshStatusCode -> MeshStatusCode -> Bool
$c<= :: MeshStatusCode -> MeshStatusCode -> Bool
< :: MeshStatusCode -> MeshStatusCode -> Bool
$c< :: MeshStatusCode -> MeshStatusCode -> Bool
compare :: MeshStatusCode -> MeshStatusCode -> Ordering
$ccompare :: MeshStatusCode -> MeshStatusCode -> Ordering
$cp1Ord :: Eq MeshStatusCode
Prelude.Ord,
(forall x. MeshStatusCode -> Rep MeshStatusCode x)
-> (forall x. Rep MeshStatusCode x -> MeshStatusCode)
-> Generic MeshStatusCode
forall x. Rep MeshStatusCode x -> MeshStatusCode
forall x. MeshStatusCode -> Rep MeshStatusCode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep MeshStatusCode x -> MeshStatusCode
$cfrom :: forall x. MeshStatusCode -> Rep MeshStatusCode x
Prelude.Generic
)
deriving newtype
( Int -> MeshStatusCode -> Int
MeshStatusCode -> Int
(Int -> MeshStatusCode -> Int)
-> (MeshStatusCode -> Int) -> Hashable MeshStatusCode
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: MeshStatusCode -> Int
$chash :: MeshStatusCode -> Int
hashWithSalt :: Int -> MeshStatusCode -> Int
$chashWithSalt :: Int -> MeshStatusCode -> Int
Prelude.Hashable,
MeshStatusCode -> ()
(MeshStatusCode -> ()) -> NFData MeshStatusCode
forall a. (a -> ()) -> NFData a
rnf :: MeshStatusCode -> ()
$crnf :: MeshStatusCode -> ()
Prelude.NFData,
Text -> Either String MeshStatusCode
(Text -> Either String MeshStatusCode) -> FromText MeshStatusCode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String MeshStatusCode
$cfromText :: Text -> Either String MeshStatusCode
Core.FromText,
MeshStatusCode -> Text
(MeshStatusCode -> Text) -> ToText MeshStatusCode
forall a. (a -> Text) -> ToText a
toText :: MeshStatusCode -> Text
$ctoText :: MeshStatusCode -> Text
Core.ToText,
MeshStatusCode -> ByteString
(MeshStatusCode -> ByteString) -> ToByteString MeshStatusCode
forall a. (a -> ByteString) -> ToByteString a
toBS :: MeshStatusCode -> ByteString
$ctoBS :: MeshStatusCode -> ByteString
Core.ToByteString,
MeshStatusCode -> ByteStringBuilder
(MeshStatusCode -> ByteStringBuilder) -> ToLog MeshStatusCode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: MeshStatusCode -> ByteStringBuilder
$cbuild :: MeshStatusCode -> ByteStringBuilder
Core.ToLog,
HeaderName -> MeshStatusCode -> [Header]
(HeaderName -> MeshStatusCode -> [Header])
-> ToHeader MeshStatusCode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> MeshStatusCode -> [Header]
$ctoHeader :: HeaderName -> MeshStatusCode -> [Header]
Core.ToHeader,
MeshStatusCode -> QueryString
(MeshStatusCode -> QueryString) -> ToQuery MeshStatusCode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: MeshStatusCode -> QueryString
$ctoQuery :: MeshStatusCode -> QueryString
Core.ToQuery,
Value -> Parser [MeshStatusCode]
Value -> Parser MeshStatusCode
(Value -> Parser MeshStatusCode)
-> (Value -> Parser [MeshStatusCode]) -> FromJSON MeshStatusCode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [MeshStatusCode]
$cparseJSONList :: Value -> Parser [MeshStatusCode]
parseJSON :: Value -> Parser MeshStatusCode
$cparseJSON :: Value -> Parser MeshStatusCode
Core.FromJSON,
FromJSONKeyFunction [MeshStatusCode]
FromJSONKeyFunction MeshStatusCode
FromJSONKeyFunction MeshStatusCode
-> FromJSONKeyFunction [MeshStatusCode]
-> FromJSONKey MeshStatusCode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [MeshStatusCode]
$cfromJSONKeyList :: FromJSONKeyFunction [MeshStatusCode]
fromJSONKey :: FromJSONKeyFunction MeshStatusCode
$cfromJSONKey :: FromJSONKeyFunction MeshStatusCode
Core.FromJSONKey,
[MeshStatusCode] -> Encoding
[MeshStatusCode] -> Value
MeshStatusCode -> Encoding
MeshStatusCode -> Value
(MeshStatusCode -> Value)
-> (MeshStatusCode -> Encoding)
-> ([MeshStatusCode] -> Value)
-> ([MeshStatusCode] -> Encoding)
-> ToJSON MeshStatusCode
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [MeshStatusCode] -> Encoding
$ctoEncodingList :: [MeshStatusCode] -> Encoding
toJSONList :: [MeshStatusCode] -> Value
$ctoJSONList :: [MeshStatusCode] -> Value
toEncoding :: MeshStatusCode -> Encoding
$ctoEncoding :: MeshStatusCode -> Encoding
toJSON :: MeshStatusCode -> Value
$ctoJSON :: MeshStatusCode -> Value
Core.ToJSON,
ToJSONKeyFunction [MeshStatusCode]
ToJSONKeyFunction MeshStatusCode
ToJSONKeyFunction MeshStatusCode
-> ToJSONKeyFunction [MeshStatusCode] -> ToJSONKey MeshStatusCode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [MeshStatusCode]
$ctoJSONKeyList :: ToJSONKeyFunction [MeshStatusCode]
toJSONKey :: ToJSONKeyFunction MeshStatusCode
$ctoJSONKey :: ToJSONKeyFunction MeshStatusCode
Core.ToJSONKey,
[Node] -> Either String MeshStatusCode
([Node] -> Either String MeshStatusCode) -> FromXML MeshStatusCode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String MeshStatusCode
$cparseXML :: [Node] -> Either String MeshStatusCode
Core.FromXML,
MeshStatusCode -> XML
(MeshStatusCode -> XML) -> ToXML MeshStatusCode
forall a. (a -> XML) -> ToXML a
toXML :: MeshStatusCode -> XML
$ctoXML :: MeshStatusCode -> XML
Core.ToXML
)
pattern MeshStatusCode_ACTIVE :: MeshStatusCode
pattern $bMeshStatusCode_ACTIVE :: MeshStatusCode
$mMeshStatusCode_ACTIVE :: forall r. MeshStatusCode -> (Void# -> r) -> (Void# -> r) -> r
MeshStatusCode_ACTIVE = MeshStatusCode' "ACTIVE"
pattern MeshStatusCode_DELETED :: MeshStatusCode
pattern $bMeshStatusCode_DELETED :: MeshStatusCode
$mMeshStatusCode_DELETED :: forall r. MeshStatusCode -> (Void# -> r) -> (Void# -> r) -> r
MeshStatusCode_DELETED = MeshStatusCode' "DELETED"
pattern MeshStatusCode_INACTIVE :: MeshStatusCode
pattern $bMeshStatusCode_INACTIVE :: MeshStatusCode
$mMeshStatusCode_INACTIVE :: forall r. MeshStatusCode -> (Void# -> r) -> (Void# -> r) -> r
MeshStatusCode_INACTIVE = MeshStatusCode' "INACTIVE"
{-# COMPLETE
MeshStatusCode_ACTIVE,
MeshStatusCode_DELETED,
MeshStatusCode_INACTIVE,
MeshStatusCode'
#-}