All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.chutneytesting.admin.api.dto.BackupDto Maven / Gradle / Ivy

/*
 * SPDX-FileCopyrightText: 2017-2024 Enedis
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 */

package com.chutneytesting.admin.api.dto;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.List;

public class BackupDto {

    private final DateTimeFormatter backupIdTimeFormatter = DateTimeFormatter.ofPattern("yyyyMMddHHmmss");
    private final LocalDateTime time;

    private final List Backupables;

    public BackupDto(LocalDateTime time, List backupables) {
        this.time = time;
        Backupables = backupables;
    }

    public LocalDateTime getTime() {
        return time;
    }

    public List getBackupables() {
        return Backupables;
    }

    public String getId() {
        return this.time.format(backupIdTimeFormatter);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy