io.quarkiverse.openfga.client.model.ContextualTupleKeys Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-openfga-client-model Show documentation
Show all versions of quarkus-openfga-client-model Show documentation
OpenFGA Client API model classes
package io.quarkiverse.openfga.client.model;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.quarkiverse.openfga.client.model.utils.Preconditions;
public final class ContextualTupleKeys {
@JsonProperty("tuple_keys")
private final List tupleKeys;
public ContextualTupleKeys(@JsonProperty("tuple_keys") List tupleKeys) {
this.tupleKeys = Preconditions.parameterNonNull(tupleKeys, "tupleKeys");
}
@JsonProperty("tuple_keys")
public List getTupleKeys() {
return tupleKeys;
}
@Override
public boolean equals(@Nullable Object obj) {
if (obj == this)
return true;
if (obj == null || obj.getClass() != this.getClass())
return false;
var that = (ContextualTupleKeys) obj;
return Objects.equals(this.tupleKeys, that.tupleKeys);
}
@Override
public int hashCode() {
return Objects.hash(tupleKeys);
}
@Override
public String toString() {
return "ContextualTupleKeys[" +
"tupleKeys=" + tupleKeys + ']';
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy