{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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.Prelude as Prelude

newtype FlexMatchMode = FlexMatchMode'
  { FlexMatchMode -> Text
fromFlexMatchMode ::
      Core.Text
  }
  deriving stock
    ( Int -> FlexMatchMode -> ShowS
[FlexMatchMode] -> ShowS
FlexMatchMode -> String
(Int -> FlexMatchMode -> ShowS)
-> (FlexMatchMode -> String)
-> ([FlexMatchMode] -> ShowS)
-> Show FlexMatchMode
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]
(Int -> ReadS FlexMatchMode)
-> ReadS [FlexMatchMode]
-> ReadPrec FlexMatchMode
-> ReadPrec [FlexMatchMode]
-> Read 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
(FlexMatchMode -> FlexMatchMode -> Bool)
-> (FlexMatchMode -> FlexMatchMode -> Bool) -> Eq FlexMatchMode
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
Eq FlexMatchMode
-> (FlexMatchMode -> FlexMatchMode -> Ordering)
-> (FlexMatchMode -> FlexMatchMode -> Bool)
-> (FlexMatchMode -> FlexMatchMode -> Bool)
-> (FlexMatchMode -> FlexMatchMode -> Bool)
-> (FlexMatchMode -> FlexMatchMode -> Bool)
-> (FlexMatchMode -> FlexMatchMode -> FlexMatchMode)
-> (FlexMatchMode -> FlexMatchMode -> FlexMatchMode)
-> Ord 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
$cp1Ord :: Eq FlexMatchMode
Prelude.Ord,
      (forall x. FlexMatchMode -> Rep FlexMatchMode x)
-> (forall x. Rep FlexMatchMode x -> FlexMatchMode)
-> Generic FlexMatchMode
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
    ( Int -> FlexMatchMode -> Int
FlexMatchMode -> Int
(Int -> FlexMatchMode -> Int)
-> (FlexMatchMode -> Int) -> Hashable FlexMatchMode
forall 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 -> ()
(FlexMatchMode -> ()) -> NFData FlexMatchMode
forall a. (a -> ()) -> NFData a
rnf :: FlexMatchMode -> ()
$crnf :: FlexMatchMode -> ()
Prelude.NFData,
      Text -> Either String FlexMatchMode
(Text -> Either String FlexMatchMode) -> FromText FlexMatchMode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String FlexMatchMode
$cfromText :: Text -> Either String FlexMatchMode
Core.FromText,
      FlexMatchMode -> Text
(FlexMatchMode -> Text) -> ToText FlexMatchMode
forall a. (a -> Text) -> ToText a
toText :: FlexMatchMode -> Text
$ctoText :: FlexMatchMode -> Text
Core.ToText,
      FlexMatchMode -> ByteString
(FlexMatchMode -> ByteString) -> ToByteString FlexMatchMode
forall a. (a -> ByteString) -> ToByteString a
toBS :: FlexMatchMode -> ByteString
$ctoBS :: FlexMatchMode -> ByteString
Core.ToByteString,
      FlexMatchMode -> ByteStringBuilder
(FlexMatchMode -> ByteStringBuilder) -> ToLog FlexMatchMode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: FlexMatchMode -> ByteStringBuilder
$cbuild :: FlexMatchMode -> ByteStringBuilder
Core.ToLog,
      HeaderName -> FlexMatchMode -> [Header]
(HeaderName -> FlexMatchMode -> [Header]) -> ToHeader FlexMatchMode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> FlexMatchMode -> [Header]
$ctoHeader :: HeaderName -> FlexMatchMode -> [Header]
Core.ToHeader,
      FlexMatchMode -> QueryString
(FlexMatchMode -> QueryString) -> ToQuery FlexMatchMode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: FlexMatchMode -> QueryString
$ctoQuery :: FlexMatchMode -> QueryString
Core.ToQuery,
      Value -> Parser [FlexMatchMode]
Value -> Parser FlexMatchMode
(Value -> Parser FlexMatchMode)
-> (Value -> Parser [FlexMatchMode]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [FlexMatchMode]
FromJSONKeyFunction FlexMatchMode
FromJSONKeyFunction FlexMatchMode
-> FromJSONKeyFunction [FlexMatchMode] -> FromJSONKey FlexMatchMode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [FlexMatchMode]
$cfromJSONKeyList :: FromJSONKeyFunction [FlexMatchMode]
fromJSONKey :: FromJSONKeyFunction FlexMatchMode
$cfromJSONKey :: FromJSONKeyFunction FlexMatchMode
Core.FromJSONKey,
      [FlexMatchMode] -> Encoding
[FlexMatchMode] -> Value
FlexMatchMode -> Encoding
FlexMatchMode -> Value
(FlexMatchMode -> Value)
-> (FlexMatchMode -> Encoding)
-> ([FlexMatchMode] -> Value)
-> ([FlexMatchMode] -> Encoding)
-> ToJSON FlexMatchMode
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
Core.ToJSON,
      ToJSONKeyFunction [FlexMatchMode]
ToJSONKeyFunction FlexMatchMode
ToJSONKeyFunction FlexMatchMode
-> ToJSONKeyFunction [FlexMatchMode] -> ToJSONKey FlexMatchMode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [FlexMatchMode]
$ctoJSONKeyList :: ToJSONKeyFunction [FlexMatchMode]
toJSONKey :: ToJSONKeyFunction FlexMatchMode
$ctoJSONKey :: ToJSONKeyFunction FlexMatchMode
Core.ToJSONKey,
      [Node] -> Either String FlexMatchMode
([Node] -> Either String FlexMatchMode) -> FromXML FlexMatchMode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String FlexMatchMode
$cparseXML :: [Node] -> Either String FlexMatchMode
Core.FromXML,
      FlexMatchMode -> XML
(FlexMatchMode -> XML) -> ToXML FlexMatchMode
forall a. (a -> XML) -> ToXML a
toXML :: FlexMatchMode -> XML
$ctoXML :: FlexMatchMode -> XML
Core.ToXML
    )

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

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

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