Package dev.openfga.sdk.api.model
Class Tuple
- java.lang.Object
-
- dev.openfga.sdk.api.model.Tuple
-
public class Tuple extends java.lang.ObjectTuple
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJSON_PROPERTY_KEYstatic java.lang.StringJSON_PROPERTY_TIMESTAMP
-
Constructor Summary
Constructors Constructor Description Tuple()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Return true if this Tuple object is equal to o.TupleKeygetKey()Get keyjava.time.OffsetDateTimegetTimestamp()Get timestampinthashCode()Tuplekey(TupleKey key)voidsetKey(TupleKey key)voidsetTimestamp(java.time.OffsetDateTime timestamp)Tupletimestamp(java.time.OffsetDateTime timestamp)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_KEY
public static final java.lang.String JSON_PROPERTY_KEY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TIMESTAMP
public static final java.lang.String JSON_PROPERTY_TIMESTAMP
- See Also:
- Constant Field Values
-
-
Method Detail
-
getKey
@Nonnull public TupleKey getKey()
Get key- Returns:
- key
-
setKey
public void setKey(TupleKey key)
-
timestamp
public Tuple timestamp(java.time.OffsetDateTime timestamp)
-
getTimestamp
@Nonnull public java.time.OffsetDateTime getTimestamp()
Get timestamp- Returns:
- timestamp
-
setTimestamp
public void setTimestamp(java.time.OffsetDateTime timestamp)
-
equals
public boolean equals(java.lang.Object o)
Return true if this Tuple 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
-
-