{-# 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.ChimeSDKIdentity.ListAppInstanceUserEndpoints
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Lists all the @AppInstanceUserEndpoints@ created under a single
-- @AppInstanceUser@.
module Amazonka.ChimeSDKIdentity.ListAppInstanceUserEndpoints
  ( -- * Creating a Request
    ListAppInstanceUserEndpoints (..),
    newListAppInstanceUserEndpoints,

    -- * Request Lenses
    listAppInstanceUserEndpoints_maxResults,
    listAppInstanceUserEndpoints_nextToken,
    listAppInstanceUserEndpoints_appInstanceUserArn,

    -- * Destructuring the Response
    ListAppInstanceUserEndpointsResponse (..),
    newListAppInstanceUserEndpointsResponse,

    -- * Response Lenses
    listAppInstanceUserEndpointsResponse_appInstanceUserEndpoints,
    listAppInstanceUserEndpointsResponse_nextToken,
    listAppInstanceUserEndpointsResponse_httpStatus,
  )
where

import Amazonka.ChimeSDKIdentity.Types
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

-- | /See:/ 'newListAppInstanceUserEndpoints' smart constructor.
data ListAppInstanceUserEndpoints = ListAppInstanceUserEndpoints'
  { -- | The maximum number of endpoints that you want to return.
    ListAppInstanceUserEndpoints -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The token passed by previous API calls until all requested endpoints are
    -- returned.
    ListAppInstanceUserEndpoints -> Maybe (Sensitive Text)
nextToken :: Prelude.Maybe (Data.Sensitive Prelude.Text),
    -- | The ARN of the @AppInstanceUser@.
    ListAppInstanceUserEndpoints -> Sensitive Text
appInstanceUserArn :: Data.Sensitive Prelude.Text
  }
  deriving (ListAppInstanceUserEndpoints
-> ListAppInstanceUserEndpoints -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAppInstanceUserEndpoints
-> ListAppInstanceUserEndpoints -> Bool
$c/= :: ListAppInstanceUserEndpoints
-> ListAppInstanceUserEndpoints -> Bool
== :: ListAppInstanceUserEndpoints
-> ListAppInstanceUserEndpoints -> Bool
$c== :: ListAppInstanceUserEndpoints
-> ListAppInstanceUserEndpoints -> Bool
Prelude.Eq, Int -> ListAppInstanceUserEndpoints -> ShowS
[ListAppInstanceUserEndpoints] -> ShowS
ListAppInstanceUserEndpoints -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAppInstanceUserEndpoints] -> ShowS
$cshowList :: [ListAppInstanceUserEndpoints] -> ShowS
show :: ListAppInstanceUserEndpoints -> String
$cshow :: ListAppInstanceUserEndpoints -> String
showsPrec :: Int -> ListAppInstanceUserEndpoints -> ShowS
$cshowsPrec :: Int -> ListAppInstanceUserEndpoints -> ShowS
Prelude.Show, forall x.
Rep ListAppInstanceUserEndpoints x -> ListAppInstanceUserEndpoints
forall x.
ListAppInstanceUserEndpoints -> Rep ListAppInstanceUserEndpoints x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListAppInstanceUserEndpoints x -> ListAppInstanceUserEndpoints
$cfrom :: forall x.
ListAppInstanceUserEndpoints -> Rep ListAppInstanceUserEndpoints x
Prelude.Generic)

-- |
-- Create a value of 'ListAppInstanceUserEndpoints' 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', 'listAppInstanceUserEndpoints_maxResults' - The maximum number of endpoints that you want to return.
--
-- 'nextToken', 'listAppInstanceUserEndpoints_nextToken' - The token passed by previous API calls until all requested endpoints are
-- returned.
--
-- 'appInstanceUserArn', 'listAppInstanceUserEndpoints_appInstanceUserArn' - The ARN of the @AppInstanceUser@.
newListAppInstanceUserEndpoints ::
  -- | 'appInstanceUserArn'
  Prelude.Text ->
  ListAppInstanceUserEndpoints
newListAppInstanceUserEndpoints :: Text -> ListAppInstanceUserEndpoints
newListAppInstanceUserEndpoints Text
pAppInstanceUserArn_ =
  ListAppInstanceUserEndpoints'
    { $sel:maxResults:ListAppInstanceUserEndpoints' :: Maybe Natural
maxResults =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListAppInstanceUserEndpoints' :: Maybe (Sensitive Text)
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:appInstanceUserArn:ListAppInstanceUserEndpoints' :: Sensitive Text
appInstanceUserArn =
        forall a. Iso' (Sensitive a) a
Data._Sensitive forall t b. AReview t b -> b -> t
Lens.# Text
pAppInstanceUserArn_
    }

-- | The maximum number of endpoints that you want to return.
listAppInstanceUserEndpoints_maxResults :: Lens.Lens' ListAppInstanceUserEndpoints (Prelude.Maybe Prelude.Natural)
listAppInstanceUserEndpoints_maxResults :: Lens' ListAppInstanceUserEndpoints (Maybe Natural)
listAppInstanceUserEndpoints_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAppInstanceUserEndpoints' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListAppInstanceUserEndpoints' :: ListAppInstanceUserEndpoints -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListAppInstanceUserEndpoints
s@ListAppInstanceUserEndpoints' {} Maybe Natural
a -> ListAppInstanceUserEndpoints
s {$sel:maxResults:ListAppInstanceUserEndpoints' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListAppInstanceUserEndpoints)

-- | The token passed by previous API calls until all requested endpoints are
-- returned.
listAppInstanceUserEndpoints_nextToken :: Lens.Lens' ListAppInstanceUserEndpoints (Prelude.Maybe Prelude.Text)
listAppInstanceUserEndpoints_nextToken :: Lens' ListAppInstanceUserEndpoints (Maybe Text)
listAppInstanceUserEndpoints_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAppInstanceUserEndpoints' {Maybe (Sensitive Text)
nextToken :: Maybe (Sensitive Text)
$sel:nextToken:ListAppInstanceUserEndpoints' :: ListAppInstanceUserEndpoints -> Maybe (Sensitive Text)
nextToken} -> Maybe (Sensitive Text)
nextToken) (\s :: ListAppInstanceUserEndpoints
s@ListAppInstanceUserEndpoints' {} Maybe (Sensitive Text)
a -> ListAppInstanceUserEndpoints
s {$sel:nextToken:ListAppInstanceUserEndpoints' :: Maybe (Sensitive Text)
nextToken = Maybe (Sensitive Text)
a} :: ListAppInstanceUserEndpoints) 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 a. Iso' (Sensitive a) a
Data._Sensitive

-- | The ARN of the @AppInstanceUser@.
listAppInstanceUserEndpoints_appInstanceUserArn :: Lens.Lens' ListAppInstanceUserEndpoints Prelude.Text
listAppInstanceUserEndpoints_appInstanceUserArn :: Lens' ListAppInstanceUserEndpoints Text
listAppInstanceUserEndpoints_appInstanceUserArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAppInstanceUserEndpoints' {Sensitive Text
appInstanceUserArn :: Sensitive Text
$sel:appInstanceUserArn:ListAppInstanceUserEndpoints' :: ListAppInstanceUserEndpoints -> Sensitive Text
appInstanceUserArn} -> Sensitive Text
appInstanceUserArn) (\s :: ListAppInstanceUserEndpoints
s@ListAppInstanceUserEndpoints' {} Sensitive Text
a -> ListAppInstanceUserEndpoints
s {$sel:appInstanceUserArn:ListAppInstanceUserEndpoints' :: Sensitive Text
appInstanceUserArn = Sensitive Text
a} :: ListAppInstanceUserEndpoints) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a. Iso' (Sensitive a) a
Data._Sensitive

instance Core.AWSRequest ListAppInstanceUserEndpoints where
  type
    AWSResponse ListAppInstanceUserEndpoints =
      ListAppInstanceUserEndpointsResponse
  request :: (Service -> Service)
-> ListAppInstanceUserEndpoints
-> Request ListAppInstanceUserEndpoints
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 ListAppInstanceUserEndpoints
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListAppInstanceUserEndpoints)))
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 [AppInstanceUserEndpointSummary]
-> Maybe (Sensitive Text)
-> Int
-> ListAppInstanceUserEndpointsResponse
ListAppInstanceUserEndpointsResponse'
            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
"AppInstanceUserEndpoints"
                            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
    ListAppInstanceUserEndpoints
  where
  hashWithSalt :: Int -> ListAppInstanceUserEndpoints -> Int
hashWithSalt Int
_salt ListAppInstanceUserEndpoints' {Maybe Natural
Maybe (Sensitive Text)
Sensitive Text
appInstanceUserArn :: Sensitive Text
nextToken :: Maybe (Sensitive Text)
maxResults :: Maybe Natural
$sel:appInstanceUserArn:ListAppInstanceUserEndpoints' :: ListAppInstanceUserEndpoints -> Sensitive Text
$sel:nextToken:ListAppInstanceUserEndpoints' :: ListAppInstanceUserEndpoints -> Maybe (Sensitive Text)
$sel:maxResults:ListAppInstanceUserEndpoints' :: ListAppInstanceUserEndpoints -> 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 (Sensitive Text)
nextToken
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Sensitive Text
appInstanceUserArn

instance Prelude.NFData ListAppInstanceUserEndpoints where
  rnf :: ListAppInstanceUserEndpoints -> ()
rnf ListAppInstanceUserEndpoints' {Maybe Natural
Maybe (Sensitive Text)
Sensitive Text
appInstanceUserArn :: Sensitive Text
nextToken :: Maybe (Sensitive Text)
maxResults :: Maybe Natural
$sel:appInstanceUserArn:ListAppInstanceUserEndpoints' :: ListAppInstanceUserEndpoints -> Sensitive Text
$sel:nextToken:ListAppInstanceUserEndpoints' :: ListAppInstanceUserEndpoints -> Maybe (Sensitive Text)
$sel:maxResults:ListAppInstanceUserEndpoints' :: ListAppInstanceUserEndpoints -> 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 (Sensitive Text)
nextToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Sensitive Text
appInstanceUserArn

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

instance Data.ToPath ListAppInstanceUserEndpoints where
  toPath :: ListAppInstanceUserEndpoints -> ByteString
toPath ListAppInstanceUserEndpoints' {Maybe Natural
Maybe (Sensitive Text)
Sensitive Text
appInstanceUserArn :: Sensitive Text
nextToken :: Maybe (Sensitive Text)
maxResults :: Maybe Natural
$sel:appInstanceUserArn:ListAppInstanceUserEndpoints' :: ListAppInstanceUserEndpoints -> Sensitive Text
$sel:nextToken:ListAppInstanceUserEndpoints' :: ListAppInstanceUserEndpoints -> Maybe (Sensitive Text)
$sel:maxResults:ListAppInstanceUserEndpoints' :: ListAppInstanceUserEndpoints -> Maybe Natural
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/app-instance-users/",
        forall a. ToByteString a => a -> ByteString
Data.toBS Sensitive Text
appInstanceUserArn,
        ByteString
"/endpoints"
      ]

instance Data.ToQuery ListAppInstanceUserEndpoints where
  toQuery :: ListAppInstanceUserEndpoints -> QueryString
toQuery ListAppInstanceUserEndpoints' {Maybe Natural
Maybe (Sensitive Text)
Sensitive Text
appInstanceUserArn :: Sensitive Text
nextToken :: Maybe (Sensitive Text)
maxResults :: Maybe Natural
$sel:appInstanceUserArn:ListAppInstanceUserEndpoints' :: ListAppInstanceUserEndpoints -> Sensitive Text
$sel:nextToken:ListAppInstanceUserEndpoints' :: ListAppInstanceUserEndpoints -> Maybe (Sensitive Text)
$sel:maxResults:ListAppInstanceUserEndpoints' :: ListAppInstanceUserEndpoints -> Maybe Natural
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"max-results" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Natural
maxResults,
        ByteString
"next-token" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe (Sensitive Text)
nextToken
      ]

-- | /See:/ 'newListAppInstanceUserEndpointsResponse' smart constructor.
data ListAppInstanceUserEndpointsResponse = ListAppInstanceUserEndpointsResponse'
  { -- | The information for each requested @AppInstanceUserEndpoint@.
    ListAppInstanceUserEndpointsResponse
-> Maybe [AppInstanceUserEndpointSummary]
appInstanceUserEndpoints :: Prelude.Maybe [AppInstanceUserEndpointSummary],
    -- | The token passed by previous API calls until all requested endpoints are
    -- returned.
    ListAppInstanceUserEndpointsResponse -> Maybe (Sensitive Text)
nextToken :: Prelude.Maybe (Data.Sensitive Prelude.Text),
    -- | The response's http status code.
    ListAppInstanceUserEndpointsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListAppInstanceUserEndpointsResponse
-> ListAppInstanceUserEndpointsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAppInstanceUserEndpointsResponse
-> ListAppInstanceUserEndpointsResponse -> Bool
$c/= :: ListAppInstanceUserEndpointsResponse
-> ListAppInstanceUserEndpointsResponse -> Bool
== :: ListAppInstanceUserEndpointsResponse
-> ListAppInstanceUserEndpointsResponse -> Bool
$c== :: ListAppInstanceUserEndpointsResponse
-> ListAppInstanceUserEndpointsResponse -> Bool
Prelude.Eq, Int -> ListAppInstanceUserEndpointsResponse -> ShowS
[ListAppInstanceUserEndpointsResponse] -> ShowS
ListAppInstanceUserEndpointsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAppInstanceUserEndpointsResponse] -> ShowS
$cshowList :: [ListAppInstanceUserEndpointsResponse] -> ShowS
show :: ListAppInstanceUserEndpointsResponse -> String
$cshow :: ListAppInstanceUserEndpointsResponse -> String
showsPrec :: Int -> ListAppInstanceUserEndpointsResponse -> ShowS
$cshowsPrec :: Int -> ListAppInstanceUserEndpointsResponse -> ShowS
Prelude.Show, forall x.
Rep ListAppInstanceUserEndpointsResponse x
-> ListAppInstanceUserEndpointsResponse
forall x.
ListAppInstanceUserEndpointsResponse
-> Rep ListAppInstanceUserEndpointsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListAppInstanceUserEndpointsResponse x
-> ListAppInstanceUserEndpointsResponse
$cfrom :: forall x.
ListAppInstanceUserEndpointsResponse
-> Rep ListAppInstanceUserEndpointsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListAppInstanceUserEndpointsResponse' 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:
--
-- 'appInstanceUserEndpoints', 'listAppInstanceUserEndpointsResponse_appInstanceUserEndpoints' - The information for each requested @AppInstanceUserEndpoint@.
--
-- 'nextToken', 'listAppInstanceUserEndpointsResponse_nextToken' - The token passed by previous API calls until all requested endpoints are
-- returned.
--
-- 'httpStatus', 'listAppInstanceUserEndpointsResponse_httpStatus' - The response's http status code.
newListAppInstanceUserEndpointsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListAppInstanceUserEndpointsResponse
newListAppInstanceUserEndpointsResponse :: Int -> ListAppInstanceUserEndpointsResponse
newListAppInstanceUserEndpointsResponse Int
pHttpStatus_ =
  ListAppInstanceUserEndpointsResponse'
    { $sel:appInstanceUserEndpoints:ListAppInstanceUserEndpointsResponse' :: Maybe [AppInstanceUserEndpointSummary]
appInstanceUserEndpoints =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListAppInstanceUserEndpointsResponse' :: Maybe (Sensitive Text)
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListAppInstanceUserEndpointsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The information for each requested @AppInstanceUserEndpoint@.
listAppInstanceUserEndpointsResponse_appInstanceUserEndpoints :: Lens.Lens' ListAppInstanceUserEndpointsResponse (Prelude.Maybe [AppInstanceUserEndpointSummary])
listAppInstanceUserEndpointsResponse_appInstanceUserEndpoints :: Lens'
  ListAppInstanceUserEndpointsResponse
  (Maybe [AppInstanceUserEndpointSummary])
listAppInstanceUserEndpointsResponse_appInstanceUserEndpoints = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAppInstanceUserEndpointsResponse' {Maybe [AppInstanceUserEndpointSummary]
appInstanceUserEndpoints :: Maybe [AppInstanceUserEndpointSummary]
$sel:appInstanceUserEndpoints:ListAppInstanceUserEndpointsResponse' :: ListAppInstanceUserEndpointsResponse
-> Maybe [AppInstanceUserEndpointSummary]
appInstanceUserEndpoints} -> Maybe [AppInstanceUserEndpointSummary]
appInstanceUserEndpoints) (\s :: ListAppInstanceUserEndpointsResponse
s@ListAppInstanceUserEndpointsResponse' {} Maybe [AppInstanceUserEndpointSummary]
a -> ListAppInstanceUserEndpointsResponse
s {$sel:appInstanceUserEndpoints:ListAppInstanceUserEndpointsResponse' :: Maybe [AppInstanceUserEndpointSummary]
appInstanceUserEndpoints = Maybe [AppInstanceUserEndpointSummary]
a} :: ListAppInstanceUserEndpointsResponse) 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 token passed by previous API calls until all requested endpoints are
-- returned.
listAppInstanceUserEndpointsResponse_nextToken :: Lens.Lens' ListAppInstanceUserEndpointsResponse (Prelude.Maybe Prelude.Text)
listAppInstanceUserEndpointsResponse_nextToken :: Lens' ListAppInstanceUserEndpointsResponse (Maybe Text)
listAppInstanceUserEndpointsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAppInstanceUserEndpointsResponse' {Maybe (Sensitive Text)
nextToken :: Maybe (Sensitive Text)
$sel:nextToken:ListAppInstanceUserEndpointsResponse' :: ListAppInstanceUserEndpointsResponse -> Maybe (Sensitive Text)
nextToken} -> Maybe (Sensitive Text)
nextToken) (\s :: ListAppInstanceUserEndpointsResponse
s@ListAppInstanceUserEndpointsResponse' {} Maybe (Sensitive Text)
a -> ListAppInstanceUserEndpointsResponse
s {$sel:nextToken:ListAppInstanceUserEndpointsResponse' :: Maybe (Sensitive Text)
nextToken = Maybe (Sensitive Text)
a} :: ListAppInstanceUserEndpointsResponse) 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 a. Iso' (Sensitive a) a
Data._Sensitive

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

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