{-# 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.BatchGetObjectAttributesResponse -- 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.BatchGetObjectAttributesResponse 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 GetObjectAttributes response operation. -- -- /See:/ 'newBatchGetObjectAttributesResponse' smart constructor. data BatchGetObjectAttributesResponse = BatchGetObjectAttributesResponse' { -- | The attribute values that are associated with an object. attributes :: Prelude.Maybe [AttributeKeyAndValue] } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'BatchGetObjectAttributesResponse' 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', 'batchGetObjectAttributesResponse_attributes' - The attribute values that are associated with an object. newBatchGetObjectAttributesResponse :: BatchGetObjectAttributesResponse newBatchGetObjectAttributesResponse = BatchGetObjectAttributesResponse' { attributes = Prelude.Nothing } -- | The attribute values that are associated with an object. batchGetObjectAttributesResponse_attributes :: Lens.Lens' BatchGetObjectAttributesResponse (Prelude.Maybe [AttributeKeyAndValue]) batchGetObjectAttributesResponse_attributes = Lens.lens (\BatchGetObjectAttributesResponse' {attributes} -> attributes) (\s@BatchGetObjectAttributesResponse' {} a -> s {attributes = a} :: BatchGetObjectAttributesResponse) Prelude.. Lens.mapping Lens.coerced instance Data.FromJSON BatchGetObjectAttributesResponse where parseJSON = Data.withObject "BatchGetObjectAttributesResponse" ( \x -> BatchGetObjectAttributesResponse' Prelude.<$> (x Data..:? "Attributes" Data..!= Prelude.mempty) ) instance Prelude.Hashable BatchGetObjectAttributesResponse where hashWithSalt _salt BatchGetObjectAttributesResponse' {..} = _salt `Prelude.hashWithSalt` attributes instance Prelude.NFData BatchGetObjectAttributesResponse where rnf BatchGetObjectAttributesResponse' {..} = Prelude.rnf attributes