{-# 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.IoTWireless.ListPartnerAccounts
-- 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 partner accounts associated with your AWS account.
module Amazonka.IoTWireless.ListPartnerAccounts
  ( -- * Creating a Request
    ListPartnerAccounts (..),
    newListPartnerAccounts,

    -- * Request Lenses
    listPartnerAccounts_nextToken,
    listPartnerAccounts_maxResults,

    -- * Destructuring the Response
    ListPartnerAccountsResponse (..),
    newListPartnerAccountsResponse,

    -- * Response Lenses
    listPartnerAccountsResponse_sidewalk,
    listPartnerAccountsResponse_nextToken,
    listPartnerAccountsResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.IoTWireless.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:/ 'newListPartnerAccounts' smart constructor.
data ListPartnerAccounts = ListPartnerAccounts'
  { -- | To retrieve the next set of results, the @nextToken@ value from a
    -- previous response; otherwise __null__ to receive the first set of
    -- results.
    ListPartnerAccounts -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of results to return in this operation.
    ListPartnerAccounts -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
  }
  deriving (ListPartnerAccounts -> ListPartnerAccounts -> Bool
(ListPartnerAccounts -> ListPartnerAccounts -> Bool)
-> (ListPartnerAccounts -> ListPartnerAccounts -> Bool)
-> Eq ListPartnerAccounts
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListPartnerAccounts -> ListPartnerAccounts -> Bool
$c/= :: ListPartnerAccounts -> ListPartnerAccounts -> Bool
== :: ListPartnerAccounts -> ListPartnerAccounts -> Bool
$c== :: ListPartnerAccounts -> ListPartnerAccounts -> Bool
Prelude.Eq, ReadPrec [ListPartnerAccounts]
ReadPrec ListPartnerAccounts
Int -> ReadS ListPartnerAccounts
ReadS [ListPartnerAccounts]
(Int -> ReadS ListPartnerAccounts)
-> ReadS [ListPartnerAccounts]
-> ReadPrec ListPartnerAccounts
-> ReadPrec [ListPartnerAccounts]
-> Read ListPartnerAccounts
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListPartnerAccounts]
$creadListPrec :: ReadPrec [ListPartnerAccounts]
readPrec :: ReadPrec ListPartnerAccounts
$creadPrec :: ReadPrec ListPartnerAccounts
readList :: ReadS [ListPartnerAccounts]
$creadList :: ReadS [ListPartnerAccounts]
readsPrec :: Int -> ReadS ListPartnerAccounts
$creadsPrec :: Int -> ReadS ListPartnerAccounts
Prelude.Read, Int -> ListPartnerAccounts -> ShowS
[ListPartnerAccounts] -> ShowS
ListPartnerAccounts -> String
(Int -> ListPartnerAccounts -> ShowS)
-> (ListPartnerAccounts -> String)
-> ([ListPartnerAccounts] -> ShowS)
-> Show ListPartnerAccounts
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListPartnerAccounts] -> ShowS
$cshowList :: [ListPartnerAccounts] -> ShowS
show :: ListPartnerAccounts -> String
$cshow :: ListPartnerAccounts -> String
showsPrec :: Int -> ListPartnerAccounts -> ShowS
$cshowsPrec :: Int -> ListPartnerAccounts -> ShowS
Prelude.Show, (forall x. ListPartnerAccounts -> Rep ListPartnerAccounts x)
-> (forall x. Rep ListPartnerAccounts x -> ListPartnerAccounts)
-> Generic ListPartnerAccounts
forall x. Rep ListPartnerAccounts x -> ListPartnerAccounts
forall x. ListPartnerAccounts -> Rep ListPartnerAccounts x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListPartnerAccounts x -> ListPartnerAccounts
$cfrom :: forall x. ListPartnerAccounts -> Rep ListPartnerAccounts x
Prelude.Generic)

-- |
-- Create a value of 'ListPartnerAccounts' 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', 'listPartnerAccounts_nextToken' - To retrieve the next set of results, the @nextToken@ value from a
-- previous response; otherwise __null__ to receive the first set of
-- results.
--
-- 'maxResults', 'listPartnerAccounts_maxResults' - The maximum number of results to return in this operation.
newListPartnerAccounts ::
  ListPartnerAccounts
newListPartnerAccounts :: ListPartnerAccounts
newListPartnerAccounts =
  ListPartnerAccounts' :: Maybe Text -> Maybe Natural -> ListPartnerAccounts
ListPartnerAccounts'
    { $sel:nextToken:ListPartnerAccounts' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListPartnerAccounts' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
    }

-- | To retrieve the next set of results, the @nextToken@ value from a
-- previous response; otherwise __null__ to receive the first set of
-- results.
listPartnerAccounts_nextToken :: Lens.Lens' ListPartnerAccounts (Prelude.Maybe Prelude.Text)
listPartnerAccounts_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListPartnerAccounts -> f ListPartnerAccounts
listPartnerAccounts_nextToken = (ListPartnerAccounts -> Maybe Text)
-> (ListPartnerAccounts -> Maybe Text -> ListPartnerAccounts)
-> Lens
     ListPartnerAccounts ListPartnerAccounts (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPartnerAccounts' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListPartnerAccounts' :: ListPartnerAccounts -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListPartnerAccounts
s@ListPartnerAccounts' {} Maybe Text
a -> ListPartnerAccounts
s {$sel:nextToken:ListPartnerAccounts' :: Maybe Text
nextToken = Maybe Text
a} :: ListPartnerAccounts)

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

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

instance Prelude.NFData ListPartnerAccounts

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

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

instance Core.ToQuery ListPartnerAccounts where
  toQuery :: ListPartnerAccounts -> QueryString
toQuery ListPartnerAccounts' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:maxResults:ListPartnerAccounts' :: ListPartnerAccounts -> Maybe Natural
$sel:nextToken:ListPartnerAccounts' :: ListPartnerAccounts -> Maybe Text
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
        ByteString
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
      ]

-- | /See:/ 'newListPartnerAccountsResponse' smart constructor.
data ListPartnerAccountsResponse = ListPartnerAccountsResponse'
  { -- | The Sidewalk account credentials.
    ListPartnerAccountsResponse
-> Maybe [SidewalkAccountInfoWithFingerprint]
sidewalk :: Prelude.Maybe [SidewalkAccountInfoWithFingerprint],
    -- | The token to use to get the next set of results, or __null__ if there
    -- are no additional results.
    ListPartnerAccountsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListPartnerAccountsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListPartnerAccountsResponse -> ListPartnerAccountsResponse -> Bool
(ListPartnerAccountsResponse
 -> ListPartnerAccountsResponse -> Bool)
-> (ListPartnerAccountsResponse
    -> ListPartnerAccountsResponse -> Bool)
-> Eq ListPartnerAccountsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListPartnerAccountsResponse -> ListPartnerAccountsResponse -> Bool
$c/= :: ListPartnerAccountsResponse -> ListPartnerAccountsResponse -> Bool
== :: ListPartnerAccountsResponse -> ListPartnerAccountsResponse -> Bool
$c== :: ListPartnerAccountsResponse -> ListPartnerAccountsResponse -> Bool
Prelude.Eq, Int -> ListPartnerAccountsResponse -> ShowS
[ListPartnerAccountsResponse] -> ShowS
ListPartnerAccountsResponse -> String
(Int -> ListPartnerAccountsResponse -> ShowS)
-> (ListPartnerAccountsResponse -> String)
-> ([ListPartnerAccountsResponse] -> ShowS)
-> Show ListPartnerAccountsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListPartnerAccountsResponse] -> ShowS
$cshowList :: [ListPartnerAccountsResponse] -> ShowS
show :: ListPartnerAccountsResponse -> String
$cshow :: ListPartnerAccountsResponse -> String
showsPrec :: Int -> ListPartnerAccountsResponse -> ShowS
$cshowsPrec :: Int -> ListPartnerAccountsResponse -> ShowS
Prelude.Show, (forall x.
 ListPartnerAccountsResponse -> Rep ListPartnerAccountsResponse x)
-> (forall x.
    Rep ListPartnerAccountsResponse x -> ListPartnerAccountsResponse)
-> Generic ListPartnerAccountsResponse
forall x.
Rep ListPartnerAccountsResponse x -> ListPartnerAccountsResponse
forall x.
ListPartnerAccountsResponse -> Rep ListPartnerAccountsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListPartnerAccountsResponse x -> ListPartnerAccountsResponse
$cfrom :: forall x.
ListPartnerAccountsResponse -> Rep ListPartnerAccountsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListPartnerAccountsResponse' 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:
--
-- 'sidewalk', 'listPartnerAccountsResponse_sidewalk' - The Sidewalk account credentials.
--
-- 'nextToken', 'listPartnerAccountsResponse_nextToken' - The token to use to get the next set of results, or __null__ if there
-- are no additional results.
--
-- 'httpStatus', 'listPartnerAccountsResponse_httpStatus' - The response's http status code.
newListPartnerAccountsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListPartnerAccountsResponse
newListPartnerAccountsResponse :: Int -> ListPartnerAccountsResponse
newListPartnerAccountsResponse Int
pHttpStatus_ =
  ListPartnerAccountsResponse' :: Maybe [SidewalkAccountInfoWithFingerprint]
-> Maybe Text -> Int -> ListPartnerAccountsResponse
ListPartnerAccountsResponse'
    { $sel:sidewalk:ListPartnerAccountsResponse' :: Maybe [SidewalkAccountInfoWithFingerprint]
sidewalk =
        Maybe [SidewalkAccountInfoWithFingerprint]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListPartnerAccountsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListPartnerAccountsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The Sidewalk account credentials.
listPartnerAccountsResponse_sidewalk :: Lens.Lens' ListPartnerAccountsResponse (Prelude.Maybe [SidewalkAccountInfoWithFingerprint])
listPartnerAccountsResponse_sidewalk :: (Maybe [SidewalkAccountInfoWithFingerprint]
 -> f (Maybe [SidewalkAccountInfoWithFingerprint]))
-> ListPartnerAccountsResponse -> f ListPartnerAccountsResponse
listPartnerAccountsResponse_sidewalk = (ListPartnerAccountsResponse
 -> Maybe [SidewalkAccountInfoWithFingerprint])
-> (ListPartnerAccountsResponse
    -> Maybe [SidewalkAccountInfoWithFingerprint]
    -> ListPartnerAccountsResponse)
-> Lens
     ListPartnerAccountsResponse
     ListPartnerAccountsResponse
     (Maybe [SidewalkAccountInfoWithFingerprint])
     (Maybe [SidewalkAccountInfoWithFingerprint])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPartnerAccountsResponse' {Maybe [SidewalkAccountInfoWithFingerprint]
sidewalk :: Maybe [SidewalkAccountInfoWithFingerprint]
$sel:sidewalk:ListPartnerAccountsResponse' :: ListPartnerAccountsResponse
-> Maybe [SidewalkAccountInfoWithFingerprint]
sidewalk} -> Maybe [SidewalkAccountInfoWithFingerprint]
sidewalk) (\s :: ListPartnerAccountsResponse
s@ListPartnerAccountsResponse' {} Maybe [SidewalkAccountInfoWithFingerprint]
a -> ListPartnerAccountsResponse
s {$sel:sidewalk:ListPartnerAccountsResponse' :: Maybe [SidewalkAccountInfoWithFingerprint]
sidewalk = Maybe [SidewalkAccountInfoWithFingerprint]
a} :: ListPartnerAccountsResponse) ((Maybe [SidewalkAccountInfoWithFingerprint]
  -> f (Maybe [SidewalkAccountInfoWithFingerprint]))
 -> ListPartnerAccountsResponse -> f ListPartnerAccountsResponse)
-> ((Maybe [SidewalkAccountInfoWithFingerprint]
     -> f (Maybe [SidewalkAccountInfoWithFingerprint]))
    -> Maybe [SidewalkAccountInfoWithFingerprint]
    -> f (Maybe [SidewalkAccountInfoWithFingerprint]))
-> (Maybe [SidewalkAccountInfoWithFingerprint]
    -> f (Maybe [SidewalkAccountInfoWithFingerprint]))
-> ListPartnerAccountsResponse
-> f ListPartnerAccountsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [SidewalkAccountInfoWithFingerprint]
  [SidewalkAccountInfoWithFingerprint]
  [SidewalkAccountInfoWithFingerprint]
  [SidewalkAccountInfoWithFingerprint]
-> Iso
     (Maybe [SidewalkAccountInfoWithFingerprint])
     (Maybe [SidewalkAccountInfoWithFingerprint])
     (Maybe [SidewalkAccountInfoWithFingerprint])
     (Maybe [SidewalkAccountInfoWithFingerprint])
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
  [SidewalkAccountInfoWithFingerprint]
  [SidewalkAccountInfoWithFingerprint]
  [SidewalkAccountInfoWithFingerprint]
  [SidewalkAccountInfoWithFingerprint]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The token to use to get the next set of results, or __null__ if there
-- are no additional results.
listPartnerAccountsResponse_nextToken :: Lens.Lens' ListPartnerAccountsResponse (Prelude.Maybe Prelude.Text)
listPartnerAccountsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListPartnerAccountsResponse -> f ListPartnerAccountsResponse
listPartnerAccountsResponse_nextToken = (ListPartnerAccountsResponse -> Maybe Text)
-> (ListPartnerAccountsResponse
    -> Maybe Text -> ListPartnerAccountsResponse)
-> Lens
     ListPartnerAccountsResponse
     ListPartnerAccountsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListPartnerAccountsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListPartnerAccountsResponse' :: ListPartnerAccountsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListPartnerAccountsResponse
s@ListPartnerAccountsResponse' {} Maybe Text
a -> ListPartnerAccountsResponse
s {$sel:nextToken:ListPartnerAccountsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListPartnerAccountsResponse)

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

instance Prelude.NFData ListPartnerAccountsResponse