{-# 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.LocationUpdateStatus
-- 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.LocationUpdateStatus
  ( LocationUpdateStatus
      ( ..,
        LocationUpdateStatus_PENDING_UPDATE
      ),
  )
where

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

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

pattern LocationUpdateStatus_PENDING_UPDATE :: LocationUpdateStatus
pattern $bLocationUpdateStatus_PENDING_UPDATE :: LocationUpdateStatus
$mLocationUpdateStatus_PENDING_UPDATE :: forall r. LocationUpdateStatus -> (Void# -> r) -> (Void# -> r) -> r
LocationUpdateStatus_PENDING_UPDATE = LocationUpdateStatus' "PENDING_UPDATE"

{-# COMPLETE
  LocationUpdateStatus_PENDING_UPDATE,
  LocationUpdateStatus'
  #-}