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

org.openl.rules.rest.model.MailConfigModel Maven / Gradle / Ivy

There is a newer version: 5.27.9
Show newest version
package org.openl.rules.rest.model;

import io.swagger.v3.oas.annotations.Parameter;

import org.openl.rules.rest.validation.MailConfigConstraint;

@MailConfigConstraint
public class MailConfigModel {

    @Parameter(description = "Mail server url", example = "smtps://mail.example.com:1587")
    private String url;

    @Parameter(description = "Username for authentication on mail server", example = "[email protected]")
    private String username;

    @Parameter(description = "Password for authentication on mail server", example = "qwerty")
    private String password;

    public MailConfigModel() {
    }

    public MailConfigModel(String url, String username, String password) {
        this.url = url;
        this.username = username;
        this.password = password;
    }

    public String getPassword() {
        return password;
    }

    public MailConfigModel setPassword(String password) {
        this.password = password;
        return this;
    }

    public String getUrl() {
        return url;
    }

    public MailConfigModel setUrl(String url) {
        this.url = url;
        return this;
    }

    public String getUsername() {
        return username;
    }

    public MailConfigModel setUsername(String username) {
        this.username = username;
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy