{-# 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.ListShareInvitations
-- 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 workload invitations.
module Amazonka.WellArchitected.ListShareInvitations
  ( -- * Creating a Request
    ListShareInvitations (..),
    newListShareInvitations,

    -- * Request Lenses
    listShareInvitations_lensNamePrefix,
    listShareInvitations_maxResults,
    listShareInvitations_nextToken,
    listShareInvitations_shareResourceType,
    listShareInvitations_workloadNamePrefix,

    -- * Destructuring the Response
    ListShareInvitationsResponse (..),
    newListShareInvitationsResponse,

    -- * Response Lenses
    listShareInvitationsResponse_nextToken,
    listShareInvitationsResponse_shareInvitationSummaries,
    listShareInvitationsResponse_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

-- | Input for List Share Invitations
--
-- /See:/ 'newListShareInvitations' smart constructor.
data ListShareInvitations = ListShareInvitations'
  { -- | An optional string added to the beginning of each lens name returned in
    -- the results.
    ListShareInvitations -> Maybe Text
lensNamePrefix :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of results to return for this request.
    ListShareInvitations -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    ListShareInvitations -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The type of share invitations to be returned.
    ListShareInvitations -> Maybe ShareResourceType
shareResourceType :: Prelude.Maybe ShareResourceType,
    ListShareInvitations -> Maybe Text
workloadNamePrefix :: Prelude.Maybe Prelude.Text
  }
  deriving (ListShareInvitations -> ListShareInvitations -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListShareInvitations -> ListShareInvitations -> Bool
$c/= :: ListShareInvitations -> ListShareInvitations -> Bool
== :: ListShareInvitations -> ListShareInvitations -> Bool
$c== :: ListShareInvitations -> ListShareInvitations -> Bool
Prelude.Eq, ReadPrec [ListShareInvitations]
ReadPrec ListShareInvitations
Int -> ReadS ListShareInvitations
ReadS [ListShareInvitations]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListShareInvitations]
$creadListPrec :: ReadPrec [ListShareInvitations]
readPrec :: ReadPrec ListShareInvitations
$creadPrec :: ReadPrec ListShareInvitations
readList :: ReadS [ListShareInvitations]
$creadList :: ReadS [ListShareInvitations]
readsPrec :: Int -> ReadS ListShareInvitations
$creadsPrec :: Int -> ReadS ListShareInvitations
Prelude.Read, Int -> ListShareInvitations -> ShowS
[ListShareInvitations] -> ShowS
ListShareInvitations -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListShareInvitations] -> ShowS
$cshowList :: [ListShareInvitations] -> ShowS
show :: ListShareInvitations -> String
$cshow :: ListShareInvitations -> String
showsPrec :: Int -> ListShareInvitations -> ShowS
$cshowsPrec :: Int -> ListShareInvitations -> ShowS
Prelude.Show, forall x. Rep ListShareInvitations x -> ListShareInvitations
forall x. ListShareInvitations -> Rep ListShareInvitations x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListShareInvitations x -> ListShareInvitations
$cfrom :: forall x. ListShareInvitations -> Rep ListShareInvitations x
Prelude.Generic)

-- |
-- Create a value of 'ListShareInvitations' 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:
--
-- 'lensNamePrefix', 'listShareInvitations_lensNamePrefix' - An optional string added to the beginning of each lens name returned in
-- the results.
--
-- 'maxResults', 'listShareInvitations_maxResults' - The maximum number of results to return for this request.
--
-- 'nextToken', 'listShareInvitations_nextToken' - Undocumented member.
--
-- 'shareResourceType', 'listShareInvitations_shareResourceType' - The type of share invitations to be returned.
--
-- 'workloadNamePrefix', 'listShareInvitations_workloadNamePrefix' - Undocumented member.
newListShareInvitations ::
  ListShareInvitations
newListShareInvitations :: ListShareInvitations
newListShareInvitations =
  ListShareInvitations'
    { $sel:lensNamePrefix:ListShareInvitations' :: Maybe Text
lensNamePrefix =
        forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListShareInvitations' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListShareInvitations' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:shareResourceType:ListShareInvitations' :: Maybe ShareResourceType
shareResourceType = forall a. Maybe a
Prelude.Nothing,
      $sel:workloadNamePrefix:ListShareInvitations' :: Maybe Text
workloadNamePrefix = forall a. Maybe a
Prelude.Nothing
    }

-- | An optional string added to the beginning of each lens name returned in
-- the results.
listShareInvitations_lensNamePrefix :: Lens.Lens' ListShareInvitations (Prelude.Maybe Prelude.Text)
listShareInvitations_lensNamePrefix :: Lens' ListShareInvitations (Maybe Text)
listShareInvitations_lensNamePrefix = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListShareInvitations' {Maybe Text
lensNamePrefix :: Maybe Text
$sel:lensNamePrefix:ListShareInvitations' :: ListShareInvitations -> Maybe Text
lensNamePrefix} -> Maybe Text
lensNamePrefix) (\s :: ListShareInvitations
s@ListShareInvitations' {} Maybe Text
a -> ListShareInvitations
s {$sel:lensNamePrefix:ListShareInvitations' :: Maybe Text
lensNamePrefix = Maybe Text
a} :: ListShareInvitations)

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

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

-- | The type of share invitations to be returned.
listShareInvitations_shareResourceType :: Lens.Lens' ListShareInvitations (Prelude.Maybe ShareResourceType)
listShareInvitations_shareResourceType :: Lens' ListShareInvitations (Maybe ShareResourceType)
listShareInvitations_shareResourceType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListShareInvitations' {Maybe ShareResourceType
shareResourceType :: Maybe ShareResourceType
$sel:shareResourceType:ListShareInvitations' :: ListShareInvitations -> Maybe ShareResourceType
shareResourceType} -> Maybe ShareResourceType
shareResourceType) (\s :: ListShareInvitations
s@ListShareInvitations' {} Maybe ShareResourceType
a -> ListShareInvitations
s {$sel:shareResourceType:ListShareInvitations' :: Maybe ShareResourceType
shareResourceType = Maybe ShareResourceType
a} :: ListShareInvitations)

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

instance Core.AWSRequest ListShareInvitations where
  type
    AWSResponse ListShareInvitations =
      ListShareInvitationsResponse
  request :: (Service -> Service)
-> ListShareInvitations -> Request ListShareInvitations
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 ListShareInvitations
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListShareInvitations)))
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 Text
-> Maybe [ShareInvitationSummary]
-> Int
-> ListShareInvitationsResponse
ListShareInvitationsResponse'
            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
"NextToken")
            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
"ShareInvitationSummaries"
                            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.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable ListShareInvitations where
  hashWithSalt :: Int -> ListShareInvitations -> Int
hashWithSalt Int
_salt ListShareInvitations' {Maybe Natural
Maybe Text
Maybe ShareResourceType
workloadNamePrefix :: Maybe Text
shareResourceType :: Maybe ShareResourceType
nextToken :: Maybe Text
maxResults :: Maybe Natural
lensNamePrefix :: Maybe Text
$sel:workloadNamePrefix:ListShareInvitations' :: ListShareInvitations -> Maybe Text
$sel:shareResourceType:ListShareInvitations' :: ListShareInvitations -> Maybe ShareResourceType
$sel:nextToken:ListShareInvitations' :: ListShareInvitations -> Maybe Text
$sel:maxResults:ListShareInvitations' :: ListShareInvitations -> Maybe Natural
$sel:lensNamePrefix:ListShareInvitations' :: ListShareInvitations -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
lensNamePrefix
      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 ShareResourceType
shareResourceType
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
workloadNamePrefix

instance Prelude.NFData ListShareInvitations where
  rnf :: ListShareInvitations -> ()
rnf ListShareInvitations' {Maybe Natural
Maybe Text
Maybe ShareResourceType
workloadNamePrefix :: Maybe Text
shareResourceType :: Maybe ShareResourceType
nextToken :: Maybe Text
maxResults :: Maybe Natural
lensNamePrefix :: Maybe Text
$sel:workloadNamePrefix:ListShareInvitations' :: ListShareInvitations -> Maybe Text
$sel:shareResourceType:ListShareInvitations' :: ListShareInvitations -> Maybe ShareResourceType
$sel:nextToken:ListShareInvitations' :: ListShareInvitations -> Maybe Text
$sel:maxResults:ListShareInvitations' :: ListShareInvitations -> Maybe Natural
$sel:lensNamePrefix:ListShareInvitations' :: ListShareInvitations -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
lensNamePrefix
      seq :: forall a b. a -> b -> b
`Prelude.seq` 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 ShareResourceType
shareResourceType
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
workloadNamePrefix

instance Data.ToHeaders ListShareInvitations where
  toHeaders :: ListShareInvitations -> 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 ListShareInvitations where
  toPath :: ListShareInvitations -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/shareInvitations"

instance Data.ToQuery ListShareInvitations where
  toQuery :: ListShareInvitations -> QueryString
toQuery ListShareInvitations' {Maybe Natural
Maybe Text
Maybe ShareResourceType
workloadNamePrefix :: Maybe Text
shareResourceType :: Maybe ShareResourceType
nextToken :: Maybe Text
maxResults :: Maybe Natural
lensNamePrefix :: Maybe Text
$sel:workloadNamePrefix:ListShareInvitations' :: ListShareInvitations -> Maybe Text
$sel:shareResourceType:ListShareInvitations' :: ListShareInvitations -> Maybe ShareResourceType
$sel:nextToken:ListShareInvitations' :: ListShareInvitations -> Maybe Text
$sel:maxResults:ListShareInvitations' :: ListShareInvitations -> Maybe Natural
$sel:lensNamePrefix:ListShareInvitations' :: ListShareInvitations -> Maybe Text
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"LensNamePrefix" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
lensNamePrefix,
        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
"ShareResourceType" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe ShareResourceType
shareResourceType,
        ByteString
"WorkloadNamePrefix" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
workloadNamePrefix
      ]

-- | Input for List Share Invitations
--
-- /See:/ 'newListShareInvitationsResponse' smart constructor.
data ListShareInvitationsResponse = ListShareInvitationsResponse'
  { ListShareInvitationsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | List of share invitation summaries in a workload.
    ListShareInvitationsResponse -> Maybe [ShareInvitationSummary]
shareInvitationSummaries :: Prelude.Maybe [ShareInvitationSummary],
    -- | The response's http status code.
    ListShareInvitationsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListShareInvitationsResponse
-> ListShareInvitationsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListShareInvitationsResponse
-> ListShareInvitationsResponse -> Bool
$c/= :: ListShareInvitationsResponse
-> ListShareInvitationsResponse -> Bool
== :: ListShareInvitationsResponse
-> ListShareInvitationsResponse -> Bool
$c== :: ListShareInvitationsResponse
-> ListShareInvitationsResponse -> Bool
Prelude.Eq, ReadPrec [ListShareInvitationsResponse]
ReadPrec ListShareInvitationsResponse
Int -> ReadS ListShareInvitationsResponse
ReadS [ListShareInvitationsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListShareInvitationsResponse]
$creadListPrec :: ReadPrec [ListShareInvitationsResponse]
readPrec :: ReadPrec ListShareInvitationsResponse
$creadPrec :: ReadPrec ListShareInvitationsResponse
readList :: ReadS [ListShareInvitationsResponse]
$creadList :: ReadS [ListShareInvitationsResponse]
readsPrec :: Int -> ReadS ListShareInvitationsResponse
$creadsPrec :: Int -> ReadS ListShareInvitationsResponse
Prelude.Read, Int -> ListShareInvitationsResponse -> ShowS
[ListShareInvitationsResponse] -> ShowS
ListShareInvitationsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListShareInvitationsResponse] -> ShowS
$cshowList :: [ListShareInvitationsResponse] -> ShowS
show :: ListShareInvitationsResponse -> String
$cshow :: ListShareInvitationsResponse -> String
showsPrec :: Int -> ListShareInvitationsResponse -> ShowS
$cshowsPrec :: Int -> ListShareInvitationsResponse -> ShowS
Prelude.Show, forall x.
Rep ListShareInvitationsResponse x -> ListShareInvitationsResponse
forall x.
ListShareInvitationsResponse -> Rep ListShareInvitationsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListShareInvitationsResponse x -> ListShareInvitationsResponse
$cfrom :: forall x.
ListShareInvitationsResponse -> Rep ListShareInvitationsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListShareInvitationsResponse' 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', 'listShareInvitationsResponse_nextToken' - Undocumented member.
--
-- 'shareInvitationSummaries', 'listShareInvitationsResponse_shareInvitationSummaries' - List of share invitation summaries in a workload.
--
-- 'httpStatus', 'listShareInvitationsResponse_httpStatus' - The response's http status code.
newListShareInvitationsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListShareInvitationsResponse
newListShareInvitationsResponse :: Int -> ListShareInvitationsResponse
newListShareInvitationsResponse Int
pHttpStatus_ =
  ListShareInvitationsResponse'
    { $sel:nextToken:ListShareInvitationsResponse' :: Maybe Text
nextToken =
        forall a. Maybe a
Prelude.Nothing,
      $sel:shareInvitationSummaries:ListShareInvitationsResponse' :: Maybe [ShareInvitationSummary]
shareInvitationSummaries = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListShareInvitationsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

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

-- | List of share invitation summaries in a workload.
listShareInvitationsResponse_shareInvitationSummaries :: Lens.Lens' ListShareInvitationsResponse (Prelude.Maybe [ShareInvitationSummary])
listShareInvitationsResponse_shareInvitationSummaries :: Lens' ListShareInvitationsResponse (Maybe [ShareInvitationSummary])
listShareInvitationsResponse_shareInvitationSummaries = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListShareInvitationsResponse' {Maybe [ShareInvitationSummary]
shareInvitationSummaries :: Maybe [ShareInvitationSummary]
$sel:shareInvitationSummaries:ListShareInvitationsResponse' :: ListShareInvitationsResponse -> Maybe [ShareInvitationSummary]
shareInvitationSummaries} -> Maybe [ShareInvitationSummary]
shareInvitationSummaries) (\s :: ListShareInvitationsResponse
s@ListShareInvitationsResponse' {} Maybe [ShareInvitationSummary]
a -> ListShareInvitationsResponse
s {$sel:shareInvitationSummaries:ListShareInvitationsResponse' :: Maybe [ShareInvitationSummary]
shareInvitationSummaries = Maybe [ShareInvitationSummary]
a} :: ListShareInvitationsResponse) 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

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

instance Prelude.NFData ListShareInvitationsResponse where
  rnf :: ListShareInvitationsResponse -> ()
rnf ListShareInvitationsResponse' {Int
Maybe [ShareInvitationSummary]
Maybe Text
httpStatus :: Int
shareInvitationSummaries :: Maybe [ShareInvitationSummary]
nextToken :: Maybe Text
$sel:httpStatus:ListShareInvitationsResponse' :: ListShareInvitationsResponse -> Int
$sel:shareInvitationSummaries:ListShareInvitationsResponse' :: ListShareInvitationsResponse -> Maybe [ShareInvitationSummary]
$sel:nextToken:ListShareInvitationsResponse' :: ListShareInvitationsResponse -> Maybe Text
..} =
    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 [ShareInvitationSummary]
shareInvitationSummaries
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus