{-# 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.LocationFilter
-- 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.LocationFilter
  ( LocationFilter
      ( ..,
        LocationFilter_AWS,
        LocationFilter_CUSTOM
      ),
  )
where

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

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

pattern LocationFilter_AWS :: LocationFilter
pattern $bLocationFilter_AWS :: LocationFilter
$mLocationFilter_AWS :: forall {r}. LocationFilter -> ((# #) -> r) -> ((# #) -> r) -> r
LocationFilter_AWS = LocationFilter' "AWS"

pattern LocationFilter_CUSTOM :: LocationFilter
pattern $bLocationFilter_CUSTOM :: LocationFilter
$mLocationFilter_CUSTOM :: forall {r}. LocationFilter -> ((# #) -> r) -> ((# #) -> r) -> r
LocationFilter_CUSTOM = LocationFilter' "CUSTOM"

{-# COMPLETE
  LocationFilter_AWS,
  LocationFilter_CUSTOM,
  LocationFilter'
  #-}