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