{-# 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.Chime.ListProxySessions
-- 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)
--
-- Lists the proxy sessions for the specified Amazon Chime Voice Connector.
module Amazonka.Chime.ListProxySessions
  ( -- * Creating a Request
    ListProxySessions (..),
    newListProxySessions,

    -- * Request Lenses
    listProxySessions_status,
    listProxySessions_nextToken,
    listProxySessions_maxResults,
    listProxySessions_voiceConnectorId,

    -- * Destructuring the Response
    ListProxySessionsResponse (..),
    newListProxySessionsResponse,

    -- * Response Lenses
    listProxySessionsResponse_nextToken,
    listProxySessionsResponse_proxySessions,
    listProxySessionsResponse_httpStatus,
  )
where

import Amazonka.Chime.Types
import qualified Amazonka.Core as Core
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:/ 'newListProxySessions' smart constructor.
data ListProxySessions = ListProxySessions'
  { -- | The proxy session status.
    ListProxySessions -> Maybe ProxySessionStatus
status :: Prelude.Maybe ProxySessionStatus,
    -- | The token to use to retrieve the next page of results.
    ListProxySessions -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of results to return in a single call.
    ListProxySessions -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The Amazon Chime voice connector ID.
    ListProxySessions -> Text
voiceConnectorId :: Prelude.Text
  }
  deriving (ListProxySessions -> ListProxySessions -> Bool
(ListProxySessions -> ListProxySessions -> Bool)
-> (ListProxySessions -> ListProxySessions -> Bool)
-> Eq ListProxySessions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListProxySessions -> ListProxySessions -> Bool
$c/= :: ListProxySessions -> ListProxySessions -> Bool
== :: ListProxySessions -> ListProxySessions -> Bool
$c== :: ListProxySessions -> ListProxySessions -> Bool
Prelude.Eq, ReadPrec [ListProxySessions]
ReadPrec ListProxySessions
Int -> ReadS ListProxySessions
ReadS [ListProxySessions]
(Int -> ReadS ListProxySessions)
-> ReadS [ListProxySessions]
-> ReadPrec ListProxySessions
-> ReadPrec [ListProxySessions]
-> Read ListProxySessions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListProxySessions]
$creadListPrec :: ReadPrec [ListProxySessions]
readPrec :: ReadPrec ListProxySessions
$creadPrec :: ReadPrec ListProxySessions
readList :: ReadS [ListProxySessions]
$creadList :: ReadS [ListProxySessions]
readsPrec :: Int -> ReadS ListProxySessions
$creadsPrec :: Int -> ReadS ListProxySessions
Prelude.Read, Int -> ListProxySessions -> ShowS
[ListProxySessions] -> ShowS
ListProxySessions -> String
(Int -> ListProxySessions -> ShowS)
-> (ListProxySessions -> String)
-> ([ListProxySessions] -> ShowS)
-> Show ListProxySessions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListProxySessions] -> ShowS
$cshowList :: [ListProxySessions] -> ShowS
show :: ListProxySessions -> String
$cshow :: ListProxySessions -> String
showsPrec :: Int -> ListProxySessions -> ShowS
$cshowsPrec :: Int -> ListProxySessions -> ShowS
Prelude.Show, (forall x. ListProxySessions -> Rep ListProxySessions x)
-> (forall x. Rep ListProxySessions x -> ListProxySessions)
-> Generic ListProxySessions
forall x. Rep ListProxySessions x -> ListProxySessions
forall x. ListProxySessions -> Rep ListProxySessions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListProxySessions x -> ListProxySessions
$cfrom :: forall x. ListProxySessions -> Rep ListProxySessions x
Prelude.Generic)

-- |
-- Create a value of 'ListProxySessions' 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:
--
-- 'status', 'listProxySessions_status' - The proxy session status.
--
-- 'nextToken', 'listProxySessions_nextToken' - The token to use to retrieve the next page of results.
--
-- 'maxResults', 'listProxySessions_maxResults' - The maximum number of results to return in a single call.
--
-- 'voiceConnectorId', 'listProxySessions_voiceConnectorId' - The Amazon Chime voice connector ID.
newListProxySessions ::
  -- | 'voiceConnectorId'
  Prelude.Text ->
  ListProxySessions
newListProxySessions :: Text -> ListProxySessions
newListProxySessions Text
pVoiceConnectorId_ =
  ListProxySessions' :: Maybe ProxySessionStatus
-> Maybe Text -> Maybe Natural -> Text -> ListProxySessions
ListProxySessions'
    { $sel:status:ListProxySessions' :: Maybe ProxySessionStatus
status = Maybe ProxySessionStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListProxySessions' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListProxySessions' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:voiceConnectorId:ListProxySessions' :: Text
voiceConnectorId = Text
pVoiceConnectorId_
    }

-- | The proxy session status.
listProxySessions_status :: Lens.Lens' ListProxySessions (Prelude.Maybe ProxySessionStatus)
listProxySessions_status :: (Maybe ProxySessionStatus -> f (Maybe ProxySessionStatus))
-> ListProxySessions -> f ListProxySessions
listProxySessions_status = (ListProxySessions -> Maybe ProxySessionStatus)
-> (ListProxySessions
    -> Maybe ProxySessionStatus -> ListProxySessions)
-> Lens
     ListProxySessions
     ListProxySessions
     (Maybe ProxySessionStatus)
     (Maybe ProxySessionStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProxySessions' {Maybe ProxySessionStatus
status :: Maybe ProxySessionStatus
$sel:status:ListProxySessions' :: ListProxySessions -> Maybe ProxySessionStatus
status} -> Maybe ProxySessionStatus
status) (\s :: ListProxySessions
s@ListProxySessions' {} Maybe ProxySessionStatus
a -> ListProxySessions
s {$sel:status:ListProxySessions' :: Maybe ProxySessionStatus
status = Maybe ProxySessionStatus
a} :: ListProxySessions)

-- | The token to use to retrieve the next page of results.
listProxySessions_nextToken :: Lens.Lens' ListProxySessions (Prelude.Maybe Prelude.Text)
listProxySessions_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListProxySessions -> f ListProxySessions
listProxySessions_nextToken = (ListProxySessions -> Maybe Text)
-> (ListProxySessions -> Maybe Text -> ListProxySessions)
-> Lens
     ListProxySessions ListProxySessions (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProxySessions' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListProxySessions' :: ListProxySessions -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListProxySessions
s@ListProxySessions' {} Maybe Text
a -> ListProxySessions
s {$sel:nextToken:ListProxySessions' :: Maybe Text
nextToken = Maybe Text
a} :: ListProxySessions)

-- | The maximum number of results to return in a single call.
listProxySessions_maxResults :: Lens.Lens' ListProxySessions (Prelude.Maybe Prelude.Natural)
listProxySessions_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListProxySessions -> f ListProxySessions
listProxySessions_maxResults = (ListProxySessions -> Maybe Natural)
-> (ListProxySessions -> Maybe Natural -> ListProxySessions)
-> Lens
     ListProxySessions ListProxySessions (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProxySessions' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListProxySessions' :: ListProxySessions -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListProxySessions
s@ListProxySessions' {} Maybe Natural
a -> ListProxySessions
s {$sel:maxResults:ListProxySessions' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListProxySessions)

-- | The Amazon Chime voice connector ID.
listProxySessions_voiceConnectorId :: Lens.Lens' ListProxySessions Prelude.Text
listProxySessions_voiceConnectorId :: (Text -> f Text) -> ListProxySessions -> f ListProxySessions
listProxySessions_voiceConnectorId = (ListProxySessions -> Text)
-> (ListProxySessions -> Text -> ListProxySessions)
-> Lens ListProxySessions ListProxySessions Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProxySessions' {Text
voiceConnectorId :: Text
$sel:voiceConnectorId:ListProxySessions' :: ListProxySessions -> Text
voiceConnectorId} -> Text
voiceConnectorId) (\s :: ListProxySessions
s@ListProxySessions' {} Text
a -> ListProxySessions
s {$sel:voiceConnectorId:ListProxySessions' :: Text
voiceConnectorId = Text
a} :: ListProxySessions)

instance Core.AWSRequest ListProxySessions where
  type
    AWSResponse ListProxySessions =
      ListProxySessionsResponse
  request :: ListProxySessions -> Request ListProxySessions
request = Service -> ListProxySessions -> Request ListProxySessions
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy ListProxySessions
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListProxySessions)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListProxySessions))
-> Logger
-> Service
-> Proxy ListProxySessions
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListProxySessions)))
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 Text
-> Maybe [ProxySession] -> Int -> ListProxySessionsResponse
ListProxySessionsResponse'
            (Maybe Text
 -> Maybe [ProxySession] -> Int -> ListProxySessionsResponse)
-> Either String (Maybe Text)
-> Either
     String (Maybe [ProxySession] -> Int -> ListProxySessionsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NextToken")
            Either
  String (Maybe [ProxySession] -> Int -> ListProxySessionsResponse)
-> Either String (Maybe [ProxySession])
-> Either String (Int -> ListProxySessionsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [ProxySession]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ProxySessions" Either String (Maybe (Maybe [ProxySession]))
-> Maybe [ProxySession] -> Either String (Maybe [ProxySession])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ProxySession]
forall a. Monoid a => a
Prelude.mempty)
            Either String (Int -> ListProxySessionsResponse)
-> Either String Int -> Either String ListProxySessionsResponse
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 ListProxySessions

instance Prelude.NFData ListProxySessions

instance Core.ToHeaders ListProxySessions where
  toHeaders :: ListProxySessions -> ResponseHeaders
toHeaders = ResponseHeaders -> ListProxySessions -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

instance Core.ToPath ListProxySessions where
  toPath :: ListProxySessions -> ByteString
toPath ListProxySessions' {Maybe Natural
Maybe Text
Maybe ProxySessionStatus
Text
voiceConnectorId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
status :: Maybe ProxySessionStatus
$sel:voiceConnectorId:ListProxySessions' :: ListProxySessions -> Text
$sel:maxResults:ListProxySessions' :: ListProxySessions -> Maybe Natural
$sel:nextToken:ListProxySessions' :: ListProxySessions -> Maybe Text
$sel:status:ListProxySessions' :: ListProxySessions -> Maybe ProxySessionStatus
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/voice-connectors/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
voiceConnectorId,
        ByteString
"/proxy-sessions"
      ]

instance Core.ToQuery ListProxySessions where
  toQuery :: ListProxySessions -> QueryString
toQuery ListProxySessions' {Maybe Natural
Maybe Text
Maybe ProxySessionStatus
Text
voiceConnectorId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
status :: Maybe ProxySessionStatus
$sel:voiceConnectorId:ListProxySessions' :: ListProxySessions -> Text
$sel:maxResults:ListProxySessions' :: ListProxySessions -> Maybe Natural
$sel:nextToken:ListProxySessions' :: ListProxySessions -> Maybe Text
$sel:status:ListProxySessions' :: ListProxySessions -> Maybe ProxySessionStatus
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"status" ByteString -> Maybe ProxySessionStatus -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe ProxySessionStatus
status,
        ByteString
"next-token" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
        ByteString
"max-results" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
      ]

-- | /See:/ 'newListProxySessionsResponse' smart constructor.
data ListProxySessionsResponse = ListProxySessionsResponse'
  { -- | The token to use to retrieve the next page of results.
    ListProxySessionsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The proxy session details.
    ListProxySessionsResponse -> Maybe [ProxySession]
proxySessions :: Prelude.Maybe [ProxySession],
    -- | The response's http status code.
    ListProxySessionsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListProxySessionsResponse -> ListProxySessionsResponse -> Bool
(ListProxySessionsResponse -> ListProxySessionsResponse -> Bool)
-> (ListProxySessionsResponse -> ListProxySessionsResponse -> Bool)
-> Eq ListProxySessionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListProxySessionsResponse -> ListProxySessionsResponse -> Bool
$c/= :: ListProxySessionsResponse -> ListProxySessionsResponse -> Bool
== :: ListProxySessionsResponse -> ListProxySessionsResponse -> Bool
$c== :: ListProxySessionsResponse -> ListProxySessionsResponse -> Bool
Prelude.Eq, Int -> ListProxySessionsResponse -> ShowS
[ListProxySessionsResponse] -> ShowS
ListProxySessionsResponse -> String
(Int -> ListProxySessionsResponse -> ShowS)
-> (ListProxySessionsResponse -> String)
-> ([ListProxySessionsResponse] -> ShowS)
-> Show ListProxySessionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListProxySessionsResponse] -> ShowS
$cshowList :: [ListProxySessionsResponse] -> ShowS
show :: ListProxySessionsResponse -> String
$cshow :: ListProxySessionsResponse -> String
showsPrec :: Int -> ListProxySessionsResponse -> ShowS
$cshowsPrec :: Int -> ListProxySessionsResponse -> ShowS
Prelude.Show, (forall x.
 ListProxySessionsResponse -> Rep ListProxySessionsResponse x)
-> (forall x.
    Rep ListProxySessionsResponse x -> ListProxySessionsResponse)
-> Generic ListProxySessionsResponse
forall x.
Rep ListProxySessionsResponse x -> ListProxySessionsResponse
forall x.
ListProxySessionsResponse -> Rep ListProxySessionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListProxySessionsResponse x -> ListProxySessionsResponse
$cfrom :: forall x.
ListProxySessionsResponse -> Rep ListProxySessionsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListProxySessionsResponse' 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:
--
-- 'nextToken', 'listProxySessionsResponse_nextToken' - The token to use to retrieve the next page of results.
--
-- 'proxySessions', 'listProxySessionsResponse_proxySessions' - The proxy session details.
--
-- 'httpStatus', 'listProxySessionsResponse_httpStatus' - The response's http status code.
newListProxySessionsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListProxySessionsResponse
newListProxySessionsResponse :: Int -> ListProxySessionsResponse
newListProxySessionsResponse Int
pHttpStatus_ =
  ListProxySessionsResponse' :: Maybe Text
-> Maybe [ProxySession] -> Int -> ListProxySessionsResponse
ListProxySessionsResponse'
    { $sel:nextToken:ListProxySessionsResponse' :: Maybe Text
nextToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:proxySessions:ListProxySessionsResponse' :: Maybe [ProxySession]
proxySessions = Maybe [ProxySession]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListProxySessionsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The token to use to retrieve the next page of results.
listProxySessionsResponse_nextToken :: Lens.Lens' ListProxySessionsResponse (Prelude.Maybe Prelude.Text)
listProxySessionsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListProxySessionsResponse -> f ListProxySessionsResponse
listProxySessionsResponse_nextToken = (ListProxySessionsResponse -> Maybe Text)
-> (ListProxySessionsResponse
    -> Maybe Text -> ListProxySessionsResponse)
-> Lens
     ListProxySessionsResponse
     ListProxySessionsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProxySessionsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListProxySessionsResponse' :: ListProxySessionsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListProxySessionsResponse
s@ListProxySessionsResponse' {} Maybe Text
a -> ListProxySessionsResponse
s {$sel:nextToken:ListProxySessionsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListProxySessionsResponse)

-- | The proxy session details.
listProxySessionsResponse_proxySessions :: Lens.Lens' ListProxySessionsResponse (Prelude.Maybe [ProxySession])
listProxySessionsResponse_proxySessions :: (Maybe [ProxySession] -> f (Maybe [ProxySession]))
-> ListProxySessionsResponse -> f ListProxySessionsResponse
listProxySessionsResponse_proxySessions = (ListProxySessionsResponse -> Maybe [ProxySession])
-> (ListProxySessionsResponse
    -> Maybe [ProxySession] -> ListProxySessionsResponse)
-> Lens
     ListProxySessionsResponse
     ListProxySessionsResponse
     (Maybe [ProxySession])
     (Maybe [ProxySession])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProxySessionsResponse' {Maybe [ProxySession]
proxySessions :: Maybe [ProxySession]
$sel:proxySessions:ListProxySessionsResponse' :: ListProxySessionsResponse -> Maybe [ProxySession]
proxySessions} -> Maybe [ProxySession]
proxySessions) (\s :: ListProxySessionsResponse
s@ListProxySessionsResponse' {} Maybe [ProxySession]
a -> ListProxySessionsResponse
s {$sel:proxySessions:ListProxySessionsResponse' :: Maybe [ProxySession]
proxySessions = Maybe [ProxySession]
a} :: ListProxySessionsResponse) ((Maybe [ProxySession] -> f (Maybe [ProxySession]))
 -> ListProxySessionsResponse -> f ListProxySessionsResponse)
-> ((Maybe [ProxySession] -> f (Maybe [ProxySession]))
    -> Maybe [ProxySession] -> f (Maybe [ProxySession]))
-> (Maybe [ProxySession] -> f (Maybe [ProxySession]))
-> ListProxySessionsResponse
-> f ListProxySessionsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [ProxySession] [ProxySession] [ProxySession] [ProxySession]
-> Iso
     (Maybe [ProxySession])
     (Maybe [ProxySession])
     (Maybe [ProxySession])
     (Maybe [ProxySession])
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 [ProxySession] [ProxySession] [ProxySession] [ProxySession]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance Prelude.NFData ListProxySessionsResponse