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

io.rocketbase.mail.dto.EmailAttachment Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
package io.rocketbase.mail.dto;

import lombok.Data;
import lombok.RequiredArgsConstructor;
import org.springframework.lang.Nullable;

import java.io.File;

@Data
@RequiredArgsConstructor
public class EmailAttachment {

    private final String name;

    private final File file;

    @Nullable
    private String contentId;

    public EmailAttachment withContentId(String contentId) {
        setContentId(contentId);
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy