{-# 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.BatchListObjectAttributesResponse -- 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.BatchListObjectAttributesResponse where import Amazonka.CloudDirectory.Types.AttributeKeyAndValue 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 ListObjectAttributes response operation. -- -- /See:/ 'newBatchListObjectAttributesResponse' smart constructor. data BatchListObjectAttributesResponse = BatchListObjectAttributesResponse' { -- | The attributes map that is associated with the object. @AttributeArn@ is -- the key; attribute value is the value. attributes :: Prelude.Maybe [AttributeKeyAndValue], -- | The pagination token. nextToken :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'BatchListObjectAttributesResponse' 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: -- -- 'attributes', 'batchListObjectAttributesResponse_attributes' - The attributes map that is associated with the object. @AttributeArn@ is -- the key; attribute value is the value. -- -- 'nextToken', 'batchListObjectAttributesResponse_nextToken' - The pagination token. newBatchListObjectAttributesResponse :: BatchListObjectAttributesResponse newBatchListObjectAttributesResponse = BatchListObjectAttributesResponse' { attributes = Prelude.Nothing, nextToken = Prelude.Nothing } -- | The attributes map that is associated with the object. @AttributeArn@ is -- the key; attribute value is the value. batchListObjectAttributesResponse_attributes :: Lens.Lens' BatchListObjectAttributesResponse (Prelude.Maybe [AttributeKeyAndValue]) batchListObjectAttributesResponse_attributes = Lens.lens (\BatchListObjectAttributesResponse' {attributes} -> attributes) (\s@BatchListObjectAttributesResponse' {} a -> s {attributes = a} :: BatchListObjectAttributesResponse) Prelude.. Lens.mapping Lens.coerced -- | The pagination token. batchListObjectAttributesResponse_nextToken :: Lens.Lens' BatchListObjectAttributesResponse (Prelude.Maybe Prelude.Text) batchListObjectAttributesResponse_nextToken = Lens.lens (\BatchListObjectAttributesResponse' {nextToken} -> nextToken) (\s@BatchListObjectAttributesResponse' {} a -> s {nextToken = a} :: BatchListObjectAttributesResponse) instance Data.FromJSON BatchListObjectAttributesResponse where parseJSON = Data.withObject "BatchListObjectAttributesResponse" ( \x -> BatchListObjectAttributesResponse' Prelude.<$> (x Data..:? "Attributes" Data..!= Prelude.mempty) Prelude.<*> (x Data..:? "NextToken") ) instance Prelude.Hashable BatchListObjectAttributesResponse where hashWithSalt _salt BatchListObjectAttributesResponse' {..} = _salt `Prelude.hashWithSalt` attributes `Prelude.hashWithSalt` nextToken instance Prelude.NFData BatchListObjectAttributesResponse where rnf BatchListObjectAttributesResponse' {..} = Prelude.rnf attributes `Prelude.seq` Prelude.rnf nextToken