{-# 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.CodeCommit.Types.DeleteFileEntry -- 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.CodeCommit.Types.DeleteFileEntry 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 -- | A file that is deleted as part of a commit. -- -- /See:/ 'newDeleteFileEntry' smart constructor. data DeleteFileEntry = DeleteFileEntry' { -- | The full path of the file to be deleted, including the name of the file. filePath :: Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'DeleteFileEntry' 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: -- -- 'filePath', 'deleteFileEntry_filePath' - The full path of the file to be deleted, including the name of the file. newDeleteFileEntry :: -- | 'filePath' Prelude.Text -> DeleteFileEntry newDeleteFileEntry pFilePath_ = DeleteFileEntry' {filePath = pFilePath_} -- | The full path of the file to be deleted, including the name of the file. deleteFileEntry_filePath :: Lens.Lens' DeleteFileEntry Prelude.Text deleteFileEntry_filePath = Lens.lens (\DeleteFileEntry' {filePath} -> filePath) (\s@DeleteFileEntry' {} a -> s {filePath = a} :: DeleteFileEntry) instance Prelude.Hashable DeleteFileEntry where hashWithSalt _salt DeleteFileEntry' {..} = _salt `Prelude.hashWithSalt` filePath instance Prelude.NFData DeleteFileEntry where rnf DeleteFileEntry' {..} = Prelude.rnf filePath instance Data.ToJSON DeleteFileEntry where toJSON DeleteFileEntry' {..} = Data.object ( Prelude.catMaybes [Prelude.Just ("filePath" Data..= filePath)] )