{-# 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.AcceptanceType
-- 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.AcceptanceType
  ( AcceptanceType
      ( ..,
        AcceptanceType_ACCEPT,
        AcceptanceType_REJECT
      ),
  )
where

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

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

pattern AcceptanceType_ACCEPT :: AcceptanceType
pattern $bAcceptanceType_ACCEPT :: AcceptanceType
$mAcceptanceType_ACCEPT :: forall {r}. AcceptanceType -> ((# #) -> r) -> ((# #) -> r) -> r
AcceptanceType_ACCEPT = AcceptanceType' "ACCEPT"

pattern AcceptanceType_REJECT :: AcceptanceType
pattern $bAcceptanceType_REJECT :: AcceptanceType
$mAcceptanceType_REJECT :: forall {r}. AcceptanceType -> ((# #) -> r) -> ((# #) -> r) -> r
AcceptanceType_REJECT = AcceptanceType' "REJECT"

{-# COMPLETE
  AcceptanceType_ACCEPT,
  AcceptanceType_REJECT,
  AcceptanceType'
  #-}