{-# 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.WellArchitected.ListLensShares
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- List the lens shares associated with the lens.
module Amazonka.WellArchitected.ListLensShares
  ( -- * Creating a Request
    ListLensShares (..),
    newListLensShares,

    -- * Request Lenses
    listLensShares_maxResults,
    listLensShares_nextToken,
    listLensShares_sharedWithPrefix,
    listLensShares_status,
    listLensShares_lensAlias,

    -- * Destructuring the Response
    ListLensSharesResponse (..),
    newListLensSharesResponse,

    -- * Response Lenses
    listLensSharesResponse_lensShareSummaries,
    listLensSharesResponse_nextToken,
    listLensSharesResponse_httpStatus,
  )
where

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

-- | /See:/ 'newListLensShares' smart constructor.
data ListLensShares = ListLensShares'
  { -- | The maximum number of results to return for this request.
    ListLensShares -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    ListLensShares -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Web Services account ID, IAM role, organization ID, or
    -- organizational unit (OU) ID with which the lens is shared.
    ListLensShares -> Maybe Text
sharedWithPrefix :: Prelude.Maybe Prelude.Text,
    ListLensShares -> Maybe ShareStatus
status :: Prelude.Maybe ShareStatus,
    ListLensShares -> Text
lensAlias :: Prelude.Text
  }
  deriving (ListLensShares -> ListLensShares -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListLensShares -> ListLensShares -> Bool
$c/= :: ListLensShares -> ListLensShares -> Bool
== :: ListLensShares -> ListLensShares -> Bool
$c== :: ListLensShares -> ListLensShares -> Bool
Prelude.Eq, ReadPrec [ListLensShares]
ReadPrec ListLensShares
Int -> ReadS ListLensShares
ReadS [ListLensShares]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListLensShares]
$creadListPrec :: ReadPrec [ListLensShares]
readPrec :: ReadPrec ListLensShares
$creadPrec :: ReadPrec ListLensShares
readList :: ReadS [ListLensShares]
$creadList :: ReadS [ListLensShares]
readsPrec :: Int -> ReadS ListLensShares
$creadsPrec :: Int -> ReadS ListLensShares
Prelude.Read, Int -> ListLensShares -> ShowS
[ListLensShares] -> ShowS
ListLensShares -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListLensShares] -> ShowS
$cshowList :: [ListLensShares] -> ShowS
show :: ListLensShares -> String
$cshow :: ListLensShares -> String
showsPrec :: Int -> ListLensShares -> ShowS
$cshowsPrec :: Int -> ListLensShares -> ShowS
Prelude.Show, forall x. Rep ListLensShares x -> ListLensShares
forall x. ListLensShares -> Rep ListLensShares x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListLensShares x -> ListLensShares
$cfrom :: forall x. ListLensShares -> Rep ListLensShares x
Prelude.Generic)

-- |
-- Create a value of 'ListLensShares' 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:
--
-- 'maxResults', 'listLensShares_maxResults' - The maximum number of results to return for this request.
--
-- 'nextToken', 'listLensShares_nextToken' - Undocumented member.
--
-- 'sharedWithPrefix', 'listLensShares_sharedWithPrefix' - The Amazon Web Services account ID, IAM role, organization ID, or
-- organizational unit (OU) ID with which the lens is shared.
--
-- 'status', 'listLensShares_status' - Undocumented member.
--
-- 'lensAlias', 'listLensShares_lensAlias' - Undocumented member.
newListLensShares ::
  -- | 'lensAlias'
  Prelude.Text ->
  ListLensShares
newListLensShares :: Text -> ListLensShares
newListLensShares Text
pLensAlias_ =
  ListLensShares'
    { $sel:maxResults:ListLensShares' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListLensShares' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:sharedWithPrefix:ListLensShares' :: Maybe Text
sharedWithPrefix = forall a. Maybe a
Prelude.Nothing,
      $sel:status:ListLensShares' :: Maybe ShareStatus
status = forall a. Maybe a
Prelude.Nothing,
      $sel:lensAlias:ListLensShares' :: Text
lensAlias = Text
pLensAlias_
    }

-- | The maximum number of results to return for this request.
listLensShares_maxResults :: Lens.Lens' ListLensShares (Prelude.Maybe Prelude.Natural)
listLensShares_maxResults :: Lens' ListLensShares (Maybe Natural)
listLensShares_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLensShares' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListLensShares' :: ListLensShares -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListLensShares
s@ListLensShares' {} Maybe Natural
a -> ListLensShares
s {$sel:maxResults:ListLensShares' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListLensShares)

-- | Undocumented member.
listLensShares_nextToken :: Lens.Lens' ListLensShares (Prelude.Maybe Prelude.Text)
listLensShares_nextToken :: Lens' ListLensShares (Maybe Text)
listLensShares_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLensShares' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListLensShares' :: ListLensShares -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListLensShares
s@ListLensShares' {} Maybe Text
a -> ListLensShares
s {$sel:nextToken:ListLensShares' :: Maybe Text
nextToken = Maybe Text
a} :: ListLensShares)

-- | The Amazon Web Services account ID, IAM role, organization ID, or
-- organizational unit (OU) ID with which the lens is shared.
listLensShares_sharedWithPrefix :: Lens.Lens' ListLensShares (Prelude.Maybe Prelude.Text)
listLensShares_sharedWithPrefix :: Lens' ListLensShares (Maybe Text)
listLensShares_sharedWithPrefix = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLensShares' {Maybe Text
sharedWithPrefix :: Maybe Text
$sel:sharedWithPrefix:ListLensShares' :: ListLensShares -> Maybe Text
sharedWithPrefix} -> Maybe Text
sharedWithPrefix) (\s :: ListLensShares
s@ListLensShares' {} Maybe Text
a -> ListLensShares
s {$sel:sharedWithPrefix:ListLensShares' :: Maybe Text
sharedWithPrefix = Maybe Text
a} :: ListLensShares)

-- | Undocumented member.
listLensShares_status :: Lens.Lens' ListLensShares (Prelude.Maybe ShareStatus)
listLensShares_status :: Lens' ListLensShares (Maybe ShareStatus)
listLensShares_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLensShares' {Maybe ShareStatus
status :: Maybe ShareStatus
$sel:status:ListLensShares' :: ListLensShares -> Maybe ShareStatus
status} -> Maybe ShareStatus
status) (\s :: ListLensShares
s@ListLensShares' {} Maybe ShareStatus
a -> ListLensShares
s {$sel:status:ListLensShares' :: Maybe ShareStatus
status = Maybe ShareStatus
a} :: ListLensShares)

-- | Undocumented member.
listLensShares_lensAlias :: Lens.Lens' ListLensShares Prelude.Text
listLensShares_lensAlias :: Lens' ListLensShares Text
listLensShares_lensAlias = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLensShares' {Text
lensAlias :: Text
$sel:lensAlias:ListLensShares' :: ListLensShares -> Text
lensAlias} -> Text
lensAlias) (\s :: ListLensShares
s@ListLensShares' {} Text
a -> ListLensShares
s {$sel:lensAlias:ListLensShares' :: Text
lensAlias = Text
a} :: ListLensShares)

instance Core.AWSRequest ListLensShares where
  type
    AWSResponse ListLensShares =
      ListLensSharesResponse
  request :: (Service -> Service) -> ListLensShares -> Request ListLensShares
request Service -> Service
overrides =
    forall a. ToRequest a => Service -> a -> Request a
Request.get (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListLensShares
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListLensShares)))
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 [LensShareSummary]
-> Maybe Text -> Int -> ListLensSharesResponse
ListLensSharesResponse'
            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
"LensShareSummaries"
                            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 ListLensShares where
  hashWithSalt :: Int -> ListLensShares -> Int
hashWithSalt Int
_salt ListLensShares' {Maybe Natural
Maybe Text
Maybe ShareStatus
Text
lensAlias :: Text
status :: Maybe ShareStatus
sharedWithPrefix :: Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:lensAlias:ListLensShares' :: ListLensShares -> Text
$sel:status:ListLensShares' :: ListLensShares -> Maybe ShareStatus
$sel:sharedWithPrefix:ListLensShares' :: ListLensShares -> Maybe Text
$sel:nextToken:ListLensShares' :: ListLensShares -> Maybe Text
$sel:maxResults:ListLensShares' :: ListLensShares -> Maybe Natural
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
sharedWithPrefix
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ShareStatus
status
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
lensAlias

instance Prelude.NFData ListLensShares where
  rnf :: ListLensShares -> ()
rnf ListLensShares' {Maybe Natural
Maybe Text
Maybe ShareStatus
Text
lensAlias :: Text
status :: Maybe ShareStatus
sharedWithPrefix :: Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:lensAlias:ListLensShares' :: ListLensShares -> Text
$sel:status:ListLensShares' :: ListLensShares -> Maybe ShareStatus
$sel:sharedWithPrefix:ListLensShares' :: ListLensShares -> Maybe Text
$sel:nextToken:ListLensShares' :: ListLensShares -> Maybe Text
$sel:maxResults:ListLensShares' :: ListLensShares -> Maybe Natural
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
      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 Maybe Text
sharedWithPrefix
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ShareStatus
status
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
lensAlias

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

instance Data.ToPath ListLensShares where
  toPath :: ListLensShares -> ByteString
toPath ListLensShares' {Maybe Natural
Maybe Text
Maybe ShareStatus
Text
lensAlias :: Text
status :: Maybe ShareStatus
sharedWithPrefix :: Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:lensAlias:ListLensShares' :: ListLensShares -> Text
$sel:status:ListLensShares' :: ListLensShares -> Maybe ShareStatus
$sel:sharedWithPrefix:ListLensShares' :: ListLensShares -> Maybe Text
$sel:nextToken:ListLensShares' :: ListLensShares -> Maybe Text
$sel:maxResults:ListLensShares' :: ListLensShares -> Maybe Natural
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ByteString
"/lenses/", forall a. ToByteString a => a -> ByteString
Data.toBS Text
lensAlias, ByteString
"/shares"]

instance Data.ToQuery ListLensShares where
  toQuery :: ListLensShares -> QueryString
toQuery ListLensShares' {Maybe Natural
Maybe Text
Maybe ShareStatus
Text
lensAlias :: Text
status :: Maybe ShareStatus
sharedWithPrefix :: Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:lensAlias:ListLensShares' :: ListLensShares -> Text
$sel:status:ListLensShares' :: ListLensShares -> Maybe ShareStatus
$sel:sharedWithPrefix:ListLensShares' :: ListLensShares -> Maybe Text
$sel:nextToken:ListLensShares' :: ListLensShares -> Maybe Text
$sel:maxResults:ListLensShares' :: ListLensShares -> Maybe Natural
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"MaxResults" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Natural
maxResults,
        ByteString
"NextToken" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
nextToken,
        ByteString
"SharedWithPrefix" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
sharedWithPrefix,
        ByteString
"Status" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe ShareStatus
status
      ]

-- | /See:/ 'newListLensSharesResponse' smart constructor.
data ListLensSharesResponse = ListLensSharesResponse'
  { -- | A list of lens share summaries.
    ListLensSharesResponse -> Maybe [LensShareSummary]
lensShareSummaries :: Prelude.Maybe [LensShareSummary],
    ListLensSharesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListLensSharesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListLensSharesResponse -> ListLensSharesResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListLensSharesResponse -> ListLensSharesResponse -> Bool
$c/= :: ListLensSharesResponse -> ListLensSharesResponse -> Bool
== :: ListLensSharesResponse -> ListLensSharesResponse -> Bool
$c== :: ListLensSharesResponse -> ListLensSharesResponse -> Bool
Prelude.Eq, ReadPrec [ListLensSharesResponse]
ReadPrec ListLensSharesResponse
Int -> ReadS ListLensSharesResponse
ReadS [ListLensSharesResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListLensSharesResponse]
$creadListPrec :: ReadPrec [ListLensSharesResponse]
readPrec :: ReadPrec ListLensSharesResponse
$creadPrec :: ReadPrec ListLensSharesResponse
readList :: ReadS [ListLensSharesResponse]
$creadList :: ReadS [ListLensSharesResponse]
readsPrec :: Int -> ReadS ListLensSharesResponse
$creadsPrec :: Int -> ReadS ListLensSharesResponse
Prelude.Read, Int -> ListLensSharesResponse -> ShowS
[ListLensSharesResponse] -> ShowS
ListLensSharesResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListLensSharesResponse] -> ShowS
$cshowList :: [ListLensSharesResponse] -> ShowS
show :: ListLensSharesResponse -> String
$cshow :: ListLensSharesResponse -> String
showsPrec :: Int -> ListLensSharesResponse -> ShowS
$cshowsPrec :: Int -> ListLensSharesResponse -> ShowS
Prelude.Show, forall x. Rep ListLensSharesResponse x -> ListLensSharesResponse
forall x. ListLensSharesResponse -> Rep ListLensSharesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListLensSharesResponse x -> ListLensSharesResponse
$cfrom :: forall x. ListLensSharesResponse -> Rep ListLensSharesResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListLensSharesResponse' 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:
--
-- 'lensShareSummaries', 'listLensSharesResponse_lensShareSummaries' - A list of lens share summaries.
--
-- 'nextToken', 'listLensSharesResponse_nextToken' - Undocumented member.
--
-- 'httpStatus', 'listLensSharesResponse_httpStatus' - The response's http status code.
newListLensSharesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListLensSharesResponse
newListLensSharesResponse :: Int -> ListLensSharesResponse
newListLensSharesResponse Int
pHttpStatus_ =
  ListLensSharesResponse'
    { $sel:lensShareSummaries:ListLensSharesResponse' :: Maybe [LensShareSummary]
lensShareSummaries =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListLensSharesResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListLensSharesResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A list of lens share summaries.
listLensSharesResponse_lensShareSummaries :: Lens.Lens' ListLensSharesResponse (Prelude.Maybe [LensShareSummary])
listLensSharesResponse_lensShareSummaries :: Lens' ListLensSharesResponse (Maybe [LensShareSummary])
listLensSharesResponse_lensShareSummaries = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLensSharesResponse' {Maybe [LensShareSummary]
lensShareSummaries :: Maybe [LensShareSummary]
$sel:lensShareSummaries:ListLensSharesResponse' :: ListLensSharesResponse -> Maybe [LensShareSummary]
lensShareSummaries} -> Maybe [LensShareSummary]
lensShareSummaries) (\s :: ListLensSharesResponse
s@ListLensSharesResponse' {} Maybe [LensShareSummary]
a -> ListLensSharesResponse
s {$sel:lensShareSummaries:ListLensSharesResponse' :: Maybe [LensShareSummary]
lensShareSummaries = Maybe [LensShareSummary]
a} :: ListLensSharesResponse) 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

-- | Undocumented member.
listLensSharesResponse_nextToken :: Lens.Lens' ListLensSharesResponse (Prelude.Maybe Prelude.Text)
listLensSharesResponse_nextToken :: Lens' ListLensSharesResponse (Maybe Text)
listLensSharesResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLensSharesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListLensSharesResponse' :: ListLensSharesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListLensSharesResponse
s@ListLensSharesResponse' {} Maybe Text
a -> ListLensSharesResponse
s {$sel:nextToken:ListLensSharesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListLensSharesResponse)

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

instance Prelude.NFData ListLensSharesResponse where
  rnf :: ListLensSharesResponse -> ()
rnf ListLensSharesResponse' {Int
Maybe [LensShareSummary]
Maybe Text
httpStatus :: Int
nextToken :: Maybe Text
lensShareSummaries :: Maybe [LensShareSummary]
$sel:httpStatus:ListLensSharesResponse' :: ListLensSharesResponse -> Int
$sel:nextToken:ListLensSharesResponse' :: ListLensSharesResponse -> Maybe Text
$sel:lensShareSummaries:ListLensSharesResponse' :: ListLensSharesResponse -> Maybe [LensShareSummary]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [LensShareSummary]
lensShareSummaries
      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