{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.GameLift.Types.FlexMatchMode
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.GameLift.Types.FlexMatchMode
  ( FlexMatchMode
      ( ..,
        FlexMatchMode_STANDALONE,
        FlexMatchMode_WITH_QUEUE
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

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

pattern FlexMatchMode_STANDALONE :: FlexMatchMode
pattern $bFlexMatchMode_STANDALONE :: FlexMatchMode
$mFlexMatchMode_STANDALONE :: forall {r}. FlexMatchMode -> ((# #) -> r) -> ((# #) -> r) -> r
FlexMatchMode_STANDALONE = FlexMatchMode' "STANDALONE"

pattern FlexMatchMode_WITH_QUEUE :: FlexMatchMode
pattern $bFlexMatchMode_WITH_QUEUE :: FlexMatchMode
$mFlexMatchMode_WITH_QUEUE :: forall {r}. FlexMatchMode -> ((# #) -> r) -> ((# #) -> r) -> r
FlexMatchMode_WITH_QUEUE = FlexMatchMode' "WITH_QUEUE"

{-# COMPLETE
  FlexMatchMode_STANDALONE,
  FlexMatchMode_WITH_QUEUE,
  FlexMatchMode'
  #-}