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

no.flowlab.plugins.Step Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
package no.flowlab.plugins;

import com.amazonaws.services.elasticmapreduce.model.ActionOnFailure;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * @author Krzysztof Grodzicki 04/09/16.
 */
public class Step {
    private String name;
    private String script;
    private String mainClass;
    private ActionOnFailure actionOnFailure;
    private String clusterId;
    private String applicationArguments;

    public String getScript() {
        return script;
    }

    public String getMainClass() {
        return mainClass;
    }

    public ActionOnFailure getActionOnFailure() {
        return actionOnFailure;
    }

    public String getClusterId() {
        return clusterId;
    }

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

    public void setScript(String script) {
        this.script = script;
    }

    public void setMainClass(String mainClass) {
        this.mainClass = mainClass;
    }

    public void setActionOnFailure(ActionOnFailure actionOnFailure) {
        this.actionOnFailure = actionOnFailure;
    }

    public void setClusterId(String clusterId) {
        this.clusterId = clusterId;
    }

    public void setApplicationArguments(String applicationArguments) {
        this.applicationArguments = applicationArguments;
    }

    public Step actionOnFailure(ActionOnFailure actionOnFailure) {
        this.actionOnFailure = actionOnFailure;
        return this;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getApplicationArguments() {
        return applicationArguments;
    }

    public Step jobFlowId(String jobFlowId) {
        this.clusterId = jobFlowId;
        return this;
    }

    public Step script(String script) {
        this.script = script;
        return this;
    }

    public Step stepClass(String stepClass) {
        this.mainClass = stepClass;
        return this;
    }

    public Step applicationArguments(String applicationArguments) {
        this.applicationArguments = applicationArguments;
        return this;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("name", name)
                .append("script", script)
                .append("mainClass", mainClass)
                .append("actionOnFailure", actionOnFailure)
                .append("clusterId", clusterId)
                .append("applicationArguments", applicationArguments)
                .toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy