io.quarkiverse.openfga.client.model.Assertions 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
The newest version!
package io.quarkiverse.openfga.client.model;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonCreator;
public final class Assertions {
private final List assertions;
@JsonCreator(mode = JsonCreator.Mode.PROPERTIES)
Assertions(List assertions) {
this.assertions = assertions;
}
public static Assertions of(List assertions) {
return new Assertions(assertions);
}
public static final class Builder {
private List assertions;
public Builder() {
}
public Builder assertions(List assertions) {
this.assertions = assertions;
return this;
}
public Builder addAssertions(List assertions) {
if (this.assertions == null) {
this.assertions = new java.util.ArrayList<>();
}
this.assertions.addAll(assertions);
return this;
}
public Builder addAssertion(Assertion assertion) {
if (this.assertions == null) {
this.assertions = new java.util.ArrayList<>();
}
this.assertions.add(assertion);
return this;
}
public Assertions build() {
return new Assertions(assertions);
}
}
public List getAssertions() {
return assertions;
}
@Override
public boolean equals(Object obj) {
if (obj == this)
return true;
if (obj == null || obj.getClass() != this.getClass())
return false;
var that = (Assertions) obj;
return this.assertions.equals(that.assertions);
}
@Override
public int hashCode() {
return java.util.Objects.hash(assertions);
}
@Override
public String toString() {
return "Assertions[" +
"assertions=" + assertions + ']';
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy