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