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

dev.openfga.language.Relation Maven / Gradle / Ivy

There is a newer version: v0.2.0-beta.2
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy