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

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

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

import java.util.List;

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

public class NotificationModel {

    @Parameter(description = "Localized notification message")
    private String message;

    @Parameter(description = "Notification code")
    private String code;

    @Parameter(description = "Message arguments")
    private List args;

    public NotificationModel(String message, String code, List args) {
        this.message = message;
        this.code = code;
        this.args = args;
    }

    public NotificationModel(String message) {
        this.message = message;
    }

    public NotificationModel() {
    }

    public String getMessage() {
        return message;
    }

    public NotificationModel setMessage(String message) {
        this.message = message;
        return this;
    }

    public String getCode() {
        return code;
    }

    public NotificationModel setCode(String code) {
        this.code = code;
        return this;
    }

    public List getArgs() {
        return args;
    }

    public NotificationModel setArgs(List args) {
        this.args = args;
        return this;
    }
}