{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.GameLift.Types.GameServer where
import qualified Amazonka.Core as Core
import Amazonka.GameLift.Types.GameServerClaimStatus
import Amazonka.GameLift.Types.GameServerUtilizationStatus
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data GameServer = GameServer'
{
GameServer -> Maybe Text
instanceId :: Prelude.Maybe Prelude.Text,
GameServer -> Maybe POSIX
lastClaimTime :: Prelude.Maybe Core.POSIX,
GameServer -> Maybe Text
gameServerGroupName :: Prelude.Maybe Prelude.Text,
GameServer -> Maybe Text
gameServerData :: Prelude.Maybe Prelude.Text,
GameServer -> Maybe GameServerClaimStatus
claimStatus :: Prelude.Maybe GameServerClaimStatus,
GameServer -> Maybe Text
gameServerId :: Prelude.Maybe Prelude.Text,
GameServer -> Maybe GameServerUtilizationStatus
utilizationStatus :: Prelude.Maybe GameServerUtilizationStatus,
GameServer -> Maybe POSIX
registrationTime :: Prelude.Maybe Core.POSIX,
GameServer -> Maybe POSIX
lastHealthCheckTime :: Prelude.Maybe Core.POSIX,
GameServer -> Maybe Text
connectionInfo :: Prelude.Maybe Prelude.Text,
GameServer -> Maybe Text
gameServerGroupArn :: Prelude.Maybe Prelude.Text
}
deriving (GameServer -> GameServer -> Bool
(GameServer -> GameServer -> Bool)
-> (GameServer -> GameServer -> Bool) -> Eq GameServer
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GameServer -> GameServer -> Bool
$c/= :: GameServer -> GameServer -> Bool
== :: GameServer -> GameServer -> Bool
$c== :: GameServer -> GameServer -> Bool
Prelude.Eq, ReadPrec [GameServer]
ReadPrec GameServer
Int -> ReadS GameServer
ReadS [GameServer]
(Int -> ReadS GameServer)
-> ReadS [GameServer]
-> ReadPrec GameServer
-> ReadPrec [GameServer]
-> Read GameServer
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GameServer]
$creadListPrec :: ReadPrec [GameServer]
readPrec :: ReadPrec GameServer
$creadPrec :: ReadPrec GameServer
readList :: ReadS [GameServer]
$creadList :: ReadS [GameServer]
readsPrec :: Int -> ReadS GameServer
$creadsPrec :: Int -> ReadS GameServer
Prelude.Read, Int -> GameServer -> ShowS
[GameServer] -> ShowS
GameServer -> String
(Int -> GameServer -> ShowS)
-> (GameServer -> String)
-> ([GameServer] -> ShowS)
-> Show GameServer
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GameServer] -> ShowS
$cshowList :: [GameServer] -> ShowS
show :: GameServer -> String
$cshow :: GameServer -> String
showsPrec :: Int -> GameServer -> ShowS
$cshowsPrec :: Int -> GameServer -> ShowS
Prelude.Show, (forall x. GameServer -> Rep GameServer x)
-> (forall x. Rep GameServer x -> GameServer) -> Generic GameServer
forall x. Rep GameServer x -> GameServer
forall x. GameServer -> Rep GameServer x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GameServer x -> GameServer
$cfrom :: forall x. GameServer -> Rep GameServer x
Prelude.Generic)
newGameServer ::
GameServer
newGameServer :: GameServer
newGameServer =
GameServer' :: Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe GameServerClaimStatus
-> Maybe Text
-> Maybe GameServerUtilizationStatus
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> GameServer
GameServer'
{ $sel:instanceId:GameServer' :: Maybe Text
instanceId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lastClaimTime:GameServer' :: Maybe POSIX
lastClaimTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:gameServerGroupName:GameServer' :: Maybe Text
gameServerGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:gameServerData:GameServer' :: Maybe Text
gameServerData = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:claimStatus:GameServer' :: Maybe GameServerClaimStatus
claimStatus = Maybe GameServerClaimStatus
forall a. Maybe a
Prelude.Nothing,
$sel:gameServerId:GameServer' :: Maybe Text
gameServerId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:utilizationStatus:GameServer' :: Maybe GameServerUtilizationStatus
utilizationStatus = Maybe GameServerUtilizationStatus
forall a. Maybe a
Prelude.Nothing,
$sel:registrationTime:GameServer' :: Maybe POSIX
registrationTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:lastHealthCheckTime:GameServer' :: Maybe POSIX
lastHealthCheckTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:connectionInfo:GameServer' :: Maybe Text
connectionInfo = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:gameServerGroupArn:GameServer' :: Maybe Text
gameServerGroupArn = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
gameServer_instanceId :: Lens.Lens' GameServer (Prelude.Maybe Prelude.Text)
gameServer_instanceId :: (Maybe Text -> f (Maybe Text)) -> GameServer -> f GameServer
gameServer_instanceId = (GameServer -> Maybe Text)
-> (GameServer -> Maybe Text -> GameServer)
-> Lens GameServer GameServer (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GameServer' {Maybe Text
instanceId :: Maybe Text
$sel:instanceId:GameServer' :: GameServer -> Maybe Text
instanceId} -> Maybe Text
instanceId) (\s :: GameServer
s@GameServer' {} Maybe Text
a -> GameServer
s {$sel:instanceId:GameServer' :: Maybe Text
instanceId = Maybe Text
a} :: GameServer)
gameServer_lastClaimTime :: Lens.Lens' GameServer (Prelude.Maybe Prelude.UTCTime)
gameServer_lastClaimTime :: (Maybe UTCTime -> f (Maybe UTCTime)) -> GameServer -> f GameServer
gameServer_lastClaimTime = (GameServer -> Maybe POSIX)
-> (GameServer -> Maybe POSIX -> GameServer)
-> Lens GameServer GameServer (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GameServer' {Maybe POSIX
lastClaimTime :: Maybe POSIX
$sel:lastClaimTime:GameServer' :: GameServer -> Maybe POSIX
lastClaimTime} -> Maybe POSIX
lastClaimTime) (\s :: GameServer
s@GameServer' {} Maybe POSIX
a -> GameServer
s {$sel:lastClaimTime:GameServer' :: Maybe POSIX
lastClaimTime = Maybe POSIX
a} :: GameServer) ((Maybe POSIX -> f (Maybe POSIX)) -> GameServer -> f GameServer)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GameServer
-> f GameServer
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
gameServer_gameServerGroupName :: Lens.Lens' GameServer (Prelude.Maybe Prelude.Text)
gameServer_gameServerGroupName :: (Maybe Text -> f (Maybe Text)) -> GameServer -> f GameServer
gameServer_gameServerGroupName = (GameServer -> Maybe Text)
-> (GameServer -> Maybe Text -> GameServer)
-> Lens GameServer GameServer (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GameServer' {Maybe Text
gameServerGroupName :: Maybe Text
$sel:gameServerGroupName:GameServer' :: GameServer -> Maybe Text
gameServerGroupName} -> Maybe Text
gameServerGroupName) (\s :: GameServer
s@GameServer' {} Maybe Text
a -> GameServer
s {$sel:gameServerGroupName:GameServer' :: Maybe Text
gameServerGroupName = Maybe Text
a} :: GameServer)
gameServer_gameServerData :: Lens.Lens' GameServer (Prelude.Maybe Prelude.Text)
gameServer_gameServerData :: (Maybe Text -> f (Maybe Text)) -> GameServer -> f GameServer
gameServer_gameServerData = (GameServer -> Maybe Text)
-> (GameServer -> Maybe Text -> GameServer)
-> Lens GameServer GameServer (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GameServer' {Maybe Text
gameServerData :: Maybe Text
$sel:gameServerData:GameServer' :: GameServer -> Maybe Text
gameServerData} -> Maybe Text
gameServerData) (\s :: GameServer
s@GameServer' {} Maybe Text
a -> GameServer
s {$sel:gameServerData:GameServer' :: Maybe Text
gameServerData = Maybe Text
a} :: GameServer)
gameServer_claimStatus :: Lens.Lens' GameServer (Prelude.Maybe GameServerClaimStatus)
gameServer_claimStatus :: (Maybe GameServerClaimStatus -> f (Maybe GameServerClaimStatus))
-> GameServer -> f GameServer
gameServer_claimStatus = (GameServer -> Maybe GameServerClaimStatus)
-> (GameServer -> Maybe GameServerClaimStatus -> GameServer)
-> Lens
GameServer
GameServer
(Maybe GameServerClaimStatus)
(Maybe GameServerClaimStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GameServer' {Maybe GameServerClaimStatus
claimStatus :: Maybe GameServerClaimStatus
$sel:claimStatus:GameServer' :: GameServer -> Maybe GameServerClaimStatus
claimStatus} -> Maybe GameServerClaimStatus
claimStatus) (\s :: GameServer
s@GameServer' {} Maybe GameServerClaimStatus
a -> GameServer
s {$sel:claimStatus:GameServer' :: Maybe GameServerClaimStatus
claimStatus = Maybe GameServerClaimStatus
a} :: GameServer)
gameServer_gameServerId :: Lens.Lens' GameServer (Prelude.Maybe Prelude.Text)
gameServer_gameServerId :: (Maybe Text -> f (Maybe Text)) -> GameServer -> f GameServer
gameServer_gameServerId = (GameServer -> Maybe Text)
-> (GameServer -> Maybe Text -> GameServer)
-> Lens GameServer GameServer (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GameServer' {Maybe Text
gameServerId :: Maybe Text
$sel:gameServerId:GameServer' :: GameServer -> Maybe Text
gameServerId} -> Maybe Text
gameServerId) (\s :: GameServer
s@GameServer' {} Maybe Text
a -> GameServer
s {$sel:gameServerId:GameServer' :: Maybe Text
gameServerId = Maybe Text
a} :: GameServer)
gameServer_utilizationStatus :: Lens.Lens' GameServer (Prelude.Maybe GameServerUtilizationStatus)
gameServer_utilizationStatus :: (Maybe GameServerUtilizationStatus
-> f (Maybe GameServerUtilizationStatus))
-> GameServer -> f GameServer
gameServer_utilizationStatus = (GameServer -> Maybe GameServerUtilizationStatus)
-> (GameServer -> Maybe GameServerUtilizationStatus -> GameServer)
-> Lens
GameServer
GameServer
(Maybe GameServerUtilizationStatus)
(Maybe GameServerUtilizationStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GameServer' {Maybe GameServerUtilizationStatus
utilizationStatus :: Maybe GameServerUtilizationStatus
$sel:utilizationStatus:GameServer' :: GameServer -> Maybe GameServerUtilizationStatus
utilizationStatus} -> Maybe GameServerUtilizationStatus
utilizationStatus) (\s :: GameServer
s@GameServer' {} Maybe GameServerUtilizationStatus
a -> GameServer
s {$sel:utilizationStatus:GameServer' :: Maybe GameServerUtilizationStatus
utilizationStatus = Maybe GameServerUtilizationStatus
a} :: GameServer)
gameServer_registrationTime :: Lens.Lens' GameServer (Prelude.Maybe Prelude.UTCTime)
gameServer_registrationTime :: (Maybe UTCTime -> f (Maybe UTCTime)) -> GameServer -> f GameServer
gameServer_registrationTime = (GameServer -> Maybe POSIX)
-> (GameServer -> Maybe POSIX -> GameServer)
-> Lens GameServer GameServer (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GameServer' {Maybe POSIX
registrationTime :: Maybe POSIX
$sel:registrationTime:GameServer' :: GameServer -> Maybe POSIX
registrationTime} -> Maybe POSIX
registrationTime) (\s :: GameServer
s@GameServer' {} Maybe POSIX
a -> GameServer
s {$sel:registrationTime:GameServer' :: Maybe POSIX
registrationTime = Maybe POSIX
a} :: GameServer) ((Maybe POSIX -> f (Maybe POSIX)) -> GameServer -> f GameServer)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GameServer
-> f GameServer
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
gameServer_lastHealthCheckTime :: Lens.Lens' GameServer (Prelude.Maybe Prelude.UTCTime)
gameServer_lastHealthCheckTime :: (Maybe UTCTime -> f (Maybe UTCTime)) -> GameServer -> f GameServer
gameServer_lastHealthCheckTime = (GameServer -> Maybe POSIX)
-> (GameServer -> Maybe POSIX -> GameServer)
-> Lens GameServer GameServer (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GameServer' {Maybe POSIX
lastHealthCheckTime :: Maybe POSIX
$sel:lastHealthCheckTime:GameServer' :: GameServer -> Maybe POSIX
lastHealthCheckTime} -> Maybe POSIX
lastHealthCheckTime) (\s :: GameServer
s@GameServer' {} Maybe POSIX
a -> GameServer
s {$sel:lastHealthCheckTime:GameServer' :: Maybe POSIX
lastHealthCheckTime = Maybe POSIX
a} :: GameServer) ((Maybe POSIX -> f (Maybe POSIX)) -> GameServer -> f GameServer)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GameServer
-> f GameServer
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
gameServer_connectionInfo :: Lens.Lens' GameServer (Prelude.Maybe Prelude.Text)
gameServer_connectionInfo :: (Maybe Text -> f (Maybe Text)) -> GameServer -> f GameServer
gameServer_connectionInfo = (GameServer -> Maybe Text)
-> (GameServer -> Maybe Text -> GameServer)
-> Lens GameServer GameServer (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GameServer' {Maybe Text
connectionInfo :: Maybe Text
$sel:connectionInfo:GameServer' :: GameServer -> Maybe Text
connectionInfo} -> Maybe Text
connectionInfo) (\s :: GameServer
s@GameServer' {} Maybe Text
a -> GameServer
s {$sel:connectionInfo:GameServer' :: Maybe Text
connectionInfo = Maybe Text
a} :: GameServer)
gameServer_gameServerGroupArn :: Lens.Lens' GameServer (Prelude.Maybe Prelude.Text)
gameServer_gameServerGroupArn :: (Maybe Text -> f (Maybe Text)) -> GameServer -> f GameServer
gameServer_gameServerGroupArn = (GameServer -> Maybe Text)
-> (GameServer -> Maybe Text -> GameServer)
-> Lens GameServer GameServer (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GameServer' {Maybe Text
gameServerGroupArn :: Maybe Text
$sel:gameServerGroupArn:GameServer' :: GameServer -> Maybe Text
gameServerGroupArn} -> Maybe Text
gameServerGroupArn) (\s :: GameServer
s@GameServer' {} Maybe Text
a -> GameServer
s {$sel:gameServerGroupArn:GameServer' :: Maybe Text
gameServerGroupArn = Maybe Text
a} :: GameServer)
instance Core.FromJSON GameServer where
parseJSON :: Value -> Parser GameServer
parseJSON =
String
-> (Object -> Parser GameServer) -> Value -> Parser GameServer
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"GameServer"
( \Object
x ->
Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe GameServerClaimStatus
-> Maybe Text
-> Maybe GameServerUtilizationStatus
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> GameServer
GameServer'
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe GameServerClaimStatus
-> Maybe Text
-> Maybe GameServerUtilizationStatus
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> GameServer)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe GameServerClaimStatus
-> Maybe Text
-> Maybe GameServerUtilizationStatus
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> GameServer)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"InstanceId")
Parser
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe GameServerClaimStatus
-> Maybe Text
-> Maybe GameServerUtilizationStatus
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> GameServer)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe GameServerClaimStatus
-> Maybe Text
-> Maybe GameServerUtilizationStatus
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> GameServer)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LastClaimTime")
Parser
(Maybe Text
-> Maybe Text
-> Maybe GameServerClaimStatus
-> Maybe Text
-> Maybe GameServerUtilizationStatus
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> GameServer)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe GameServerClaimStatus
-> Maybe Text
-> Maybe GameServerUtilizationStatus
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> GameServer)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"GameServerGroupName")
Parser
(Maybe Text
-> Maybe GameServerClaimStatus
-> Maybe Text
-> Maybe GameServerUtilizationStatus
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> GameServer)
-> Parser (Maybe Text)
-> Parser
(Maybe GameServerClaimStatus
-> Maybe Text
-> Maybe GameServerUtilizationStatus
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> GameServer)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"GameServerData")
Parser
(Maybe GameServerClaimStatus
-> Maybe Text
-> Maybe GameServerUtilizationStatus
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> GameServer)
-> Parser (Maybe GameServerClaimStatus)
-> Parser
(Maybe Text
-> Maybe GameServerUtilizationStatus
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> GameServer)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe GameServerClaimStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ClaimStatus")
Parser
(Maybe Text
-> Maybe GameServerUtilizationStatus
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> GameServer)
-> Parser (Maybe Text)
-> Parser
(Maybe GameServerUtilizationStatus
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> GameServer)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"GameServerId")
Parser
(Maybe GameServerUtilizationStatus
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> GameServer)
-> Parser (Maybe GameServerUtilizationStatus)
-> Parser
(Maybe POSIX
-> Maybe POSIX -> Maybe Text -> Maybe Text -> GameServer)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe GameServerUtilizationStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"UtilizationStatus")
Parser
(Maybe POSIX
-> Maybe POSIX -> Maybe Text -> Maybe Text -> GameServer)
-> Parser (Maybe POSIX)
-> Parser (Maybe POSIX -> Maybe Text -> Maybe Text -> GameServer)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"RegistrationTime")
Parser (Maybe POSIX -> Maybe Text -> Maybe Text -> GameServer)
-> Parser (Maybe POSIX)
-> Parser (Maybe Text -> Maybe Text -> GameServer)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LastHealthCheckTime")
Parser (Maybe Text -> Maybe Text -> GameServer)
-> Parser (Maybe Text) -> Parser (Maybe Text -> GameServer)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ConnectionInfo")
Parser (Maybe Text -> GameServer)
-> Parser (Maybe Text) -> Parser GameServer
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"GameServerGroupArn")
)
instance Prelude.Hashable GameServer
instance Prelude.NFData GameServer