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