Package dev.openfga.sdk.api.model
Class Any
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<java.lang.String,java.lang.Object>
-
- dev.openfga.sdk.api.model.Any
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.util.Map<java.lang.String,java.lang.Object>
public class Any extends java.util.HashMap<java.lang.String,java.lang.Object>Any- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJSON_PROPERTY_AT_TYPE
-
Constructor Summary
Constructors Constructor Description Any()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnyatType(java.lang.String atType)booleanequals(java.lang.Object o)Return true if this Any object is equal to o.java.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()Return the additional (undeclared) properties.java.lang.ObjectgetAdditionalProperty(java.lang.String key)Return the additional (undeclared) property with the specified name.java.lang.StringgetAtType()Get atTypeinthashCode()AnyputAdditionalProperty(java.lang.String key, java.lang.Object value)Set the additional (undeclared) property with the specified name and value.voidsetAtType(java.lang.String atType)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_AT_TYPE
public static final java.lang.String JSON_PROPERTY_AT_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
atType
public Any atType(java.lang.String atType)
-
getAtType
@Nullable public java.lang.String getAtType()
Get atType- Returns:
- atType
-
setAtType
public void setAtType(java.lang.String atType)
-
putAdditionalProperty
public Any putAdditionalProperty(java.lang.String key, java.lang.Object value)
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- the name of the propertyvalue- the value of the property- Returns:
- self reference
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
Return the additional (undeclared) properties.- Returns:
- the additional (undeclared) properties
-
getAdditionalProperty
public java.lang.Object getAdditionalProperty(java.lang.String key)
Return the additional (undeclared) property with the specified name.- Parameters:
key- the name of the property- Returns:
- the additional (undeclared) property with the specified name
-
equals
public boolean equals(java.lang.Object o)
Return true if this Any object is equal to o.- Specified by:
equalsin interfacejava.util.Map<java.lang.String,java.lang.Object>- Overrides:
equalsin classjava.util.AbstractMap<java.lang.String,java.lang.Object>
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacejava.util.Map<java.lang.String,java.lang.Object>- Overrides:
hashCodein classjava.util.AbstractMap<java.lang.String,java.lang.Object>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.util.AbstractMap<java.lang.String,java.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
-
-