{-# 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.PlayerSession where
import qualified Amazonka.Core as Core
import Amazonka.GameLift.Types.PlayerSessionStatus
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data PlayerSession = PlayerSession'
{
PlayerSession -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
PlayerSession -> Maybe PlayerSessionStatus
status :: Prelude.Maybe PlayerSessionStatus,
PlayerSession -> Maybe Text
ipAddress :: Prelude.Maybe Prelude.Text,
PlayerSession -> Maybe Text
gameSessionId :: Prelude.Maybe Prelude.Text,
PlayerSession -> Maybe Text
fleetArn :: Prelude.Maybe Prelude.Text,
PlayerSession -> Maybe POSIX
terminationTime :: Prelude.Maybe Core.POSIX,
PlayerSession -> Maybe Text
playerSessionId :: Prelude.Maybe Prelude.Text,
PlayerSession -> Maybe Text
fleetId :: Prelude.Maybe Prelude.Text,
PlayerSession -> Maybe Text
playerData :: Prelude.Maybe Prelude.Text,
PlayerSession -> Maybe Text
playerId :: Prelude.Maybe Prelude.Text,
PlayerSession -> Maybe Text
dnsName :: Prelude.Maybe Prelude.Text,
PlayerSession -> Maybe Natural
port :: Prelude.Maybe Prelude.Natural
}
deriving (PlayerSession -> PlayerSession -> Bool
(PlayerSession -> PlayerSession -> Bool)
-> (PlayerSession -> PlayerSession -> Bool) -> Eq PlayerSession
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PlayerSession -> PlayerSession -> Bool
$c/= :: PlayerSession -> PlayerSession -> Bool
== :: PlayerSession -> PlayerSession -> Bool
$c== :: PlayerSession -> PlayerSession -> Bool
Prelude.Eq, ReadPrec [PlayerSession]
ReadPrec PlayerSession
Int -> ReadS PlayerSession
ReadS [PlayerSession]
(Int -> ReadS PlayerSession)
-> ReadS [PlayerSession]
-> ReadPrec PlayerSession
-> ReadPrec [PlayerSession]
-> Read PlayerSession
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PlayerSession]
$creadListPrec :: ReadPrec [PlayerSession]
readPrec :: ReadPrec PlayerSession
$creadPrec :: ReadPrec PlayerSession
readList :: ReadS [PlayerSession]
$creadList :: ReadS [PlayerSession]
readsPrec :: Int -> ReadS PlayerSession
$creadsPrec :: Int -> ReadS PlayerSession
Prelude.Read, Int -> PlayerSession -> ShowS
[PlayerSession] -> ShowS
PlayerSession -> String
(Int -> PlayerSession -> ShowS)
-> (PlayerSession -> String)
-> ([PlayerSession] -> ShowS)
-> Show PlayerSession
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PlayerSession] -> ShowS
$cshowList :: [PlayerSession] -> ShowS
show :: PlayerSession -> String
$cshow :: PlayerSession -> String
showsPrec :: Int -> PlayerSession -> ShowS
$cshowsPrec :: Int -> PlayerSession -> ShowS
Prelude.Show, (forall x. PlayerSession -> Rep PlayerSession x)
-> (forall x. Rep PlayerSession x -> PlayerSession)
-> Generic PlayerSession
forall x. Rep PlayerSession x -> PlayerSession
forall x. PlayerSession -> Rep PlayerSession x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PlayerSession x -> PlayerSession
$cfrom :: forall x. PlayerSession -> Rep PlayerSession x
Prelude.Generic)
newPlayerSession ::
PlayerSession
newPlayerSession :: PlayerSession
newPlayerSession =
PlayerSession' :: Maybe POSIX
-> Maybe PlayerSessionStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> PlayerSession
PlayerSession'
{ $sel:creationTime:PlayerSession' :: Maybe POSIX
creationTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:status:PlayerSession' :: Maybe PlayerSessionStatus
status = Maybe PlayerSessionStatus
forall a. Maybe a
Prelude.Nothing,
$sel:ipAddress:PlayerSession' :: Maybe Text
ipAddress = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:gameSessionId:PlayerSession' :: Maybe Text
gameSessionId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:fleetArn:PlayerSession' :: Maybe Text
fleetArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:terminationTime:PlayerSession' :: Maybe POSIX
terminationTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:playerSessionId:PlayerSession' :: Maybe Text
playerSessionId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:fleetId:PlayerSession' :: Maybe Text
fleetId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:playerData:PlayerSession' :: Maybe Text
playerData = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:playerId:PlayerSession' :: Maybe Text
playerId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:dnsName:PlayerSession' :: Maybe Text
dnsName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:port:PlayerSession' :: Maybe Natural
port = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
playerSession_creationTime :: Lens.Lens' PlayerSession (Prelude.Maybe Prelude.UTCTime)
playerSession_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> PlayerSession -> f PlayerSession
playerSession_creationTime = (PlayerSession -> Maybe POSIX)
-> (PlayerSession -> Maybe POSIX -> PlayerSession)
-> Lens PlayerSession PlayerSession (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PlayerSession' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:PlayerSession' :: PlayerSession -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: PlayerSession
s@PlayerSession' {} Maybe POSIX
a -> PlayerSession
s {$sel:creationTime:PlayerSession' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: PlayerSession) ((Maybe POSIX -> f (Maybe POSIX))
-> PlayerSession -> f PlayerSession)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> PlayerSession
-> f PlayerSession
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
playerSession_status :: Lens.Lens' PlayerSession (Prelude.Maybe PlayerSessionStatus)
playerSession_status :: (Maybe PlayerSessionStatus -> f (Maybe PlayerSessionStatus))
-> PlayerSession -> f PlayerSession
playerSession_status = (PlayerSession -> Maybe PlayerSessionStatus)
-> (PlayerSession -> Maybe PlayerSessionStatus -> PlayerSession)
-> Lens
PlayerSession
PlayerSession
(Maybe PlayerSessionStatus)
(Maybe PlayerSessionStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PlayerSession' {Maybe PlayerSessionStatus
status :: Maybe PlayerSessionStatus
$sel:status:PlayerSession' :: PlayerSession -> Maybe PlayerSessionStatus
status} -> Maybe PlayerSessionStatus
status) (\s :: PlayerSession
s@PlayerSession' {} Maybe PlayerSessionStatus
a -> PlayerSession
s {$sel:status:PlayerSession' :: Maybe PlayerSessionStatus
status = Maybe PlayerSessionStatus
a} :: PlayerSession)
playerSession_ipAddress :: Lens.Lens' PlayerSession (Prelude.Maybe Prelude.Text)
playerSession_ipAddress :: (Maybe Text -> f (Maybe Text)) -> PlayerSession -> f PlayerSession
playerSession_ipAddress = (PlayerSession -> Maybe Text)
-> (PlayerSession -> Maybe Text -> PlayerSession)
-> Lens PlayerSession PlayerSession (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PlayerSession' {Maybe Text
ipAddress :: Maybe Text
$sel:ipAddress:PlayerSession' :: PlayerSession -> Maybe Text
ipAddress} -> Maybe Text
ipAddress) (\s :: PlayerSession
s@PlayerSession' {} Maybe Text
a -> PlayerSession
s {$sel:ipAddress:PlayerSession' :: Maybe Text
ipAddress = Maybe Text
a} :: PlayerSession)
playerSession_gameSessionId :: Lens.Lens' PlayerSession (Prelude.Maybe Prelude.Text)
playerSession_gameSessionId :: (Maybe Text -> f (Maybe Text)) -> PlayerSession -> f PlayerSession
playerSession_gameSessionId = (PlayerSession -> Maybe Text)
-> (PlayerSession -> Maybe Text -> PlayerSession)
-> Lens PlayerSession PlayerSession (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PlayerSession' {Maybe Text
gameSessionId :: Maybe Text
$sel:gameSessionId:PlayerSession' :: PlayerSession -> Maybe Text
gameSessionId} -> Maybe Text
gameSessionId) (\s :: PlayerSession
s@PlayerSession' {} Maybe Text
a -> PlayerSession
s {$sel:gameSessionId:PlayerSession' :: Maybe Text
gameSessionId = Maybe Text
a} :: PlayerSession)
playerSession_fleetArn :: Lens.Lens' PlayerSession (Prelude.Maybe Prelude.Text)
playerSession_fleetArn :: (Maybe Text -> f (Maybe Text)) -> PlayerSession -> f PlayerSession
playerSession_fleetArn = (PlayerSession -> Maybe Text)
-> (PlayerSession -> Maybe Text -> PlayerSession)
-> Lens PlayerSession PlayerSession (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PlayerSession' {Maybe Text
fleetArn :: Maybe Text
$sel:fleetArn:PlayerSession' :: PlayerSession -> Maybe Text
fleetArn} -> Maybe Text
fleetArn) (\s :: PlayerSession
s@PlayerSession' {} Maybe Text
a -> PlayerSession
s {$sel:fleetArn:PlayerSession' :: Maybe Text
fleetArn = Maybe Text
a} :: PlayerSession)
playerSession_terminationTime :: Lens.Lens' PlayerSession (Prelude.Maybe Prelude.UTCTime)
playerSession_terminationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> PlayerSession -> f PlayerSession
playerSession_terminationTime = (PlayerSession -> Maybe POSIX)
-> (PlayerSession -> Maybe POSIX -> PlayerSession)
-> Lens PlayerSession PlayerSession (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PlayerSession' {Maybe POSIX
terminationTime :: Maybe POSIX
$sel:terminationTime:PlayerSession' :: PlayerSession -> Maybe POSIX
terminationTime} -> Maybe POSIX
terminationTime) (\s :: PlayerSession
s@PlayerSession' {} Maybe POSIX
a -> PlayerSession
s {$sel:terminationTime:PlayerSession' :: Maybe POSIX
terminationTime = Maybe POSIX
a} :: PlayerSession) ((Maybe POSIX -> f (Maybe POSIX))
-> PlayerSession -> f PlayerSession)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> PlayerSession
-> f PlayerSession
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
playerSession_playerSessionId :: Lens.Lens' PlayerSession (Prelude.Maybe Prelude.Text)
playerSession_playerSessionId :: (Maybe Text -> f (Maybe Text)) -> PlayerSession -> f PlayerSession
playerSession_playerSessionId = (PlayerSession -> Maybe Text)
-> (PlayerSession -> Maybe Text -> PlayerSession)
-> Lens PlayerSession PlayerSession (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PlayerSession' {Maybe Text
playerSessionId :: Maybe Text
$sel:playerSessionId:PlayerSession' :: PlayerSession -> Maybe Text
playerSessionId} -> Maybe Text
playerSessionId) (\s :: PlayerSession
s@PlayerSession' {} Maybe Text
a -> PlayerSession
s {$sel:playerSessionId:PlayerSession' :: Maybe Text
playerSessionId = Maybe Text
a} :: PlayerSession)
playerSession_fleetId :: Lens.Lens' PlayerSession (Prelude.Maybe Prelude.Text)
playerSession_fleetId :: (Maybe Text -> f (Maybe Text)) -> PlayerSession -> f PlayerSession
playerSession_fleetId = (PlayerSession -> Maybe Text)
-> (PlayerSession -> Maybe Text -> PlayerSession)
-> Lens PlayerSession PlayerSession (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PlayerSession' {Maybe Text
fleetId :: Maybe Text
$sel:fleetId:PlayerSession' :: PlayerSession -> Maybe Text
fleetId} -> Maybe Text
fleetId) (\s :: PlayerSession
s@PlayerSession' {} Maybe Text
a -> PlayerSession
s {$sel:fleetId:PlayerSession' :: Maybe Text
fleetId = Maybe Text
a} :: PlayerSession)
playerSession_playerData :: Lens.Lens' PlayerSession (Prelude.Maybe Prelude.Text)
playerSession_playerData :: (Maybe Text -> f (Maybe Text)) -> PlayerSession -> f PlayerSession
playerSession_playerData = (PlayerSession -> Maybe Text)
-> (PlayerSession -> Maybe Text -> PlayerSession)
-> Lens PlayerSession PlayerSession (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PlayerSession' {Maybe Text
playerData :: Maybe Text
$sel:playerData:PlayerSession' :: PlayerSession -> Maybe Text
playerData} -> Maybe Text
playerData) (\s :: PlayerSession
s@PlayerSession' {} Maybe Text
a -> PlayerSession
s {$sel:playerData:PlayerSession' :: Maybe Text
playerData = Maybe Text
a} :: PlayerSession)
playerSession_playerId :: Lens.Lens' PlayerSession (Prelude.Maybe Prelude.Text)
playerSession_playerId :: (Maybe Text -> f (Maybe Text)) -> PlayerSession -> f PlayerSession
playerSession_playerId = (PlayerSession -> Maybe Text)
-> (PlayerSession -> Maybe Text -> PlayerSession)
-> Lens PlayerSession PlayerSession (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PlayerSession' {Maybe Text
playerId :: Maybe Text
$sel:playerId:PlayerSession' :: PlayerSession -> Maybe Text
playerId} -> Maybe Text
playerId) (\s :: PlayerSession
s@PlayerSession' {} Maybe Text
a -> PlayerSession
s {$sel:playerId:PlayerSession' :: Maybe Text
playerId = Maybe Text
a} :: PlayerSession)
playerSession_dnsName :: Lens.Lens' PlayerSession (Prelude.Maybe Prelude.Text)
playerSession_dnsName :: (Maybe Text -> f (Maybe Text)) -> PlayerSession -> f PlayerSession
playerSession_dnsName = (PlayerSession -> Maybe Text)
-> (PlayerSession -> Maybe Text -> PlayerSession)
-> Lens PlayerSession PlayerSession (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PlayerSession' {Maybe Text
dnsName :: Maybe Text
$sel:dnsName:PlayerSession' :: PlayerSession -> Maybe Text
dnsName} -> Maybe Text
dnsName) (\s :: PlayerSession
s@PlayerSession' {} Maybe Text
a -> PlayerSession
s {$sel:dnsName:PlayerSession' :: Maybe Text
dnsName = Maybe Text
a} :: PlayerSession)
playerSession_port :: Lens.Lens' PlayerSession (Prelude.Maybe Prelude.Natural)
playerSession_port :: (Maybe Natural -> f (Maybe Natural))
-> PlayerSession -> f PlayerSession
playerSession_port = (PlayerSession -> Maybe Natural)
-> (PlayerSession -> Maybe Natural -> PlayerSession)
-> Lens PlayerSession PlayerSession (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PlayerSession' {Maybe Natural
port :: Maybe Natural
$sel:port:PlayerSession' :: PlayerSession -> Maybe Natural
port} -> Maybe Natural
port) (\s :: PlayerSession
s@PlayerSession' {} Maybe Natural
a -> PlayerSession
s {$sel:port:PlayerSession' :: Maybe Natural
port = Maybe Natural
a} :: PlayerSession)
instance Core.FromJSON PlayerSession where
parseJSON :: Value -> Parser PlayerSession
parseJSON =
String
-> (Object -> Parser PlayerSession)
-> Value
-> Parser PlayerSession
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"PlayerSession"
( \Object
x ->
Maybe POSIX
-> Maybe PlayerSessionStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> PlayerSession
PlayerSession'
(Maybe POSIX
-> Maybe PlayerSessionStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> PlayerSession)
-> Parser (Maybe POSIX)
-> Parser
(Maybe PlayerSessionStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> PlayerSession)
forall (f :: * -> *) a b. Functor 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
"CreationTime")
Parser
(Maybe PlayerSessionStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> PlayerSession)
-> Parser (Maybe PlayerSessionStatus)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> PlayerSession)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe PlayerSessionStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Status")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> PlayerSession)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> PlayerSession)
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
"IpAddress")
Parser
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> PlayerSession)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> PlayerSession)
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
"GameSessionId")
Parser
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> PlayerSession)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> PlayerSession)
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
"FleetArn")
Parser
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> PlayerSession)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> PlayerSession)
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
"TerminationTime")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> PlayerSession)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> PlayerSession)
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
"PlayerSessionId")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> PlayerSession)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text -> Maybe Text -> Maybe Natural -> PlayerSession)
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
"FleetId")
Parser
(Maybe Text
-> Maybe Text -> Maybe Text -> Maybe Natural -> PlayerSession)
-> Parser (Maybe Text)
-> Parser
(Maybe Text -> Maybe Text -> Maybe Natural -> PlayerSession)
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
"PlayerData")
Parser (Maybe Text -> Maybe Text -> Maybe Natural -> PlayerSession)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe Natural -> PlayerSession)
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
"PlayerId")
Parser (Maybe Text -> Maybe Natural -> PlayerSession)
-> Parser (Maybe Text) -> Parser (Maybe Natural -> PlayerSession)
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
"DnsName")
Parser (Maybe Natural -> PlayerSession)
-> Parser (Maybe Natural) -> Parser PlayerSession
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Port")
)
instance Prelude.Hashable PlayerSession
instance Prelude.NFData PlayerSession