{-# 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.FSx.Types.DeleteFileSystemWindowsResponse -- 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.FSx.Types.DeleteFileSystemWindowsResponse where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import Amazonka.FSx.Types.Tag import qualified Amazonka.Prelude as Prelude -- | The response object for the Microsoft Windows file system used in the -- @DeleteFileSystem@ operation. -- -- /See:/ 'newDeleteFileSystemWindowsResponse' smart constructor. data DeleteFileSystemWindowsResponse = DeleteFileSystemWindowsResponse' { -- | The ID of the final backup for this file system. finalBackupId :: Prelude.Maybe Prelude.Text, -- | The set of tags applied to the final backup. finalBackupTags :: Prelude.Maybe (Prelude.NonEmpty Tag) } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'DeleteFileSystemWindowsResponse' 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: -- -- 'finalBackupId', 'deleteFileSystemWindowsResponse_finalBackupId' - The ID of the final backup for this file system. -- -- 'finalBackupTags', 'deleteFileSystemWindowsResponse_finalBackupTags' - The set of tags applied to the final backup. newDeleteFileSystemWindowsResponse :: DeleteFileSystemWindowsResponse newDeleteFileSystemWindowsResponse = DeleteFileSystemWindowsResponse' { finalBackupId = Prelude.Nothing, finalBackupTags = Prelude.Nothing } -- | The ID of the final backup for this file system. deleteFileSystemWindowsResponse_finalBackupId :: Lens.Lens' DeleteFileSystemWindowsResponse (Prelude.Maybe Prelude.Text) deleteFileSystemWindowsResponse_finalBackupId = Lens.lens (\DeleteFileSystemWindowsResponse' {finalBackupId} -> finalBackupId) (\s@DeleteFileSystemWindowsResponse' {} a -> s {finalBackupId = a} :: DeleteFileSystemWindowsResponse) -- | The set of tags applied to the final backup. deleteFileSystemWindowsResponse_finalBackupTags :: Lens.Lens' DeleteFileSystemWindowsResponse (Prelude.Maybe (Prelude.NonEmpty Tag)) deleteFileSystemWindowsResponse_finalBackupTags = Lens.lens (\DeleteFileSystemWindowsResponse' {finalBackupTags} -> finalBackupTags) (\s@DeleteFileSystemWindowsResponse' {} a -> s {finalBackupTags = a} :: DeleteFileSystemWindowsResponse) Prelude.. Lens.mapping Lens.coerced instance Data.FromJSON DeleteFileSystemWindowsResponse where parseJSON = Data.withObject "DeleteFileSystemWindowsResponse" ( \x -> DeleteFileSystemWindowsResponse' Prelude.<$> (x Data..:? "FinalBackupId") Prelude.<*> (x Data..:? "FinalBackupTags") ) instance Prelude.Hashable DeleteFileSystemWindowsResponse where hashWithSalt _salt DeleteFileSystemWindowsResponse' {..} = _salt `Prelude.hashWithSalt` finalBackupId `Prelude.hashWithSalt` finalBackupTags instance Prelude.NFData DeleteFileSystemWindowsResponse where rnf DeleteFileSystemWindowsResponse' {..} = Prelude.rnf finalBackupId `Prelude.seq` Prelude.rnf finalBackupTags