com.hubspot.singularity.config.ScopesConfiguration Maven / Gradle / Ivy
package com.hubspot.singularity.config;
import java.util.Collections;
import java.util.Set;
import org.hibernate.validator.constraints.NotEmpty;
public class ScopesConfiguration {
@NotEmpty
private Set admin = Collections.singleton("SINGULARITY_ADMIN");
@NotEmpty
private Set write = Collections.singleton("SINGULARITY_WRITE");
@NotEmpty
private Set read = Collections.singleton("SINGULARITY_READONLY");
// only enforced if not empty, otherwise will check for write
private Set deploy = Collections.emptySet();
public Set getAdmin() {
return admin;
}
public void setAdmin(Set admin) {
this.admin = admin;
}
public Set getWrite() {
return write;
}
public void setWrite(Set write) {
this.write = write;
}
public Set getRead() {
return read;
}
public void setRead(Set read) {
this.read = read;
}
public Set getDeploy() {
return deploy;
}
public void setDeploy(Set deploy) {
this.deploy = deploy;
}
}