{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DuplicateRecordFields #-} {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE NoImplicitPrelude #-} {-# 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.Types.BatchListOutgoingTypedLinksResponse -- Copyright : (c) 2013-2023 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) module Amazonka.CloudDirectory.Types.BatchListOutgoingTypedLinksResponse where import Amazonka.CloudDirectory.Types.TypedLinkSpecifier 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 -- | Represents the output of a ListOutgoingTypedLinks response operation. -- -- /See:/ 'newBatchListOutgoingTypedLinksResponse' smart constructor. data BatchListOutgoingTypedLinksResponse = BatchListOutgoingTypedLinksResponse' { -- | The pagination token. nextToken :: Prelude.Maybe Prelude.Text, -- | Returns a typed link specifier as output. typedLinkSpecifiers :: Prelude.Maybe [TypedLinkSpecifier] } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'BatchListOutgoingTypedLinksResponse' with all optional fields omitted. -- -- Use or to modify other optional fields. -- -- The following record fields are available, with the corresponding lenses provided -- for backwards compatibility: -- -- 'nextToken', 'batchListOutgoingTypedLinksResponse_nextToken' - The pagination token. -- -- 'typedLinkSpecifiers', 'batchListOutgoingTypedLinksResponse_typedLinkSpecifiers' - Returns a typed link specifier as output. newBatchListOutgoingTypedLinksResponse :: BatchListOutgoingTypedLinksResponse newBatchListOutgoingTypedLinksResponse = BatchListOutgoingTypedLinksResponse' { nextToken = Prelude.Nothing, typedLinkSpecifiers = Prelude.Nothing } -- | The pagination token. batchListOutgoingTypedLinksResponse_nextToken :: Lens.Lens' BatchListOutgoingTypedLinksResponse (Prelude.Maybe Prelude.Text) batchListOutgoingTypedLinksResponse_nextToken = Lens.lens (\BatchListOutgoingTypedLinksResponse' {nextToken} -> nextToken) (\s@BatchListOutgoingTypedLinksResponse' {} a -> s {nextToken = a} :: BatchListOutgoingTypedLinksResponse) -- | Returns a typed link specifier as output. batchListOutgoingTypedLinksResponse_typedLinkSpecifiers :: Lens.Lens' BatchListOutgoingTypedLinksResponse (Prelude.Maybe [TypedLinkSpecifier]) batchListOutgoingTypedLinksResponse_typedLinkSpecifiers = Lens.lens (\BatchListOutgoingTypedLinksResponse' {typedLinkSpecifiers} -> typedLinkSpecifiers) (\s@BatchListOutgoingTypedLinksResponse' {} a -> s {typedLinkSpecifiers = a} :: BatchListOutgoingTypedLinksResponse) Prelude.. Lens.mapping Lens.coerced instance Data.FromJSON BatchListOutgoingTypedLinksResponse where parseJSON = Data.withObject "BatchListOutgoingTypedLinksResponse" ( \x -> BatchListOutgoingTypedLinksResponse' Prelude.<$> (x Data..:? "NextToken") Prelude.<*> ( x Data..:? "TypedLinkSpecifiers" Data..!= Prelude.mempty ) ) instance Prelude.Hashable BatchListOutgoingTypedLinksResponse where hashWithSalt _salt BatchListOutgoingTypedLinksResponse' {..} = _salt `Prelude.hashWithSalt` nextToken `Prelude.hashWithSalt` typedLinkSpecifiers instance Prelude.NFData BatchListOutgoingTypedLinksResponse where rnf BatchListOutgoingTypedLinksResponse' {..} = Prelude.rnf nextToken `Prelude.seq` Prelude.rnf typedLinkSpecifiers