{-# 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.CloudDirectory.ListIncomingTypedLinks
-- 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)
--
-- Returns a paginated list of all the incoming TypedLinkSpecifier
-- information for an object. It also supports filtering by typed link
-- facet and identity attributes. For more information, see
-- <https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink Typed Links>.
--
-- This operation returns paginated results.
module Amazonka.CloudDirectory.ListIncomingTypedLinks
  ( -- * Creating a Request
    ListIncomingTypedLinks (..),
    newListIncomingTypedLinks,

    -- * Request Lenses
    listIncomingTypedLinks_filterAttributeRanges,
    listIncomingTypedLinks_consistencyLevel,
    listIncomingTypedLinks_nextToken,
    listIncomingTypedLinks_filterTypedLink,
    listIncomingTypedLinks_maxResults,
    listIncomingTypedLinks_directoryArn,
    listIncomingTypedLinks_objectReference,

    -- * Destructuring the Response
    ListIncomingTypedLinksResponse (..),
    newListIncomingTypedLinksResponse,

    -- * Response Lenses
    listIncomingTypedLinksResponse_linkSpecifiers,
    listIncomingTypedLinksResponse_nextToken,
    listIncomingTypedLinksResponse_httpStatus,
  )
where

import Amazonka.CloudDirectory.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:/ 'newListIncomingTypedLinks' smart constructor.
data ListIncomingTypedLinks = ListIncomingTypedLinks'
  { -- | Provides range filters for multiple attributes. When providing ranges to
    -- typed link selection, any inexact ranges must be specified at the end.
    -- Any attributes that do not have a range specified are presumed to match
    -- the entire range.
    ListIncomingTypedLinks -> Maybe [TypedLinkAttributeRange]
filterAttributeRanges :: Prelude.Maybe [TypedLinkAttributeRange],
    -- | The consistency level to execute the request at.
    ListIncomingTypedLinks -> Maybe ConsistencyLevel
consistencyLevel :: Prelude.Maybe ConsistencyLevel,
    -- | The pagination token.
    ListIncomingTypedLinks -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | Filters are interpreted in the order of the attributes on the typed link
    -- facet, not the order in which they are supplied to any API calls.
    ListIncomingTypedLinks -> Maybe TypedLinkSchemaAndFacetName
filterTypedLink :: Prelude.Maybe TypedLinkSchemaAndFacetName,
    -- | The maximum number of results to retrieve.
    ListIncomingTypedLinks -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The Amazon Resource Name (ARN) of the directory where you want to list
    -- the typed links.
    ListIncomingTypedLinks -> Text
directoryArn :: Prelude.Text,
    -- | Reference that identifies the object whose attributes will be listed.
    ListIncomingTypedLinks -> ObjectReference
objectReference :: ObjectReference
  }
  deriving (ListIncomingTypedLinks -> ListIncomingTypedLinks -> Bool
(ListIncomingTypedLinks -> ListIncomingTypedLinks -> Bool)
-> (ListIncomingTypedLinks -> ListIncomingTypedLinks -> Bool)
-> Eq ListIncomingTypedLinks
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListIncomingTypedLinks -> ListIncomingTypedLinks -> Bool
$c/= :: ListIncomingTypedLinks -> ListIncomingTypedLinks -> Bool
== :: ListIncomingTypedLinks -> ListIncomingTypedLinks -> Bool
$c== :: ListIncomingTypedLinks -> ListIncomingTypedLinks -> Bool
Prelude.Eq, ReadPrec [ListIncomingTypedLinks]
ReadPrec ListIncomingTypedLinks
Int -> ReadS ListIncomingTypedLinks
ReadS [ListIncomingTypedLinks]
(Int -> ReadS ListIncomingTypedLinks)
-> ReadS [ListIncomingTypedLinks]
-> ReadPrec ListIncomingTypedLinks
-> ReadPrec [ListIncomingTypedLinks]
-> Read ListIncomingTypedLinks
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListIncomingTypedLinks]
$creadListPrec :: ReadPrec [ListIncomingTypedLinks]
readPrec :: ReadPrec ListIncomingTypedLinks
$creadPrec :: ReadPrec ListIncomingTypedLinks
readList :: ReadS [ListIncomingTypedLinks]
$creadList :: ReadS [ListIncomingTypedLinks]
readsPrec :: Int -> ReadS ListIncomingTypedLinks
$creadsPrec :: Int -> ReadS ListIncomingTypedLinks
Prelude.Read, Int -> ListIncomingTypedLinks -> ShowS
[ListIncomingTypedLinks] -> ShowS
ListIncomingTypedLinks -> String
(Int -> ListIncomingTypedLinks -> ShowS)
-> (ListIncomingTypedLinks -> String)
-> ([ListIncomingTypedLinks] -> ShowS)
-> Show ListIncomingTypedLinks
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListIncomingTypedLinks] -> ShowS
$cshowList :: [ListIncomingTypedLinks] -> ShowS
show :: ListIncomingTypedLinks -> String
$cshow :: ListIncomingTypedLinks -> String
showsPrec :: Int -> ListIncomingTypedLinks -> ShowS
$cshowsPrec :: Int -> ListIncomingTypedLinks -> ShowS
Prelude.Show, (forall x. ListIncomingTypedLinks -> Rep ListIncomingTypedLinks x)
-> (forall x.
    Rep ListIncomingTypedLinks x -> ListIncomingTypedLinks)
-> Generic ListIncomingTypedLinks
forall x. Rep ListIncomingTypedLinks x -> ListIncomingTypedLinks
forall x. ListIncomingTypedLinks -> Rep ListIncomingTypedLinks x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListIncomingTypedLinks x -> ListIncomingTypedLinks
$cfrom :: forall x. ListIncomingTypedLinks -> Rep ListIncomingTypedLinks x
Prelude.Generic)

-- |
-- Create a value of 'ListIncomingTypedLinks' 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:
--
-- 'filterAttributeRanges', 'listIncomingTypedLinks_filterAttributeRanges' - Provides range filters for multiple attributes. When providing ranges to
-- typed link selection, any inexact ranges must be specified at the end.
-- Any attributes that do not have a range specified are presumed to match
-- the entire range.
--
-- 'consistencyLevel', 'listIncomingTypedLinks_consistencyLevel' - The consistency level to execute the request at.
--
-- 'nextToken', 'listIncomingTypedLinks_nextToken' - The pagination token.
--
-- 'filterTypedLink', 'listIncomingTypedLinks_filterTypedLink' - Filters are interpreted in the order of the attributes on the typed link
-- facet, not the order in which they are supplied to any API calls.
--
-- 'maxResults', 'listIncomingTypedLinks_maxResults' - The maximum number of results to retrieve.
--
-- 'directoryArn', 'listIncomingTypedLinks_directoryArn' - The Amazon Resource Name (ARN) of the directory where you want to list
-- the typed links.
--
-- 'objectReference', 'listIncomingTypedLinks_objectReference' - Reference that identifies the object whose attributes will be listed.
newListIncomingTypedLinks ::
  -- | 'directoryArn'
  Prelude.Text ->
  -- | 'objectReference'
  ObjectReference ->
  ListIncomingTypedLinks
newListIncomingTypedLinks :: Text -> ObjectReference -> ListIncomingTypedLinks
newListIncomingTypedLinks
  Text
pDirectoryArn_
  ObjectReference
pObjectReference_ =
    ListIncomingTypedLinks' :: Maybe [TypedLinkAttributeRange]
-> Maybe ConsistencyLevel
-> Maybe Text
-> Maybe TypedLinkSchemaAndFacetName
-> Maybe Natural
-> Text
-> ObjectReference
-> ListIncomingTypedLinks
ListIncomingTypedLinks'
      { $sel:filterAttributeRanges:ListIncomingTypedLinks' :: Maybe [TypedLinkAttributeRange]
filterAttributeRanges =
          Maybe [TypedLinkAttributeRange]
forall a. Maybe a
Prelude.Nothing,
        $sel:consistencyLevel:ListIncomingTypedLinks' :: Maybe ConsistencyLevel
consistencyLevel = Maybe ConsistencyLevel
forall a. Maybe a
Prelude.Nothing,
        $sel:nextToken:ListIncomingTypedLinks' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:filterTypedLink:ListIncomingTypedLinks' :: Maybe TypedLinkSchemaAndFacetName
filterTypedLink = Maybe TypedLinkSchemaAndFacetName
forall a. Maybe a
Prelude.Nothing,
        $sel:maxResults:ListIncomingTypedLinks' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
        $sel:directoryArn:ListIncomingTypedLinks' :: Text
directoryArn = Text
pDirectoryArn_,
        $sel:objectReference:ListIncomingTypedLinks' :: ObjectReference
objectReference = ObjectReference
pObjectReference_
      }

-- | Provides range filters for multiple attributes. When providing ranges to
-- typed link selection, any inexact ranges must be specified at the end.
-- Any attributes that do not have a range specified are presumed to match
-- the entire range.
listIncomingTypedLinks_filterAttributeRanges :: Lens.Lens' ListIncomingTypedLinks (Prelude.Maybe [TypedLinkAttributeRange])
listIncomingTypedLinks_filterAttributeRanges :: (Maybe [TypedLinkAttributeRange]
 -> f (Maybe [TypedLinkAttributeRange]))
-> ListIncomingTypedLinks -> f ListIncomingTypedLinks
listIncomingTypedLinks_filterAttributeRanges = (ListIncomingTypedLinks -> Maybe [TypedLinkAttributeRange])
-> (ListIncomingTypedLinks
    -> Maybe [TypedLinkAttributeRange] -> ListIncomingTypedLinks)
-> Lens
     ListIncomingTypedLinks
     ListIncomingTypedLinks
     (Maybe [TypedLinkAttributeRange])
     (Maybe [TypedLinkAttributeRange])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIncomingTypedLinks' {Maybe [TypedLinkAttributeRange]
filterAttributeRanges :: Maybe [TypedLinkAttributeRange]
$sel:filterAttributeRanges:ListIncomingTypedLinks' :: ListIncomingTypedLinks -> Maybe [TypedLinkAttributeRange]
filterAttributeRanges} -> Maybe [TypedLinkAttributeRange]
filterAttributeRanges) (\s :: ListIncomingTypedLinks
s@ListIncomingTypedLinks' {} Maybe [TypedLinkAttributeRange]
a -> ListIncomingTypedLinks
s {$sel:filterAttributeRanges:ListIncomingTypedLinks' :: Maybe [TypedLinkAttributeRange]
filterAttributeRanges = Maybe [TypedLinkAttributeRange]
a} :: ListIncomingTypedLinks) ((Maybe [TypedLinkAttributeRange]
  -> f (Maybe [TypedLinkAttributeRange]))
 -> ListIncomingTypedLinks -> f ListIncomingTypedLinks)
-> ((Maybe [TypedLinkAttributeRange]
     -> f (Maybe [TypedLinkAttributeRange]))
    -> Maybe [TypedLinkAttributeRange]
    -> f (Maybe [TypedLinkAttributeRange]))
-> (Maybe [TypedLinkAttributeRange]
    -> f (Maybe [TypedLinkAttributeRange]))
-> ListIncomingTypedLinks
-> f ListIncomingTypedLinks
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [TypedLinkAttributeRange]
  [TypedLinkAttributeRange]
  [TypedLinkAttributeRange]
  [TypedLinkAttributeRange]
-> Iso
     (Maybe [TypedLinkAttributeRange])
     (Maybe [TypedLinkAttributeRange])
     (Maybe [TypedLinkAttributeRange])
     (Maybe [TypedLinkAttributeRange])
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
  [TypedLinkAttributeRange]
  [TypedLinkAttributeRange]
  [TypedLinkAttributeRange]
  [TypedLinkAttributeRange]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The consistency level to execute the request at.
listIncomingTypedLinks_consistencyLevel :: Lens.Lens' ListIncomingTypedLinks (Prelude.Maybe ConsistencyLevel)
listIncomingTypedLinks_consistencyLevel :: (Maybe ConsistencyLevel -> f (Maybe ConsistencyLevel))
-> ListIncomingTypedLinks -> f ListIncomingTypedLinks
listIncomingTypedLinks_consistencyLevel = (ListIncomingTypedLinks -> Maybe ConsistencyLevel)
-> (ListIncomingTypedLinks
    -> Maybe ConsistencyLevel -> ListIncomingTypedLinks)
-> Lens
     ListIncomingTypedLinks
     ListIncomingTypedLinks
     (Maybe ConsistencyLevel)
     (Maybe ConsistencyLevel)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIncomingTypedLinks' {Maybe ConsistencyLevel
consistencyLevel :: Maybe ConsistencyLevel
$sel:consistencyLevel:ListIncomingTypedLinks' :: ListIncomingTypedLinks -> Maybe ConsistencyLevel
consistencyLevel} -> Maybe ConsistencyLevel
consistencyLevel) (\s :: ListIncomingTypedLinks
s@ListIncomingTypedLinks' {} Maybe ConsistencyLevel
a -> ListIncomingTypedLinks
s {$sel:consistencyLevel:ListIncomingTypedLinks' :: Maybe ConsistencyLevel
consistencyLevel = Maybe ConsistencyLevel
a} :: ListIncomingTypedLinks)

-- | The pagination token.
listIncomingTypedLinks_nextToken :: Lens.Lens' ListIncomingTypedLinks (Prelude.Maybe Prelude.Text)
listIncomingTypedLinks_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListIncomingTypedLinks -> f ListIncomingTypedLinks
listIncomingTypedLinks_nextToken = (ListIncomingTypedLinks -> Maybe Text)
-> (ListIncomingTypedLinks -> Maybe Text -> ListIncomingTypedLinks)
-> Lens
     ListIncomingTypedLinks
     ListIncomingTypedLinks
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIncomingTypedLinks' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListIncomingTypedLinks' :: ListIncomingTypedLinks -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListIncomingTypedLinks
s@ListIncomingTypedLinks' {} Maybe Text
a -> ListIncomingTypedLinks
s {$sel:nextToken:ListIncomingTypedLinks' :: Maybe Text
nextToken = Maybe Text
a} :: ListIncomingTypedLinks)

-- | Filters are interpreted in the order of the attributes on the typed link
-- facet, not the order in which they are supplied to any API calls.
listIncomingTypedLinks_filterTypedLink :: Lens.Lens' ListIncomingTypedLinks (Prelude.Maybe TypedLinkSchemaAndFacetName)
listIncomingTypedLinks_filterTypedLink :: (Maybe TypedLinkSchemaAndFacetName
 -> f (Maybe TypedLinkSchemaAndFacetName))
-> ListIncomingTypedLinks -> f ListIncomingTypedLinks
listIncomingTypedLinks_filterTypedLink = (ListIncomingTypedLinks -> Maybe TypedLinkSchemaAndFacetName)
-> (ListIncomingTypedLinks
    -> Maybe TypedLinkSchemaAndFacetName -> ListIncomingTypedLinks)
-> Lens
     ListIncomingTypedLinks
     ListIncomingTypedLinks
     (Maybe TypedLinkSchemaAndFacetName)
     (Maybe TypedLinkSchemaAndFacetName)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIncomingTypedLinks' {Maybe TypedLinkSchemaAndFacetName
filterTypedLink :: Maybe TypedLinkSchemaAndFacetName
$sel:filterTypedLink:ListIncomingTypedLinks' :: ListIncomingTypedLinks -> Maybe TypedLinkSchemaAndFacetName
filterTypedLink} -> Maybe TypedLinkSchemaAndFacetName
filterTypedLink) (\s :: ListIncomingTypedLinks
s@ListIncomingTypedLinks' {} Maybe TypedLinkSchemaAndFacetName
a -> ListIncomingTypedLinks
s {$sel:filterTypedLink:ListIncomingTypedLinks' :: Maybe TypedLinkSchemaAndFacetName
filterTypedLink = Maybe TypedLinkSchemaAndFacetName
a} :: ListIncomingTypedLinks)

-- | The maximum number of results to retrieve.
listIncomingTypedLinks_maxResults :: Lens.Lens' ListIncomingTypedLinks (Prelude.Maybe Prelude.Natural)
listIncomingTypedLinks_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListIncomingTypedLinks -> f ListIncomingTypedLinks
listIncomingTypedLinks_maxResults = (ListIncomingTypedLinks -> Maybe Natural)
-> (ListIncomingTypedLinks
    -> Maybe Natural -> ListIncomingTypedLinks)
-> Lens
     ListIncomingTypedLinks
     ListIncomingTypedLinks
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIncomingTypedLinks' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListIncomingTypedLinks' :: ListIncomingTypedLinks -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListIncomingTypedLinks
s@ListIncomingTypedLinks' {} Maybe Natural
a -> ListIncomingTypedLinks
s {$sel:maxResults:ListIncomingTypedLinks' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListIncomingTypedLinks)

-- | The Amazon Resource Name (ARN) of the directory where you want to list
-- the typed links.
listIncomingTypedLinks_directoryArn :: Lens.Lens' ListIncomingTypedLinks Prelude.Text
listIncomingTypedLinks_directoryArn :: (Text -> f Text)
-> ListIncomingTypedLinks -> f ListIncomingTypedLinks
listIncomingTypedLinks_directoryArn = (ListIncomingTypedLinks -> Text)
-> (ListIncomingTypedLinks -> Text -> ListIncomingTypedLinks)
-> Lens ListIncomingTypedLinks ListIncomingTypedLinks Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIncomingTypedLinks' {Text
directoryArn :: Text
$sel:directoryArn:ListIncomingTypedLinks' :: ListIncomingTypedLinks -> Text
directoryArn} -> Text
directoryArn) (\s :: ListIncomingTypedLinks
s@ListIncomingTypedLinks' {} Text
a -> ListIncomingTypedLinks
s {$sel:directoryArn:ListIncomingTypedLinks' :: Text
directoryArn = Text
a} :: ListIncomingTypedLinks)

-- | Reference that identifies the object whose attributes will be listed.
listIncomingTypedLinks_objectReference :: Lens.Lens' ListIncomingTypedLinks ObjectReference
listIncomingTypedLinks_objectReference :: (ObjectReference -> f ObjectReference)
-> ListIncomingTypedLinks -> f ListIncomingTypedLinks
listIncomingTypedLinks_objectReference = (ListIncomingTypedLinks -> ObjectReference)
-> (ListIncomingTypedLinks
    -> ObjectReference -> ListIncomingTypedLinks)
-> Lens
     ListIncomingTypedLinks
     ListIncomingTypedLinks
     ObjectReference
     ObjectReference
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIncomingTypedLinks' {ObjectReference
objectReference :: ObjectReference
$sel:objectReference:ListIncomingTypedLinks' :: ListIncomingTypedLinks -> ObjectReference
objectReference} -> ObjectReference
objectReference) (\s :: ListIncomingTypedLinks
s@ListIncomingTypedLinks' {} ObjectReference
a -> ListIncomingTypedLinks
s {$sel:objectReference:ListIncomingTypedLinks' :: ObjectReference
objectReference = ObjectReference
a} :: ListIncomingTypedLinks)

instance Core.AWSPager ListIncomingTypedLinks where
  page :: ListIncomingTypedLinks
-> AWSResponse ListIncomingTypedLinks
-> Maybe ListIncomingTypedLinks
page ListIncomingTypedLinks
rq AWSResponse ListIncomingTypedLinks
rs
    | Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListIncomingTypedLinks
ListIncomingTypedLinksResponse
rs
            ListIncomingTypedLinksResponse
-> Getting (First Text) ListIncomingTypedLinksResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListIncomingTypedLinksResponse
-> Const (First Text) ListIncomingTypedLinksResponse
Lens' ListIncomingTypedLinksResponse (Maybe Text)
listIncomingTypedLinksResponse_nextToken
              ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListIncomingTypedLinksResponse
 -> Const (First Text) ListIncomingTypedLinksResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListIncomingTypedLinksResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe ListIncomingTypedLinks
forall a. Maybe a
Prelude.Nothing
    | Maybe [TypedLinkSpecifier] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListIncomingTypedLinks
ListIncomingTypedLinksResponse
rs
            ListIncomingTypedLinksResponse
-> Getting
     (First [TypedLinkSpecifier])
     ListIncomingTypedLinksResponse
     [TypedLinkSpecifier]
-> Maybe [TypedLinkSpecifier]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [TypedLinkSpecifier]
 -> Const (First [TypedLinkSpecifier]) (Maybe [TypedLinkSpecifier]))
-> ListIncomingTypedLinksResponse
-> Const
     (First [TypedLinkSpecifier]) ListIncomingTypedLinksResponse
Lens' ListIncomingTypedLinksResponse (Maybe [TypedLinkSpecifier])
listIncomingTypedLinksResponse_linkSpecifiers
              ((Maybe [TypedLinkSpecifier]
  -> Const (First [TypedLinkSpecifier]) (Maybe [TypedLinkSpecifier]))
 -> ListIncomingTypedLinksResponse
 -> Const
      (First [TypedLinkSpecifier]) ListIncomingTypedLinksResponse)
-> (([TypedLinkSpecifier]
     -> Const (First [TypedLinkSpecifier]) [TypedLinkSpecifier])
    -> Maybe [TypedLinkSpecifier]
    -> Const (First [TypedLinkSpecifier]) (Maybe [TypedLinkSpecifier]))
-> Getting
     (First [TypedLinkSpecifier])
     ListIncomingTypedLinksResponse
     [TypedLinkSpecifier]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([TypedLinkSpecifier]
 -> Const (First [TypedLinkSpecifier]) [TypedLinkSpecifier])
-> Maybe [TypedLinkSpecifier]
-> Const (First [TypedLinkSpecifier]) (Maybe [TypedLinkSpecifier])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe ListIncomingTypedLinks
forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
      ListIncomingTypedLinks -> Maybe ListIncomingTypedLinks
forall a. a -> Maybe a
Prelude.Just (ListIncomingTypedLinks -> Maybe ListIncomingTypedLinks)
-> ListIncomingTypedLinks -> Maybe ListIncomingTypedLinks
forall a b. (a -> b) -> a -> b
Prelude.$
        ListIncomingTypedLinks
rq
          ListIncomingTypedLinks
-> (ListIncomingTypedLinks -> ListIncomingTypedLinks)
-> ListIncomingTypedLinks
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListIncomingTypedLinks -> Identity ListIncomingTypedLinks
Lens
  ListIncomingTypedLinks
  ListIncomingTypedLinks
  (Maybe Text)
  (Maybe Text)
listIncomingTypedLinks_nextToken
          ((Maybe Text -> Identity (Maybe Text))
 -> ListIncomingTypedLinks -> Identity ListIncomingTypedLinks)
-> Maybe Text -> ListIncomingTypedLinks -> ListIncomingTypedLinks
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListIncomingTypedLinks
ListIncomingTypedLinksResponse
rs
          ListIncomingTypedLinksResponse
-> Getting (First Text) ListIncomingTypedLinksResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListIncomingTypedLinksResponse
-> Const (First Text) ListIncomingTypedLinksResponse
Lens' ListIncomingTypedLinksResponse (Maybe Text)
listIncomingTypedLinksResponse_nextToken
            ((Maybe Text -> Const (First Text) (Maybe Text))
 -> ListIncomingTypedLinksResponse
 -> Const (First Text) ListIncomingTypedLinksResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListIncomingTypedLinksResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

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

instance Prelude.NFData ListIncomingTypedLinks

instance Core.ToHeaders ListIncomingTypedLinks where
  toHeaders :: ListIncomingTypedLinks -> ResponseHeaders
toHeaders ListIncomingTypedLinks' {Maybe Natural
Maybe [TypedLinkAttributeRange]
Maybe Text
Maybe ConsistencyLevel
Maybe TypedLinkSchemaAndFacetName
Text
ObjectReference
objectReference :: ObjectReference
directoryArn :: Text
maxResults :: Maybe Natural
filterTypedLink :: Maybe TypedLinkSchemaAndFacetName
nextToken :: Maybe Text
consistencyLevel :: Maybe ConsistencyLevel
filterAttributeRanges :: Maybe [TypedLinkAttributeRange]
$sel:objectReference:ListIncomingTypedLinks' :: ListIncomingTypedLinks -> ObjectReference
$sel:directoryArn:ListIncomingTypedLinks' :: ListIncomingTypedLinks -> Text
$sel:maxResults:ListIncomingTypedLinks' :: ListIncomingTypedLinks -> Maybe Natural
$sel:filterTypedLink:ListIncomingTypedLinks' :: ListIncomingTypedLinks -> Maybe TypedLinkSchemaAndFacetName
$sel:nextToken:ListIncomingTypedLinks' :: ListIncomingTypedLinks -> Maybe Text
$sel:consistencyLevel:ListIncomingTypedLinks' :: ListIncomingTypedLinks -> Maybe ConsistencyLevel
$sel:filterAttributeRanges:ListIncomingTypedLinks' :: ListIncomingTypedLinks -> Maybe [TypedLinkAttributeRange]
..} =
    [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [HeaderName
"x-amz-data-partition" HeaderName -> Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Text
directoryArn]

instance Core.ToJSON ListIncomingTypedLinks where
  toJSON :: ListIncomingTypedLinks -> Value
toJSON ListIncomingTypedLinks' {Maybe Natural
Maybe [TypedLinkAttributeRange]
Maybe Text
Maybe ConsistencyLevel
Maybe TypedLinkSchemaAndFacetName
Text
ObjectReference
objectReference :: ObjectReference
directoryArn :: Text
maxResults :: Maybe Natural
filterTypedLink :: Maybe TypedLinkSchemaAndFacetName
nextToken :: Maybe Text
consistencyLevel :: Maybe ConsistencyLevel
filterAttributeRanges :: Maybe [TypedLinkAttributeRange]
$sel:objectReference:ListIncomingTypedLinks' :: ListIncomingTypedLinks -> ObjectReference
$sel:directoryArn:ListIncomingTypedLinks' :: ListIncomingTypedLinks -> Text
$sel:maxResults:ListIncomingTypedLinks' :: ListIncomingTypedLinks -> Maybe Natural
$sel:filterTypedLink:ListIncomingTypedLinks' :: ListIncomingTypedLinks -> Maybe TypedLinkSchemaAndFacetName
$sel:nextToken:ListIncomingTypedLinks' :: ListIncomingTypedLinks -> Maybe Text
$sel:consistencyLevel:ListIncomingTypedLinks' :: ListIncomingTypedLinks -> Maybe ConsistencyLevel
$sel:filterAttributeRanges:ListIncomingTypedLinks' :: ListIncomingTypedLinks -> Maybe [TypedLinkAttributeRange]
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"FilterAttributeRanges" Text -> [TypedLinkAttributeRange] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              ([TypedLinkAttributeRange] -> Pair)
-> Maybe [TypedLinkAttributeRange] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [TypedLinkAttributeRange]
filterAttributeRanges,
            (Text
"ConsistencyLevel" Text -> ConsistencyLevel -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (ConsistencyLevel -> Pair) -> Maybe ConsistencyLevel -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ConsistencyLevel
consistencyLevel,
            (Text
"NextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
            (Text
"FilterTypedLink" Text -> TypedLinkSchemaAndFacetName -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (TypedLinkSchemaAndFacetName -> Pair)
-> Maybe TypedLinkSchemaAndFacetName -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TypedLinkSchemaAndFacetName
filterTypedLink,
            (Text
"MaxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"ObjectReference" Text -> ObjectReference -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= ObjectReference
objectReference)
          ]
      )

instance Core.ToPath ListIncomingTypedLinks where
  toPath :: ListIncomingTypedLinks -> ByteString
toPath =
    ByteString -> ListIncomingTypedLinks -> ByteString
forall a b. a -> b -> a
Prelude.const
      ByteString
"/amazonclouddirectory/2017-01-11/typedlink/incoming"

instance Core.ToQuery ListIncomingTypedLinks where
  toQuery :: ListIncomingTypedLinks -> QueryString
toQuery = QueryString -> ListIncomingTypedLinks -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newListIncomingTypedLinksResponse' smart constructor.
data ListIncomingTypedLinksResponse = ListIncomingTypedLinksResponse'
  { -- | Returns one or more typed link specifiers as output.
    ListIncomingTypedLinksResponse -> Maybe [TypedLinkSpecifier]
linkSpecifiers :: Prelude.Maybe [TypedLinkSpecifier],
    -- | The pagination token.
    ListIncomingTypedLinksResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListIncomingTypedLinksResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListIncomingTypedLinksResponse
-> ListIncomingTypedLinksResponse -> Bool
(ListIncomingTypedLinksResponse
 -> ListIncomingTypedLinksResponse -> Bool)
-> (ListIncomingTypedLinksResponse
    -> ListIncomingTypedLinksResponse -> Bool)
-> Eq ListIncomingTypedLinksResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListIncomingTypedLinksResponse
-> ListIncomingTypedLinksResponse -> Bool
$c/= :: ListIncomingTypedLinksResponse
-> ListIncomingTypedLinksResponse -> Bool
== :: ListIncomingTypedLinksResponse
-> ListIncomingTypedLinksResponse -> Bool
$c== :: ListIncomingTypedLinksResponse
-> ListIncomingTypedLinksResponse -> Bool
Prelude.Eq, ReadPrec [ListIncomingTypedLinksResponse]
ReadPrec ListIncomingTypedLinksResponse
Int -> ReadS ListIncomingTypedLinksResponse
ReadS [ListIncomingTypedLinksResponse]
(Int -> ReadS ListIncomingTypedLinksResponse)
-> ReadS [ListIncomingTypedLinksResponse]
-> ReadPrec ListIncomingTypedLinksResponse
-> ReadPrec [ListIncomingTypedLinksResponse]
-> Read ListIncomingTypedLinksResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListIncomingTypedLinksResponse]
$creadListPrec :: ReadPrec [ListIncomingTypedLinksResponse]
readPrec :: ReadPrec ListIncomingTypedLinksResponse
$creadPrec :: ReadPrec ListIncomingTypedLinksResponse
readList :: ReadS [ListIncomingTypedLinksResponse]
$creadList :: ReadS [ListIncomingTypedLinksResponse]
readsPrec :: Int -> ReadS ListIncomingTypedLinksResponse
$creadsPrec :: Int -> ReadS ListIncomingTypedLinksResponse
Prelude.Read, Int -> ListIncomingTypedLinksResponse -> ShowS
[ListIncomingTypedLinksResponse] -> ShowS
ListIncomingTypedLinksResponse -> String
(Int -> ListIncomingTypedLinksResponse -> ShowS)
-> (ListIncomingTypedLinksResponse -> String)
-> ([ListIncomingTypedLinksResponse] -> ShowS)
-> Show ListIncomingTypedLinksResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListIncomingTypedLinksResponse] -> ShowS
$cshowList :: [ListIncomingTypedLinksResponse] -> ShowS
show :: ListIncomingTypedLinksResponse -> String
$cshow :: ListIncomingTypedLinksResponse -> String
showsPrec :: Int -> ListIncomingTypedLinksResponse -> ShowS
$cshowsPrec :: Int -> ListIncomingTypedLinksResponse -> ShowS
Prelude.Show, (forall x.
 ListIncomingTypedLinksResponse
 -> Rep ListIncomingTypedLinksResponse x)
-> (forall x.
    Rep ListIncomingTypedLinksResponse x
    -> ListIncomingTypedLinksResponse)
-> Generic ListIncomingTypedLinksResponse
forall x.
Rep ListIncomingTypedLinksResponse x
-> ListIncomingTypedLinksResponse
forall x.
ListIncomingTypedLinksResponse
-> Rep ListIncomingTypedLinksResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListIncomingTypedLinksResponse x
-> ListIncomingTypedLinksResponse
$cfrom :: forall x.
ListIncomingTypedLinksResponse
-> Rep ListIncomingTypedLinksResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListIncomingTypedLinksResponse' 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:
--
-- 'linkSpecifiers', 'listIncomingTypedLinksResponse_linkSpecifiers' - Returns one or more typed link specifiers as output.
--
-- 'nextToken', 'listIncomingTypedLinksResponse_nextToken' - The pagination token.
--
-- 'httpStatus', 'listIncomingTypedLinksResponse_httpStatus' - The response's http status code.
newListIncomingTypedLinksResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListIncomingTypedLinksResponse
newListIncomingTypedLinksResponse :: Int -> ListIncomingTypedLinksResponse
newListIncomingTypedLinksResponse Int
pHttpStatus_ =
  ListIncomingTypedLinksResponse' :: Maybe [TypedLinkSpecifier]
-> Maybe Text -> Int -> ListIncomingTypedLinksResponse
ListIncomingTypedLinksResponse'
    { $sel:linkSpecifiers:ListIncomingTypedLinksResponse' :: Maybe [TypedLinkSpecifier]
linkSpecifiers =
        Maybe [TypedLinkSpecifier]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListIncomingTypedLinksResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListIncomingTypedLinksResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Returns one or more typed link specifiers as output.
listIncomingTypedLinksResponse_linkSpecifiers :: Lens.Lens' ListIncomingTypedLinksResponse (Prelude.Maybe [TypedLinkSpecifier])
listIncomingTypedLinksResponse_linkSpecifiers :: (Maybe [TypedLinkSpecifier] -> f (Maybe [TypedLinkSpecifier]))
-> ListIncomingTypedLinksResponse
-> f ListIncomingTypedLinksResponse
listIncomingTypedLinksResponse_linkSpecifiers = (ListIncomingTypedLinksResponse -> Maybe [TypedLinkSpecifier])
-> (ListIncomingTypedLinksResponse
    -> Maybe [TypedLinkSpecifier] -> ListIncomingTypedLinksResponse)
-> Lens'
     ListIncomingTypedLinksResponse (Maybe [TypedLinkSpecifier])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIncomingTypedLinksResponse' {Maybe [TypedLinkSpecifier]
linkSpecifiers :: Maybe [TypedLinkSpecifier]
$sel:linkSpecifiers:ListIncomingTypedLinksResponse' :: ListIncomingTypedLinksResponse -> Maybe [TypedLinkSpecifier]
linkSpecifiers} -> Maybe [TypedLinkSpecifier]
linkSpecifiers) (\s :: ListIncomingTypedLinksResponse
s@ListIncomingTypedLinksResponse' {} Maybe [TypedLinkSpecifier]
a -> ListIncomingTypedLinksResponse
s {$sel:linkSpecifiers:ListIncomingTypedLinksResponse' :: Maybe [TypedLinkSpecifier]
linkSpecifiers = Maybe [TypedLinkSpecifier]
a} :: ListIncomingTypedLinksResponse) ((Maybe [TypedLinkSpecifier] -> f (Maybe [TypedLinkSpecifier]))
 -> ListIncomingTypedLinksResponse
 -> f ListIncomingTypedLinksResponse)
-> ((Maybe [TypedLinkSpecifier] -> f (Maybe [TypedLinkSpecifier]))
    -> Maybe [TypedLinkSpecifier] -> f (Maybe [TypedLinkSpecifier]))
-> (Maybe [TypedLinkSpecifier] -> f (Maybe [TypedLinkSpecifier]))
-> ListIncomingTypedLinksResponse
-> f ListIncomingTypedLinksResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [TypedLinkSpecifier]
  [TypedLinkSpecifier]
  [TypedLinkSpecifier]
  [TypedLinkSpecifier]
-> Iso
     (Maybe [TypedLinkSpecifier])
     (Maybe [TypedLinkSpecifier])
     (Maybe [TypedLinkSpecifier])
     (Maybe [TypedLinkSpecifier])
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
  [TypedLinkSpecifier]
  [TypedLinkSpecifier]
  [TypedLinkSpecifier]
  [TypedLinkSpecifier]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The pagination token.
listIncomingTypedLinksResponse_nextToken :: Lens.Lens' ListIncomingTypedLinksResponse (Prelude.Maybe Prelude.Text)
listIncomingTypedLinksResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListIncomingTypedLinksResponse
-> f ListIncomingTypedLinksResponse
listIncomingTypedLinksResponse_nextToken = (ListIncomingTypedLinksResponse -> Maybe Text)
-> (ListIncomingTypedLinksResponse
    -> Maybe Text -> ListIncomingTypedLinksResponse)
-> Lens' ListIncomingTypedLinksResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListIncomingTypedLinksResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListIncomingTypedLinksResponse' :: ListIncomingTypedLinksResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListIncomingTypedLinksResponse
s@ListIncomingTypedLinksResponse' {} Maybe Text
a -> ListIncomingTypedLinksResponse
s {$sel:nextToken:ListIncomingTypedLinksResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListIncomingTypedLinksResponse)

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

instance
  Prelude.NFData
    ListIncomingTypedLinksResponse