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