{-# 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.BatchUpdateObjectAttributesResponse -- 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.BatchUpdateObjectAttributesResponse 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 @BatchUpdate@ response operation. -- -- /See:/ 'newBatchUpdateObjectAttributesResponse' smart constructor. data BatchUpdateObjectAttributesResponse = BatchUpdateObjectAttributesResponse' { -- | ID that is associated with the object. objectIdentifier :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'BatchUpdateObjectAttributesResponse' 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: -- -- 'objectIdentifier', 'batchUpdateObjectAttributesResponse_objectIdentifier' - ID that is associated with the object. newBatchUpdateObjectAttributesResponse :: BatchUpdateObjectAttributesResponse newBatchUpdateObjectAttributesResponse = BatchUpdateObjectAttributesResponse' { objectIdentifier = Prelude.Nothing } -- | ID that is associated with the object. batchUpdateObjectAttributesResponse_objectIdentifier :: Lens.Lens' BatchUpdateObjectAttributesResponse (Prelude.Maybe Prelude.Text) batchUpdateObjectAttributesResponse_objectIdentifier = Lens.lens (\BatchUpdateObjectAttributesResponse' {objectIdentifier} -> objectIdentifier) (\s@BatchUpdateObjectAttributesResponse' {} a -> s {objectIdentifier = a} :: BatchUpdateObjectAttributesResponse) instance Data.FromJSON BatchUpdateObjectAttributesResponse where parseJSON = Data.withObject "BatchUpdateObjectAttributesResponse" ( \x -> BatchUpdateObjectAttributesResponse' Prelude.<$> (x Data..:? "ObjectIdentifier") ) instance Prelude.Hashable BatchUpdateObjectAttributesResponse where hashWithSalt _salt BatchUpdateObjectAttributesResponse' {..} = _salt `Prelude.hashWithSalt` objectIdentifier instance Prelude.NFData BatchUpdateObjectAttributesResponse where rnf BatchUpdateObjectAttributesResponse' {..} = Prelude.rnf objectIdentifier