Package dev.openfga.sdk.api.model
Class TupleKey
- java.lang.Object
-
- dev.openfga.sdk.api.model.TupleKey
-
public class TupleKey extends java.lang.Object
TupleKey
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
JSON_PROPERTY_CONDITION
static java.lang.String
JSON_PROPERTY_OBJECT
static java.lang.String
JSON_PROPERTY_RELATION
static java.lang.String
JSON_PROPERTY_USER
-
Constructor Summary
Constructors Constructor Description TupleKey()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TupleKey
_object(java.lang.String _object)
TupleKey
condition(RelationshipCondition condition)
boolean
equals(java.lang.Object o)
Return true if this TupleKey object is equal to o.RelationshipCondition
getCondition()
Get conditionjava.lang.String
getObject()
Get _objectjava.lang.String
getRelation()
Get relationjava.lang.String
getUser()
Get userint
hashCode()
TupleKey
relation(java.lang.String relation)
void
setCondition(RelationshipCondition condition)
void
setObject(java.lang.String _object)
void
setRelation(java.lang.String relation)
void
setUser(java.lang.String user)
java.lang.String
toString()
java.lang.String
toUrlQueryString()
Convert the instance into URL query string.java.lang.String
toUrlQueryString(java.lang.String prefix)
Convert the instance into URL query string.TupleKey
user(java.lang.String user)
-
-
-
Field Detail
-
JSON_PROPERTY_USER
public static final java.lang.String JSON_PROPERTY_USER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RELATION
public static final java.lang.String JSON_PROPERTY_RELATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_OBJECT
public static final java.lang.String JSON_PROPERTY_OBJECT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CONDITION
public static final java.lang.String JSON_PROPERTY_CONDITION
- See Also:
- Constant Field Values
-
-
Method Detail
-
user
public TupleKey user(java.lang.String user)
-
getUser
@Nonnull public java.lang.String getUser()
Get user- Returns:
- user
-
setUser
public void setUser(java.lang.String user)
-
relation
public TupleKey relation(java.lang.String relation)
-
getRelation
@Nonnull public java.lang.String getRelation()
Get relation- Returns:
- relation
-
setRelation
public void setRelation(java.lang.String relation)
-
_object
public TupleKey _object(java.lang.String _object)
-
getObject
@Nonnull public java.lang.String getObject()
Get _object- Returns:
- _object
-
setObject
public void setObject(java.lang.String _object)
-
condition
public TupleKey condition(RelationshipCondition condition)
-
getCondition
@Nullable public RelationshipCondition getCondition()
Get condition- Returns:
- condition
-
setCondition
public void setCondition(RelationshipCondition condition)
-
equals
public boolean equals(java.lang.Object o)
Return true if this TupleKey object is equal to o.- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in 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
-
-