dev.openfga.language.Relation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java Show documentation
Show all versions of java Show documentation
This is the language library for OpenFGA.
package dev.openfga.language;
import dev.openfga.sdk.api.model.RelationMetadata;
import dev.openfga.sdk.api.model.Userset;
import java.util.List;
final class Relation {
private String name;
private List rewrites;
private String operator;
private RelationMetadata typeInfo;
public Relation(String name, List rewrites, String operator, RelationMetadata typeInfo) {
this.name = name;
this.rewrites = rewrites;
this.operator = operator;
this.typeInfo = typeInfo;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public List getRewrites() {
return rewrites;
}
public void setRewrites(List rewrites) {
this.rewrites = rewrites;
}
public String getOperator() {
return operator;
}
public void setOperator(String operator) {
this.operator = operator;
}
public RelationMetadata getTypeInfo() {
return typeInfo;
}
public void setTypeInfo(RelationMetadata typeInfo) {
this.typeInfo = typeInfo;
}
}