{-# 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.BatchListObjectChildrenResponse -- 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.BatchListObjectChildrenResponse 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 -- | Represents the output of a ListObjectChildren response operation. -- -- /See:/ 'newBatchListObjectChildrenResponse' smart constructor. data BatchListObjectChildrenResponse = BatchListObjectChildrenResponse' { -- | The children structure, which is a map with the key as the @LinkName@ -- and @ObjectIdentifier@ as the value. children :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text), -- | The pagination token. nextToken :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'BatchListObjectChildrenResponse' 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: -- -- 'children', 'batchListObjectChildrenResponse_children' - The children structure, which is a map with the key as the @LinkName@ -- and @ObjectIdentifier@ as the value. -- -- 'nextToken', 'batchListObjectChildrenResponse_nextToken' - The pagination token. newBatchListObjectChildrenResponse :: BatchListObjectChildrenResponse newBatchListObjectChildrenResponse = BatchListObjectChildrenResponse' { children = Prelude.Nothing, nextToken = Prelude.Nothing } -- | The children structure, which is a map with the key as the @LinkName@ -- and @ObjectIdentifier@ as the value. batchListObjectChildrenResponse_children :: Lens.Lens' BatchListObjectChildrenResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text)) batchListObjectChildrenResponse_children = Lens.lens (\BatchListObjectChildrenResponse' {children} -> children) (\s@BatchListObjectChildrenResponse' {} a -> s {children = a} :: BatchListObjectChildrenResponse) Prelude.. Lens.mapping Lens.coerced -- | The pagination token. batchListObjectChildrenResponse_nextToken :: Lens.Lens' BatchListObjectChildrenResponse (Prelude.Maybe Prelude.Text) batchListObjectChildrenResponse_nextToken = Lens.lens (\BatchListObjectChildrenResponse' {nextToken} -> nextToken) (\s@BatchListObjectChildrenResponse' {} a -> s {nextToken = a} :: BatchListObjectChildrenResponse) instance Data.FromJSON BatchListObjectChildrenResponse where parseJSON = Data.withObject "BatchListObjectChildrenResponse" ( \x -> BatchListObjectChildrenResponse' Prelude.<$> (x Data..:? "Children" Data..!= Prelude.mempty) Prelude.<*> (x Data..:? "NextToken") ) instance Prelude.Hashable BatchListObjectChildrenResponse where hashWithSalt _salt BatchListObjectChildrenResponse' {..} = _salt `Prelude.hashWithSalt` children `Prelude.hashWithSalt` nextToken instance Prelude.NFData BatchListObjectChildrenResponse where rnf BatchListObjectChildrenResponse' {..} = Prelude.rnf children `Prelude.seq` Prelude.rnf nextToken