Package dev.openfga.sdk.api.model
Class Assertion
- java.lang.Object
-
- dev.openfga.sdk.api.model.Assertion
-
public class Assertion extends java.lang.ObjectAssertion
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJSON_PROPERTY_EXPECTATIONstatic java.lang.StringJSON_PROPERTY_TUPLE_KEY
-
Constructor Summary
Constructors Constructor Description Assertion()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Return true if this Assertion object is equal to o.Assertionexpectation(java.lang.Boolean expectation)java.lang.BooleangetExpectation()Get expectationAssertionTupleKeygetTupleKey()Get tupleKeyinthashCode()voidsetExpectation(java.lang.Boolean expectation)voidsetTupleKey(AssertionTupleKey tupleKey)java.lang.StringtoString()java.lang.StringtoUrlQueryString()Convert the instance into URL query string.java.lang.StringtoUrlQueryString(java.lang.String prefix)Convert the instance into URL query string.AssertiontupleKey(AssertionTupleKey tupleKey)
-
-
-
Field Detail
-
JSON_PROPERTY_TUPLE_KEY
public static final java.lang.String JSON_PROPERTY_TUPLE_KEY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EXPECTATION
public static final java.lang.String JSON_PROPERTY_EXPECTATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
tupleKey
public Assertion tupleKey(AssertionTupleKey tupleKey)
-
getTupleKey
@Nonnull public AssertionTupleKey getTupleKey()
Get tupleKey- Returns:
- tupleKey
-
setTupleKey
public void setTupleKey(AssertionTupleKey tupleKey)
-
expectation
public Assertion expectation(java.lang.Boolean expectation)
-
getExpectation
@Nonnull public java.lang.Boolean getExpectation()
Get expectation- Returns:
- expectation
-
setExpectation
public void setExpectation(java.lang.Boolean expectation)
-
equals
public boolean equals(java.lang.Object o)
Return true if this Assertion object is equal to o.- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toUrlQueryString
public java.lang.String toUrlQueryString()
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
public java.lang.String toUrlQueryString(java.lang.String prefix)
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-
-