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