Package dev.openfga.sdk.api.model
Class RelationshipCondition
- java.lang.Object
-
- dev.openfga.sdk.api.model.RelationshipCondition
-
public class RelationshipCondition extends java.lang.ObjectRelationshipCondition
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJSON_PROPERTY_CONTEXTstatic java.lang.StringJSON_PROPERTY_NAME
-
Constructor Summary
Constructors Constructor Description RelationshipCondition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RelationshipConditioncontext(java.lang.Object context)booleanequals(java.lang.Object o)Return true if this RelationshipCondition object is equal to o.java.lang.ObjectgetContext()Additional context/data to persist along with the condition.java.lang.StringgetName()A reference (by name) of the relationship condition defined in the authorization model.inthashCode()RelationshipConditionname(java.lang.String name)voidsetContext(java.lang.Object context)voidsetName(java.lang.String name)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.
-
-
-
Field Detail
-
JSON_PROPERTY_NAME
public static final java.lang.String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CONTEXT
public static final java.lang.String JSON_PROPERTY_CONTEXT
- See Also:
- Constant Field Values
-
-
Method Detail
-
name
public RelationshipCondition name(java.lang.String name)
-
getName
@Nonnull public java.lang.String getName()
A reference (by name) of the relationship condition defined in the authorization model.- Returns:
- name
-
setName
public void setName(java.lang.String name)
-
context
public RelationshipCondition context(java.lang.Object context)
-
getContext
@Nullable public java.lang.Object getContext()
Additional context/data to persist along with the condition. The keys must match the parameters defined by the condition, and the value types must match the parameter type definitions.- Returns:
- context
-
setContext
public void setContext(java.lang.Object context)
-
equals
public boolean equals(java.lang.Object o)
Return true if this RelationshipCondition 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
-
-