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