View Javadoc
1   package io.guixer.lang.command;
2   
3   import static com.google.common.base.Preconditions.checkNotNull;
4   
5   import io.guixer.types.StepType;
6   
7   public class SetVariableCommand implements Command {
8   
9   	@Override
10  	public StepType getType() {
11  
12  		return StepType.SET_VARIABLE;
13  	}
14  
15  	public final String name;
16  	public final String value;
17  
18  	@Override
19  	public String toString() {
20  
21  		return "SetVariableCommand: " + name + " " + value;
22  	}
23  
24  	public SetVariableCommand(
25  		final String name,
26  		final String value
27  	) {
28  
29  		this.name = checkNotNull(name, "name");
30  		this.value = checkNotNull(value, "value");
31  	}
32  }