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

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

The 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 io.quarkiverse.openfga.client.model.utils.Preconditions;

public final class Usersets {

    private final List child;

    @JsonCreator(mode = JsonCreator.Mode.PROPERTIES)
    Usersets(List child) {
        this.child = Preconditions.parameterNonNull(child, "child");
    }

    public static Usersets of(List child) {
        return new Usersets(child);
    }

    public List getChild() {
        return child;
    }

    @Override
    public boolean equals(@Nullable Object obj) {
        if (obj == this)
            return true;
        if (obj == null || obj.getClass() != this.getClass())
            return false;
        var that = (Usersets) obj;
        return Objects.equals(this.child, that.child);
    }

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

    @Override
    public String toString() {
        return "Usersets[" +
                "child=" + child + ']';
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy