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