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