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