{-# 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.DescribeGameSessionQueues
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Retrieves the properties for one or more game session queues. When
-- requesting multiple queues, use the pagination parameters to retrieve
-- results as a set of sequential pages. When specifying a list of queues,
-- objects are returned only for queues that currently exist in the Region.
--
-- __Learn more__
--
-- <https://docs.aws.amazon.com/gamelift/latest/developerguide/queues-console.html View Your Queues>
--
-- This operation returns paginated results.
module Amazonka.GameLift.DescribeGameSessionQueues
  ( -- * Creating a Request
    DescribeGameSessionQueues (..),
    newDescribeGameSessionQueues,

    -- * Request Lenses
    describeGameSessionQueues_limit,
    describeGameSessionQueues_names,
    describeGameSessionQueues_nextToken,

    -- * Destructuring the Response
    DescribeGameSessionQueuesResponse (..),
    newDescribeGameSessionQueuesResponse,

    -- * Response Lenses
    describeGameSessionQueuesResponse_gameSessionQueues,
    describeGameSessionQueuesResponse_nextToken,
    describeGameSessionQueuesResponse_httpStatus,
  )
where

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

-- | /See:/ 'newDescribeGameSessionQueues' smart constructor.
data DescribeGameSessionQueues = DescribeGameSessionQueues'
  { -- | The maximum number of results to return. Use this parameter with
    -- @NextToken@ to get results as a set of sequential pages. You can request
    -- up to 50 results.
    DescribeGameSessionQueues -> Maybe Natural
limit :: Prelude.Maybe Prelude.Natural,
    -- | A list of queue names to retrieve information for. You can use either
    -- the queue ID or ARN value. To request settings for all queues, leave
    -- this parameter empty.
    DescribeGameSessionQueues -> Maybe [Text]
names :: Prelude.Maybe [Prelude.Text],
    -- | A token that indicates the start of the next sequential page of results.
    -- Use the token that is returned with a previous call to this operation.
    -- To start at the beginning of the result set, do not specify a value.
    DescribeGameSessionQueues -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
  }
  deriving (DescribeGameSessionQueues -> DescribeGameSessionQueues -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeGameSessionQueues -> DescribeGameSessionQueues -> Bool
$c/= :: DescribeGameSessionQueues -> DescribeGameSessionQueues -> Bool
== :: DescribeGameSessionQueues -> DescribeGameSessionQueues -> Bool
$c== :: DescribeGameSessionQueues -> DescribeGameSessionQueues -> Bool
Prelude.Eq, ReadPrec [DescribeGameSessionQueues]
ReadPrec DescribeGameSessionQueues
Int -> ReadS DescribeGameSessionQueues
ReadS [DescribeGameSessionQueues]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeGameSessionQueues]
$creadListPrec :: ReadPrec [DescribeGameSessionQueues]
readPrec :: ReadPrec DescribeGameSessionQueues
$creadPrec :: ReadPrec DescribeGameSessionQueues
readList :: ReadS [DescribeGameSessionQueues]
$creadList :: ReadS [DescribeGameSessionQueues]
readsPrec :: Int -> ReadS DescribeGameSessionQueues
$creadsPrec :: Int -> ReadS DescribeGameSessionQueues
Prelude.Read, Int -> DescribeGameSessionQueues -> ShowS
[DescribeGameSessionQueues] -> ShowS
DescribeGameSessionQueues -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeGameSessionQueues] -> ShowS
$cshowList :: [DescribeGameSessionQueues] -> ShowS
show :: DescribeGameSessionQueues -> String
$cshow :: DescribeGameSessionQueues -> String
showsPrec :: Int -> DescribeGameSessionQueues -> ShowS
$cshowsPrec :: Int -> DescribeGameSessionQueues -> ShowS
Prelude.Show, forall x.
Rep DescribeGameSessionQueues x -> DescribeGameSessionQueues
forall x.
DescribeGameSessionQueues -> Rep DescribeGameSessionQueues x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeGameSessionQueues x -> DescribeGameSessionQueues
$cfrom :: forall x.
DescribeGameSessionQueues -> Rep DescribeGameSessionQueues x
Prelude.Generic)

-- |
-- Create a value of 'DescribeGameSessionQueues' 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:
--
-- 'limit', 'describeGameSessionQueues_limit' - The maximum number of results to return. Use this parameter with
-- @NextToken@ to get results as a set of sequential pages. You can request
-- up to 50 results.
--
-- 'names', 'describeGameSessionQueues_names' - A list of queue names to retrieve information for. You can use either
-- the queue ID or ARN value. To request settings for all queues, leave
-- this parameter empty.
--
-- 'nextToken', 'describeGameSessionQueues_nextToken' - A token that indicates the start of the next sequential page of results.
-- Use the token that is returned with a previous call to this operation.
-- To start at the beginning of the result set, do not specify a value.
newDescribeGameSessionQueues ::
  DescribeGameSessionQueues
newDescribeGameSessionQueues :: DescribeGameSessionQueues
newDescribeGameSessionQueues =
  DescribeGameSessionQueues'
    { $sel:limit:DescribeGameSessionQueues' :: Maybe Natural
limit = forall a. Maybe a
Prelude.Nothing,
      $sel:names:DescribeGameSessionQueues' :: Maybe [Text]
names = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:DescribeGameSessionQueues' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing
    }

-- | The maximum number of results to return. Use this parameter with
-- @NextToken@ to get results as a set of sequential pages. You can request
-- up to 50 results.
describeGameSessionQueues_limit :: Lens.Lens' DescribeGameSessionQueues (Prelude.Maybe Prelude.Natural)
describeGameSessionQueues_limit :: Lens' DescribeGameSessionQueues (Maybe Natural)
describeGameSessionQueues_limit = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeGameSessionQueues' {Maybe Natural
limit :: Maybe Natural
$sel:limit:DescribeGameSessionQueues' :: DescribeGameSessionQueues -> Maybe Natural
limit} -> Maybe Natural
limit) (\s :: DescribeGameSessionQueues
s@DescribeGameSessionQueues' {} Maybe Natural
a -> DescribeGameSessionQueues
s {$sel:limit:DescribeGameSessionQueues' :: Maybe Natural
limit = Maybe Natural
a} :: DescribeGameSessionQueues)

-- | A list of queue names to retrieve information for. You can use either
-- the queue ID or ARN value. To request settings for all queues, leave
-- this parameter empty.
describeGameSessionQueues_names :: Lens.Lens' DescribeGameSessionQueues (Prelude.Maybe [Prelude.Text])
describeGameSessionQueues_names :: Lens' DescribeGameSessionQueues (Maybe [Text])
describeGameSessionQueues_names = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeGameSessionQueues' {Maybe [Text]
names :: Maybe [Text]
$sel:names:DescribeGameSessionQueues' :: DescribeGameSessionQueues -> Maybe [Text]
names} -> Maybe [Text]
names) (\s :: DescribeGameSessionQueues
s@DescribeGameSessionQueues' {} Maybe [Text]
a -> DescribeGameSessionQueues
s {$sel:names:DescribeGameSessionQueues' :: Maybe [Text]
names = Maybe [Text]
a} :: DescribeGameSessionQueues) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A token that indicates the start of the next sequential page of results.
-- Use the token that is returned with a previous call to this operation.
-- To start at the beginning of the result set, do not specify a value.
describeGameSessionQueues_nextToken :: Lens.Lens' DescribeGameSessionQueues (Prelude.Maybe Prelude.Text)
describeGameSessionQueues_nextToken :: Lens' DescribeGameSessionQueues (Maybe Text)
describeGameSessionQueues_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeGameSessionQueues' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeGameSessionQueues' :: DescribeGameSessionQueues -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeGameSessionQueues
s@DescribeGameSessionQueues' {} Maybe Text
a -> DescribeGameSessionQueues
s {$sel:nextToken:DescribeGameSessionQueues' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeGameSessionQueues)

instance Core.AWSPager DescribeGameSessionQueues where
  page :: DescribeGameSessionQueues
-> AWSResponse DescribeGameSessionQueues
-> Maybe DescribeGameSessionQueues
page DescribeGameSessionQueues
rq AWSResponse DescribeGameSessionQueues
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse DescribeGameSessionQueues
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' DescribeGameSessionQueuesResponse (Maybe Text)
describeGameSessionQueuesResponse_nextToken
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse DescribeGameSessionQueues
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' DescribeGameSessionQueuesResponse (Maybe [GameSessionQueue])
describeGameSessionQueuesResponse_gameSessionQueues
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
        forall a. a -> Maybe a
Prelude.Just
          forall a b. (a -> b) -> a -> b
Prelude.$ DescribeGameSessionQueues
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' DescribeGameSessionQueues (Maybe Text)
describeGameSessionQueues_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeGameSessionQueues
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' DescribeGameSessionQueuesResponse (Maybe Text)
describeGameSessionQueuesResponse_nextToken
          forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

instance Core.AWSRequest DescribeGameSessionQueues where
  type
    AWSResponse DescribeGameSessionQueues =
      DescribeGameSessionQueuesResponse
  request :: (Service -> Service)
-> DescribeGameSessionQueues -> Request DescribeGameSessionQueues
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy DescribeGameSessionQueues
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeGameSessionQueues)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe [GameSessionQueue]
-> Maybe Text -> Int -> DescribeGameSessionQueuesResponse
DescribeGameSessionQueuesResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"GameSessionQueues"
                            forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"NextToken")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable DescribeGameSessionQueues where
  hashWithSalt :: Int -> DescribeGameSessionQueues -> Int
hashWithSalt Int
_salt DescribeGameSessionQueues' {Maybe Natural
Maybe [Text]
Maybe Text
nextToken :: Maybe Text
names :: Maybe [Text]
limit :: Maybe Natural
$sel:nextToken:DescribeGameSessionQueues' :: DescribeGameSessionQueues -> Maybe Text
$sel:names:DescribeGameSessionQueues' :: DescribeGameSessionQueues -> Maybe [Text]
$sel:limit:DescribeGameSessionQueues' :: DescribeGameSessionQueues -> Maybe Natural
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
limit
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
names
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken

instance Prelude.NFData DescribeGameSessionQueues where
  rnf :: DescribeGameSessionQueues -> ()
rnf DescribeGameSessionQueues' {Maybe Natural
Maybe [Text]
Maybe Text
nextToken :: Maybe Text
names :: Maybe [Text]
limit :: Maybe Natural
$sel:nextToken:DescribeGameSessionQueues' :: DescribeGameSessionQueues -> Maybe Text
$sel:names:DescribeGameSessionQueues' :: DescribeGameSessionQueues -> Maybe [Text]
$sel:limit:DescribeGameSessionQueues' :: DescribeGameSessionQueues -> Maybe Natural
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
limit
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
names
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken

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

instance Data.ToJSON DescribeGameSessionQueues where
  toJSON :: DescribeGameSessionQueues -> Value
toJSON DescribeGameSessionQueues' {Maybe Natural
Maybe [Text]
Maybe Text
nextToken :: Maybe Text
names :: Maybe [Text]
limit :: Maybe Natural
$sel:nextToken:DescribeGameSessionQueues' :: DescribeGameSessionQueues -> Maybe Text
$sel:names:DescribeGameSessionQueues' :: DescribeGameSessionQueues -> Maybe [Text]
$sel:limit:DescribeGameSessionQueues' :: DescribeGameSessionQueues -> Maybe Natural
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"Limit" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
limit,
            (Key
"Names" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
names,
            (Key
"NextToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken
          ]
      )

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

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

-- | /See:/ 'newDescribeGameSessionQueuesResponse' smart constructor.
data DescribeGameSessionQueuesResponse = DescribeGameSessionQueuesResponse'
  { -- | A collection of objects that describe the requested game session queues.
    DescribeGameSessionQueuesResponse -> Maybe [GameSessionQueue]
gameSessionQueues :: Prelude.Maybe [GameSessionQueue],
    -- | A token that indicates where to resume retrieving results on the next
    -- call to this operation. If no token is returned, these results represent
    -- the end of the list.
    DescribeGameSessionQueuesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    DescribeGameSessionQueuesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeGameSessionQueuesResponse
-> DescribeGameSessionQueuesResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeGameSessionQueuesResponse
-> DescribeGameSessionQueuesResponse -> Bool
$c/= :: DescribeGameSessionQueuesResponse
-> DescribeGameSessionQueuesResponse -> Bool
== :: DescribeGameSessionQueuesResponse
-> DescribeGameSessionQueuesResponse -> Bool
$c== :: DescribeGameSessionQueuesResponse
-> DescribeGameSessionQueuesResponse -> Bool
Prelude.Eq, ReadPrec [DescribeGameSessionQueuesResponse]
ReadPrec DescribeGameSessionQueuesResponse
Int -> ReadS DescribeGameSessionQueuesResponse
ReadS [DescribeGameSessionQueuesResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeGameSessionQueuesResponse]
$creadListPrec :: ReadPrec [DescribeGameSessionQueuesResponse]
readPrec :: ReadPrec DescribeGameSessionQueuesResponse
$creadPrec :: ReadPrec DescribeGameSessionQueuesResponse
readList :: ReadS [DescribeGameSessionQueuesResponse]
$creadList :: ReadS [DescribeGameSessionQueuesResponse]
readsPrec :: Int -> ReadS DescribeGameSessionQueuesResponse
$creadsPrec :: Int -> ReadS DescribeGameSessionQueuesResponse
Prelude.Read, Int -> DescribeGameSessionQueuesResponse -> ShowS
[DescribeGameSessionQueuesResponse] -> ShowS
DescribeGameSessionQueuesResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeGameSessionQueuesResponse] -> ShowS
$cshowList :: [DescribeGameSessionQueuesResponse] -> ShowS
show :: DescribeGameSessionQueuesResponse -> String
$cshow :: DescribeGameSessionQueuesResponse -> String
showsPrec :: Int -> DescribeGameSessionQueuesResponse -> ShowS
$cshowsPrec :: Int -> DescribeGameSessionQueuesResponse -> ShowS
Prelude.Show, forall x.
Rep DescribeGameSessionQueuesResponse x
-> DescribeGameSessionQueuesResponse
forall x.
DescribeGameSessionQueuesResponse
-> Rep DescribeGameSessionQueuesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeGameSessionQueuesResponse x
-> DescribeGameSessionQueuesResponse
$cfrom :: forall x.
DescribeGameSessionQueuesResponse
-> Rep DescribeGameSessionQueuesResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeGameSessionQueuesResponse' 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:
--
-- 'gameSessionQueues', 'describeGameSessionQueuesResponse_gameSessionQueues' - A collection of objects that describe the requested game session queues.
--
-- 'nextToken', 'describeGameSessionQueuesResponse_nextToken' - A token that indicates where to resume retrieving results on the next
-- call to this operation. If no token is returned, these results represent
-- the end of the list.
--
-- 'httpStatus', 'describeGameSessionQueuesResponse_httpStatus' - The response's http status code.
newDescribeGameSessionQueuesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeGameSessionQueuesResponse
newDescribeGameSessionQueuesResponse :: Int -> DescribeGameSessionQueuesResponse
newDescribeGameSessionQueuesResponse Int
pHttpStatus_ =
  DescribeGameSessionQueuesResponse'
    { $sel:gameSessionQueues:DescribeGameSessionQueuesResponse' :: Maybe [GameSessionQueue]
gameSessionQueues =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:DescribeGameSessionQueuesResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeGameSessionQueuesResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A collection of objects that describe the requested game session queues.
describeGameSessionQueuesResponse_gameSessionQueues :: Lens.Lens' DescribeGameSessionQueuesResponse (Prelude.Maybe [GameSessionQueue])
describeGameSessionQueuesResponse_gameSessionQueues :: Lens' DescribeGameSessionQueuesResponse (Maybe [GameSessionQueue])
describeGameSessionQueuesResponse_gameSessionQueues = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeGameSessionQueuesResponse' {Maybe [GameSessionQueue]
gameSessionQueues :: Maybe [GameSessionQueue]
$sel:gameSessionQueues:DescribeGameSessionQueuesResponse' :: DescribeGameSessionQueuesResponse -> Maybe [GameSessionQueue]
gameSessionQueues} -> Maybe [GameSessionQueue]
gameSessionQueues) (\s :: DescribeGameSessionQueuesResponse
s@DescribeGameSessionQueuesResponse' {} Maybe [GameSessionQueue]
a -> DescribeGameSessionQueuesResponse
s {$sel:gameSessionQueues:DescribeGameSessionQueuesResponse' :: Maybe [GameSessionQueue]
gameSessionQueues = Maybe [GameSessionQueue]
a} :: DescribeGameSessionQueuesResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A token that indicates where to resume retrieving results on the next
-- call to this operation. If no token is returned, these results represent
-- the end of the list.
describeGameSessionQueuesResponse_nextToken :: Lens.Lens' DescribeGameSessionQueuesResponse (Prelude.Maybe Prelude.Text)
describeGameSessionQueuesResponse_nextToken :: Lens' DescribeGameSessionQueuesResponse (Maybe Text)
describeGameSessionQueuesResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeGameSessionQueuesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeGameSessionQueuesResponse' :: DescribeGameSessionQueuesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeGameSessionQueuesResponse
s@DescribeGameSessionQueuesResponse' {} Maybe Text
a -> DescribeGameSessionQueuesResponse
s {$sel:nextToken:DescribeGameSessionQueuesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeGameSessionQueuesResponse)

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

instance
  Prelude.NFData
    DescribeGameSessionQueuesResponse
  where
  rnf :: DescribeGameSessionQueuesResponse -> ()
rnf DescribeGameSessionQueuesResponse' {Int
Maybe [GameSessionQueue]
Maybe Text
httpStatus :: Int
nextToken :: Maybe Text
gameSessionQueues :: Maybe [GameSessionQueue]
$sel:httpStatus:DescribeGameSessionQueuesResponse' :: DescribeGameSessionQueuesResponse -> Int
$sel:nextToken:DescribeGameSessionQueuesResponse' :: DescribeGameSessionQueuesResponse -> Maybe Text
$sel:gameSessionQueues:DescribeGameSessionQueuesResponse' :: DescribeGameSessionQueuesResponse -> Maybe [GameSessionQueue]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [GameSessionQueue]
gameSessionQueues
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus