{-# 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.BackfillMode
-- 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.BackfillMode
  ( BackfillMode
      ( ..,
        BackfillMode_AUTOMATIC,
        BackfillMode_MANUAL
      ),
  )
where

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

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

pattern BackfillMode_AUTOMATIC :: BackfillMode
pattern $bBackfillMode_AUTOMATIC :: BackfillMode
$mBackfillMode_AUTOMATIC :: forall {r}. BackfillMode -> ((# #) -> r) -> ((# #) -> r) -> r
BackfillMode_AUTOMATIC = BackfillMode' "AUTOMATIC"

pattern BackfillMode_MANUAL :: BackfillMode
pattern $bBackfillMode_MANUAL :: BackfillMode
$mBackfillMode_MANUAL :: forall {r}. BackfillMode -> ((# #) -> r) -> ((# #) -> r) -> r
BackfillMode_MANUAL = BackfillMode' "MANUAL"

{-# COMPLETE
  BackfillMode_AUTOMATIC,
  BackfillMode_MANUAL,
  BackfillMode'
  #-}