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