{-# 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.BatchAttachToIndexResponse -- 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.BatchAttachToIndexResponse 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 AttachToIndex response operation. -- -- /See:/ 'newBatchAttachToIndexResponse' smart constructor. data BatchAttachToIndexResponse = BatchAttachToIndexResponse' { -- | The @ObjectIdentifier@ of the object that was attached to the index. attachedObjectIdentifier :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'BatchAttachToIndexResponse' 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: -- -- 'attachedObjectIdentifier', 'batchAttachToIndexResponse_attachedObjectIdentifier' - The @ObjectIdentifier@ of the object that was attached to the index. newBatchAttachToIndexResponse :: BatchAttachToIndexResponse newBatchAttachToIndexResponse = BatchAttachToIndexResponse' { attachedObjectIdentifier = Prelude.Nothing } -- | The @ObjectIdentifier@ of the object that was attached to the index. batchAttachToIndexResponse_attachedObjectIdentifier :: Lens.Lens' BatchAttachToIndexResponse (Prelude.Maybe Prelude.Text) batchAttachToIndexResponse_attachedObjectIdentifier = Lens.lens (\BatchAttachToIndexResponse' {attachedObjectIdentifier} -> attachedObjectIdentifier) (\s@BatchAttachToIndexResponse' {} a -> s {attachedObjectIdentifier = a} :: BatchAttachToIndexResponse) instance Data.FromJSON BatchAttachToIndexResponse where parseJSON = Data.withObject "BatchAttachToIndexResponse" ( \x -> BatchAttachToIndexResponse' Prelude.<$> (x Data..:? "AttachedObjectIdentifier") ) instance Prelude.Hashable BatchAttachToIndexResponse where hashWithSalt _salt BatchAttachToIndexResponse' {..} = _salt `Prelude.hashWithSalt` attachedObjectIdentifier instance Prelude.NFData BatchAttachToIndexResponse where rnf BatchAttachToIndexResponse' {..} = Prelude.rnf attachedObjectIdentifier