Package dev.openfga.sdk.api.model
Class Node
- java.lang.Object
-
- dev.openfga.sdk.api.model.Node
-
public class Node extends java.lang.ObjectNode
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJSON_PROPERTY_DIFFERENCEstatic java.lang.StringJSON_PROPERTY_INTERSECTIONstatic java.lang.StringJSON_PROPERTY_LEAFstatic java.lang.StringJSON_PROPERTY_NAMEstatic java.lang.StringJSON_PROPERTY_UNION
-
Constructor Summary
Constructors Constructor Description Node()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Nodedifference(UsersetTreeDifference difference)booleanequals(java.lang.Object o)Return true if this Node object is equal to o.UsersetTreeDifferencegetDifference()Get differenceNodesgetIntersection()Get intersectionLeafgetLeaf()Get leafjava.lang.StringgetName()Get nameNodesgetUnion()Get unioninthashCode()Nodeintersection(Nodes intersection)Nodeleaf(Leaf leaf)Nodename(java.lang.String name)voidsetDifference(UsersetTreeDifference difference)voidsetIntersection(Nodes intersection)voidsetLeaf(Leaf leaf)voidsetName(java.lang.String name)voidsetUnion(Nodes union)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.Nodeunion(Nodes union)
-
-
-
Field Detail
-
JSON_PROPERTY_NAME
public static final java.lang.String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LEAF
public static final java.lang.String JSON_PROPERTY_LEAF
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DIFFERENCE
public static final java.lang.String JSON_PROPERTY_DIFFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_UNION
public static final java.lang.String JSON_PROPERTY_UNION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INTERSECTION
public static final java.lang.String JSON_PROPERTY_INTERSECTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
name
public Node name(java.lang.String name)
-
getName
@Nonnull public java.lang.String getName()
Get name- Returns:
- name
-
setName
public void setName(java.lang.String name)
-
getLeaf
@Nullable public Leaf getLeaf()
Get leaf- Returns:
- leaf
-
setLeaf
public void setLeaf(Leaf leaf)
-
difference
public Node difference(UsersetTreeDifference difference)
-
getDifference
@Nullable public UsersetTreeDifference getDifference()
Get difference- Returns:
- difference
-
setDifference
public void setDifference(UsersetTreeDifference difference)
-
getUnion
@Nullable public Nodes getUnion()
Get union- Returns:
- union
-
setUnion
public void setUnion(Nodes union)
-
getIntersection
@Nullable public Nodes getIntersection()
Get intersection- Returns:
- intersection
-
setIntersection
public void setIntersection(Nodes intersection)
-
equals
public boolean equals(java.lang.Object o)
Return true if this Node 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
-
-