{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.GameLift.ClaimGameServer
-- 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)
--
-- __This operation is used with the GameLift FleetIQ solution and game
-- server groups.__
--
-- Locates an available game server and temporarily reserves it to host
-- gameplay and players. This operation is called from a game client or
-- client service (such as a matchmaker) to request hosting resources for a
-- new game session. In response, GameLift FleetIQ locates an available
-- game server, places it in @CLAIMED@ status for 60 seconds, and returns
-- connection information that players can use to connect to the game
-- server.
--
-- To claim a game server, identify a game server group. You can also
-- specify a game server ID, although this approach bypasses GameLift
-- FleetIQ placement optimization. Optionally, include game data to pass to
-- the game server at the start of a game session, such as a game map or
-- player information.
--
-- When a game server is successfully claimed, connection information is
-- returned. A claimed game server\'s utilization status remains
-- @AVAILABLE@ while the claim status is set to @CLAIMED@ for up to 60
-- seconds. This time period gives the game server time to update its
-- status to @UTILIZED@ (using UpdateGameServer) once players join. If the
-- game server\'s status is not updated within 60 seconds, the game server
-- reverts to unclaimed status and is available to be claimed by another
-- request. The claim time period is a fixed value and is not configurable.
--
-- If you try to claim a specific game server, this request will fail in
-- the following cases:
--
-- -   If the game server utilization status is @UTILIZED@.
--
-- -   If the game server claim status is @CLAIMED@.
--
-- When claiming a specific game server, this request will succeed even if
-- the game server is running on an instance in @DRAINING@ status. To avoid
-- this, first check the instance status by calling
-- DescribeGameServerInstances.
--
-- __Learn more__
--
-- <https://docs.aws.amazon.com/gamelift/latest/fleetiqguide/gsg-intro.html GameLift FleetIQ Guide>
--
-- __Related actions__
--
-- RegisterGameServer | ListGameServers | ClaimGameServer |
-- DescribeGameServer | UpdateGameServer | DeregisterGameServer |
-- <https://docs.aws.amazon.com/gamelift/latest/fleetiqguide/reference-awssdk-fleetiq.html All APIs by task>
module Amazonka.GameLift.ClaimGameServer
  ( -- * Creating a Request
    ClaimGameServer (..),
    newClaimGameServer,

    -- * Request Lenses
    claimGameServer_gameServerData,
    claimGameServer_gameServerId,
    claimGameServer_gameServerGroupName,

    -- * Destructuring the Response
    ClaimGameServerResponse (..),
    newClaimGameServerResponse,

    -- * Response Lenses
    claimGameServerResponse_gameServer,
    claimGameServerResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.GameLift.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newClaimGameServer' smart constructor.
data ClaimGameServer = ClaimGameServer'
  { -- | A set of custom game server properties, formatted as a single string
    -- value. This data is passed to a game client or service when it requests
    -- information on game servers using ListGameServers or ClaimGameServer.
    ClaimGameServer -> Maybe Text
gameServerData :: Prelude.Maybe Prelude.Text,
    -- | A custom string that uniquely identifies the game server to claim. If
    -- this parameter is left empty, GameLift FleetIQ searches for an available
    -- game server in the specified game server group.
    ClaimGameServer -> Maybe Text
gameServerId :: Prelude.Maybe Prelude.Text,
    -- | A unique identifier for the game server group where the game server is
    -- running. Use either the GameServerGroup name or ARN value. If you are
    -- not specifying a game server to claim, this value identifies where you
    -- want GameLift FleetIQ to look for an available game server to claim.
    ClaimGameServer -> Text
gameServerGroupName :: Prelude.Text
  }
  deriving (ClaimGameServer -> ClaimGameServer -> Bool
(ClaimGameServer -> ClaimGameServer -> Bool)
-> (ClaimGameServer -> ClaimGameServer -> Bool)
-> Eq ClaimGameServer
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ClaimGameServer -> ClaimGameServer -> Bool
$c/= :: ClaimGameServer -> ClaimGameServer -> Bool
== :: ClaimGameServer -> ClaimGameServer -> Bool
$c== :: ClaimGameServer -> ClaimGameServer -> Bool
Prelude.Eq, ReadPrec [ClaimGameServer]
ReadPrec ClaimGameServer
Int -> ReadS ClaimGameServer
ReadS [ClaimGameServer]
(Int -> ReadS ClaimGameServer)
-> ReadS [ClaimGameServer]
-> ReadPrec ClaimGameServer
-> ReadPrec [ClaimGameServer]
-> Read ClaimGameServer
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ClaimGameServer]
$creadListPrec :: ReadPrec [ClaimGameServer]
readPrec :: ReadPrec ClaimGameServer
$creadPrec :: ReadPrec ClaimGameServer
readList :: ReadS [ClaimGameServer]
$creadList :: ReadS [ClaimGameServer]
readsPrec :: Int -> ReadS ClaimGameServer
$creadsPrec :: Int -> ReadS ClaimGameServer
Prelude.Read, Int -> ClaimGameServer -> ShowS
[ClaimGameServer] -> ShowS
ClaimGameServer -> String
(Int -> ClaimGameServer -> ShowS)
-> (ClaimGameServer -> String)
-> ([ClaimGameServer] -> ShowS)
-> Show ClaimGameServer
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ClaimGameServer] -> ShowS
$cshowList :: [ClaimGameServer] -> ShowS
show :: ClaimGameServer -> String
$cshow :: ClaimGameServer -> String
showsPrec :: Int -> ClaimGameServer -> ShowS
$cshowsPrec :: Int -> ClaimGameServer -> ShowS
Prelude.Show, (forall x. ClaimGameServer -> Rep ClaimGameServer x)
-> (forall x. Rep ClaimGameServer x -> ClaimGameServer)
-> Generic ClaimGameServer
forall x. Rep ClaimGameServer x -> ClaimGameServer
forall x. ClaimGameServer -> Rep ClaimGameServer x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ClaimGameServer x -> ClaimGameServer
$cfrom :: forall x. ClaimGameServer -> Rep ClaimGameServer x
Prelude.Generic)

-- |
-- Create a value of 'ClaimGameServer' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'gameServerData', 'claimGameServer_gameServerData' - A set of custom game server properties, formatted as a single string
-- value. This data is passed to a game client or service when it requests
-- information on game servers using ListGameServers or ClaimGameServer.
--
-- 'gameServerId', 'claimGameServer_gameServerId' - A custom string that uniquely identifies the game server to claim. If
-- this parameter is left empty, GameLift FleetIQ searches for an available
-- game server in the specified game server group.
--
-- 'gameServerGroupName', 'claimGameServer_gameServerGroupName' - A unique identifier for the game server group where the game server is
-- running. Use either the GameServerGroup name or ARN value. If you are
-- not specifying a game server to claim, this value identifies where you
-- want GameLift FleetIQ to look for an available game server to claim.
newClaimGameServer ::
  -- | 'gameServerGroupName'
  Prelude.Text ->
  ClaimGameServer
newClaimGameServer :: Text -> ClaimGameServer
newClaimGameServer Text
pGameServerGroupName_ =
  ClaimGameServer' :: Maybe Text -> Maybe Text -> Text -> ClaimGameServer
ClaimGameServer'
    { $sel:gameServerData:ClaimGameServer' :: Maybe Text
gameServerData = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:gameServerId:ClaimGameServer' :: Maybe Text
gameServerId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:gameServerGroupName:ClaimGameServer' :: Text
gameServerGroupName = Text
pGameServerGroupName_
    }

-- | A set of custom game server properties, formatted as a single string
-- value. This data is passed to a game client or service when it requests
-- information on game servers using ListGameServers or ClaimGameServer.
claimGameServer_gameServerData :: Lens.Lens' ClaimGameServer (Prelude.Maybe Prelude.Text)
claimGameServer_gameServerData :: (Maybe Text -> f (Maybe Text))
-> ClaimGameServer -> f ClaimGameServer
claimGameServer_gameServerData = (ClaimGameServer -> Maybe Text)
-> (ClaimGameServer -> Maybe Text -> ClaimGameServer)
-> Lens ClaimGameServer ClaimGameServer (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ClaimGameServer' {Maybe Text
gameServerData :: Maybe Text
$sel:gameServerData:ClaimGameServer' :: ClaimGameServer -> Maybe Text
gameServerData} -> Maybe Text
gameServerData) (\s :: ClaimGameServer
s@ClaimGameServer' {} Maybe Text
a -> ClaimGameServer
s {$sel:gameServerData:ClaimGameServer' :: Maybe Text
gameServerData = Maybe Text
a} :: ClaimGameServer)

-- | A custom string that uniquely identifies the game server to claim. If
-- this parameter is left empty, GameLift FleetIQ searches for an available
-- game server in the specified game server group.
claimGameServer_gameServerId :: Lens.Lens' ClaimGameServer (Prelude.Maybe Prelude.Text)
claimGameServer_gameServerId :: (Maybe Text -> f (Maybe Text))
-> ClaimGameServer -> f ClaimGameServer
claimGameServer_gameServerId = (ClaimGameServer -> Maybe Text)
-> (ClaimGameServer -> Maybe Text -> ClaimGameServer)
-> Lens ClaimGameServer ClaimGameServer (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ClaimGameServer' {Maybe Text
gameServerId :: Maybe Text
$sel:gameServerId:ClaimGameServer' :: ClaimGameServer -> Maybe Text
gameServerId} -> Maybe Text
gameServerId) (\s :: ClaimGameServer
s@ClaimGameServer' {} Maybe Text
a -> ClaimGameServer
s {$sel:gameServerId:ClaimGameServer' :: Maybe Text
gameServerId = Maybe Text
a} :: ClaimGameServer)

-- | A unique identifier for the game server group where the game server is
-- running. Use either the GameServerGroup name or ARN value. If you are
-- not specifying a game server to claim, this value identifies where you
-- want GameLift FleetIQ to look for an available game server to claim.
claimGameServer_gameServerGroupName :: Lens.Lens' ClaimGameServer Prelude.Text
claimGameServer_gameServerGroupName :: (Text -> f Text) -> ClaimGameServer -> f ClaimGameServer
claimGameServer_gameServerGroupName = (ClaimGameServer -> Text)
-> (ClaimGameServer -> Text -> ClaimGameServer)
-> Lens ClaimGameServer ClaimGameServer Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ClaimGameServer' {Text
gameServerGroupName :: Text
$sel:gameServerGroupName:ClaimGameServer' :: ClaimGameServer -> Text
gameServerGroupName} -> Text
gameServerGroupName) (\s :: ClaimGameServer
s@ClaimGameServer' {} Text
a -> ClaimGameServer
s {$sel:gameServerGroupName:ClaimGameServer' :: Text
gameServerGroupName = Text
a} :: ClaimGameServer)

instance Core.AWSRequest ClaimGameServer where
  type
    AWSResponse ClaimGameServer =
      ClaimGameServerResponse
  request :: ClaimGameServer -> Request ClaimGameServer
request = Service -> ClaimGameServer -> Request ClaimGameServer
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy ClaimGameServer
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ClaimGameServer)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ClaimGameServer))
-> Logger
-> Service
-> Proxy ClaimGameServer
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ClaimGameServer)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe GameServer -> Int -> ClaimGameServerResponse
ClaimGameServerResponse'
            (Maybe GameServer -> Int -> ClaimGameServerResponse)
-> Either String (Maybe GameServer)
-> Either String (Int -> ClaimGameServerResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe GameServer)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"GameServer")
            Either String (Int -> ClaimGameServerResponse)
-> Either String Int -> Either String ClaimGameServerResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable ClaimGameServer

instance Prelude.NFData ClaimGameServer

instance Core.ToHeaders ClaimGameServer where
  toHeaders :: ClaimGameServer -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ClaimGameServer -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# (ByteString
"GameLift.ClaimGameServer" :: Prelude.ByteString),
            HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToJSON ClaimGameServer where
  toJSON :: ClaimGameServer -> Value
toJSON ClaimGameServer' {Maybe Text
Text
gameServerGroupName :: Text
gameServerId :: Maybe Text
gameServerData :: Maybe Text
$sel:gameServerGroupName:ClaimGameServer' :: ClaimGameServer -> Text
$sel:gameServerId:ClaimGameServer' :: ClaimGameServer -> Maybe Text
$sel:gameServerData:ClaimGameServer' :: ClaimGameServer -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"GameServerData" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
gameServerData,
            (Text
"GameServerId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
gameServerId,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"GameServerGroupName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
gameServerGroupName)
          ]
      )

instance Core.ToPath ClaimGameServer where
  toPath :: ClaimGameServer -> ByteString
toPath = ByteString -> ClaimGameServer -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Core.ToQuery ClaimGameServer where
  toQuery :: ClaimGameServer -> QueryString
toQuery = QueryString -> ClaimGameServer -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newClaimGameServerResponse' smart constructor.
data ClaimGameServerResponse = ClaimGameServerResponse'
  { -- | Object that describes the newly claimed game server.
    ClaimGameServerResponse -> Maybe GameServer
gameServer :: Prelude.Maybe GameServer,
    -- | The response's http status code.
    ClaimGameServerResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ClaimGameServerResponse -> ClaimGameServerResponse -> Bool
(ClaimGameServerResponse -> ClaimGameServerResponse -> Bool)
-> (ClaimGameServerResponse -> ClaimGameServerResponse -> Bool)
-> Eq ClaimGameServerResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ClaimGameServerResponse -> ClaimGameServerResponse -> Bool
$c/= :: ClaimGameServerResponse -> ClaimGameServerResponse -> Bool
== :: ClaimGameServerResponse -> ClaimGameServerResponse -> Bool
$c== :: ClaimGameServerResponse -> ClaimGameServerResponse -> Bool
Prelude.Eq, ReadPrec [ClaimGameServerResponse]
ReadPrec ClaimGameServerResponse
Int -> ReadS ClaimGameServerResponse
ReadS [ClaimGameServerResponse]
(Int -> ReadS ClaimGameServerResponse)
-> ReadS [ClaimGameServerResponse]
-> ReadPrec ClaimGameServerResponse
-> ReadPrec [ClaimGameServerResponse]
-> Read ClaimGameServerResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ClaimGameServerResponse]
$creadListPrec :: ReadPrec [ClaimGameServerResponse]
readPrec :: ReadPrec ClaimGameServerResponse
$creadPrec :: ReadPrec ClaimGameServerResponse
readList :: ReadS [ClaimGameServerResponse]
$creadList :: ReadS [ClaimGameServerResponse]
readsPrec :: Int -> ReadS ClaimGameServerResponse
$creadsPrec :: Int -> ReadS ClaimGameServerResponse
Prelude.Read, Int -> ClaimGameServerResponse -> ShowS
[ClaimGameServerResponse] -> ShowS
ClaimGameServerResponse -> String
(Int -> ClaimGameServerResponse -> ShowS)
-> (ClaimGameServerResponse -> String)
-> ([ClaimGameServerResponse] -> ShowS)
-> Show ClaimGameServerResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ClaimGameServerResponse] -> ShowS
$cshowList :: [ClaimGameServerResponse] -> ShowS
show :: ClaimGameServerResponse -> String
$cshow :: ClaimGameServerResponse -> String
showsPrec :: Int -> ClaimGameServerResponse -> ShowS
$cshowsPrec :: Int -> ClaimGameServerResponse -> ShowS
Prelude.Show, (forall x.
 ClaimGameServerResponse -> Rep ClaimGameServerResponse x)
-> (forall x.
    Rep ClaimGameServerResponse x -> ClaimGameServerResponse)
-> Generic ClaimGameServerResponse
forall x. Rep ClaimGameServerResponse x -> ClaimGameServerResponse
forall x. ClaimGameServerResponse -> Rep ClaimGameServerResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ClaimGameServerResponse x -> ClaimGameServerResponse
$cfrom :: forall x. ClaimGameServerResponse -> Rep ClaimGameServerResponse x
Prelude.Generic)

-- |
-- Create a value of 'ClaimGameServerResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'gameServer', 'claimGameServerResponse_gameServer' - Object that describes the newly claimed game server.
--
-- 'httpStatus', 'claimGameServerResponse_httpStatus' - The response's http status code.
newClaimGameServerResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ClaimGameServerResponse
newClaimGameServerResponse :: Int -> ClaimGameServerResponse
newClaimGameServerResponse Int
pHttpStatus_ =
  ClaimGameServerResponse' :: Maybe GameServer -> Int -> ClaimGameServerResponse
ClaimGameServerResponse'
    { $sel:gameServer:ClaimGameServerResponse' :: Maybe GameServer
gameServer =
        Maybe GameServer
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ClaimGameServerResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Object that describes the newly claimed game server.
claimGameServerResponse_gameServer :: Lens.Lens' ClaimGameServerResponse (Prelude.Maybe GameServer)
claimGameServerResponse_gameServer :: (Maybe GameServer -> f (Maybe GameServer))
-> ClaimGameServerResponse -> f ClaimGameServerResponse
claimGameServerResponse_gameServer = (ClaimGameServerResponse -> Maybe GameServer)
-> (ClaimGameServerResponse
    -> Maybe GameServer -> ClaimGameServerResponse)
-> Lens
     ClaimGameServerResponse
     ClaimGameServerResponse
     (Maybe GameServer)
     (Maybe GameServer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ClaimGameServerResponse' {Maybe GameServer
gameServer :: Maybe GameServer
$sel:gameServer:ClaimGameServerResponse' :: ClaimGameServerResponse -> Maybe GameServer
gameServer} -> Maybe GameServer
gameServer) (\s :: ClaimGameServerResponse
s@ClaimGameServerResponse' {} Maybe GameServer
a -> ClaimGameServerResponse
s {$sel:gameServer:ClaimGameServerResponse' :: Maybe GameServer
gameServer = Maybe GameServer
a} :: ClaimGameServerResponse)

-- | The response's http status code.
claimGameServerResponse_httpStatus :: Lens.Lens' ClaimGameServerResponse Prelude.Int
claimGameServerResponse_httpStatus :: (Int -> f Int)
-> ClaimGameServerResponse -> f ClaimGameServerResponse
claimGameServerResponse_httpStatus = (ClaimGameServerResponse -> Int)
-> (ClaimGameServerResponse -> Int -> ClaimGameServerResponse)
-> Lens ClaimGameServerResponse ClaimGameServerResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ClaimGameServerResponse' {Int
httpStatus :: Int
$sel:httpStatus:ClaimGameServerResponse' :: ClaimGameServerResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ClaimGameServerResponse
s@ClaimGameServerResponse' {} Int
a -> ClaimGameServerResponse
s {$sel:httpStatus:ClaimGameServerResponse' :: Int
httpStatus = Int
a} :: ClaimGameServerResponse)

instance Prelude.NFData ClaimGameServerResponse