com.hubspot.singularity.config.shell.ShellCommandDescriptor Maven / Gradle / Ivy
package com.hubspot.singularity.config.shell;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Collections;
import java.util.List;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.NotEmpty;
public class ShellCommandDescriptor {
@NotEmpty
@JsonProperty
private String name;
@JsonProperty
private String description;
@JsonProperty
@NotNull
private List options = Collections.emptyList();
public String getName() {
return name;
}
public ShellCommandDescriptor setName(String name) {
this.name = name;
return this;
}
public String getDescription() {
return description;
}
public ShellCommandDescriptor setDescription(String description) {
this.description = description;
return this;
}
public List getOptions() {
return options;
}
public ShellCommandDescriptor setOptions(List options) {
this.options = options;
return this;
}
@Override
public String toString() {
return (
"ShellCommandDescriptor [name=" +
name +
", description=" +
description +
", options=" +
options +
"]"
);
}
}