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

io.quarkiverse.openfga.client.model.RelationMetadata Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
package io.quarkiverse.openfga.client.model;

import java.util.List;
import java.util.Objects;

import javax.annotation.Nullable;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

public class RelationMetadata {

    @JsonProperty("directly_related_user_types")
    @Nullable
    List directlyRelatedUserTypes;

    @JsonCreator
    public RelationMetadata(@Nullable List directlyRelatedUserTypes) {
        this.directlyRelatedUserTypes = directlyRelatedUserTypes;
    }

    @Nullable
    public List getDirectlyRelatedUserTypes() {
        return directlyRelatedUserTypes;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o)
            return true;
        if (!(o instanceof RelationMetadata))
            return false;
        RelationMetadata that = (RelationMetadata) o;
        return Objects.equals(directlyRelatedUserTypes, that.directlyRelatedUserTypes);
    }

    @Override
    public int hashCode() {
        return Objects.hash(directlyRelatedUserTypes);
    }

    @Override
    public String toString() {
        return "RelationMetadata{" +
                "directlyRelatedUserTypes=" + directlyRelatedUserTypes +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy