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