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

io.serverlessworkflow.api.branches.Branch Maven / Gradle / Ivy

There is a newer version: 7.0.0-alpha5.1
Show newest version

package io.serverlessworkflow.api.branches;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.validation.Valid;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import io.serverlessworkflow.api.actions.Action;


/**
 * Branch Definition
 * 
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
    "name",
    "actions",
    "workflowId"
})
public class Branch implements Serializable
{

    /**
     * Branch name
     * 
     */
    @JsonProperty("name")
    @JsonPropertyDescription("Branch name")
    private String name;
    /**
     * Actions to be executed in this branch
     * 
     */
    @JsonProperty("actions")
    @JsonPropertyDescription("Actions to be executed in this branch")
    @Valid
    private List actions = new ArrayList();
    /**
     * Unique Id of a workflow to be executed in this branch
     * 
     */
    @JsonProperty("workflowId")
    @JsonPropertyDescription("Unique Id of a workflow to be executed in this branch")
    private String workflowId;
    private final static long serialVersionUID = 4985479487532847747L;

    /**
     * Branch name
     * 
     */
    @JsonProperty("name")
    public String getName() {
        return name;
    }

    /**
     * Branch name
     * 
     */
    @JsonProperty("name")
    public void setName(String name) {
        this.name = name;
    }

    public Branch withName(String name) {
        this.name = name;
        return this;
    }

    /**
     * Actions to be executed in this branch
     * 
     */
    @JsonProperty("actions")
    public List getActions() {
        return actions;
    }

    /**
     * Actions to be executed in this branch
     * 
     */
    @JsonProperty("actions")
    public void setActions(List actions) {
        this.actions = actions;
    }

    public Branch withActions(List actions) {
        this.actions = actions;
        return this;
    }

    /**
     * Unique Id of a workflow to be executed in this branch
     * 
     */
    @JsonProperty("workflowId")
    public String getWorkflowId() {
        return workflowId;
    }

    /**
     * Unique Id of a workflow to be executed in this branch
     * 
     */
    @JsonProperty("workflowId")
    public void setWorkflowId(String workflowId) {
        this.workflowId = workflowId;
    }

    public Branch withWorkflowId(String workflowId) {
        this.workflowId = workflowId;
        return this;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy