package com.bcxin.backend.domain.apps;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

@Getter
@Data
public class TriggerDefinition implements Serializable {

    private final String appId;
    private final String id;
    private final String taskId;

    public TriggerDefinition(String appId, String id, String taskId) {
        this.appId = appId;
        this.id = id;
        this.taskId = taskId;
    }

    public static TriggerDefinition create(String appId, String id, String taskId) {
        return new TriggerDefinition(appId, id, taskId);
    }
}
