addAttribute

fun addAttribute(attributeName: String, attributeValue: Any?): Properties

Add an attribute with value of type Object.

Note: This API only accepts the below data-types:

String

Integer

Long

Double

Float

Boolean

Date

GeoLocation

JSONArray

JSONObject

If any other data-type is passed payload would be rejected.

Return

Instance of Properties

Since

10.0.00

Parameters

attributeName

Attribute name

attributeValue

Attribute value