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

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

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

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

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

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