public class AddItemProperty extends Request
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
propertyName
Name of the item property to be created.
|
protected java.lang.String |
type
Value type of the item property to be created.
|
Constructor and Description |
---|
AddItemProperty(java.lang.String propertyName,
java.lang.String type)
Construct the request
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getBodyParameters()
Get body parameters
|
HTTPMethod |
getHTTPMethod() |
java.lang.String |
getPath() |
java.lang.String |
getPropertyName() |
java.util.Map<java.lang.String,java.lang.Object> |
getQueryParameters()
Get query parameters
|
java.lang.String |
getType() |
getEnsureHttps, getTimeout, setTimeout
protected java.lang.String propertyName
protected java.lang.String type
public AddItemProperty(java.lang.String propertyName, java.lang.String type)
propertyName
- Name of the item property to be created. Currently, the following names are reserved:`id`, `itemid`, case insensitively. Also, the length of the property name must not exceed 63 characters.type
- Value type of the item property to be created. One of: `int`, `double`, `string`, `boolean`, `timestamp`, `set`, `image` or `imageList`.
* `int`- Signed integer number.
* `double` - Floating point number. It uses 64-bit base-2 format (IEEE 754 standard).
* `string` - UTF-8 string.
* `boolean` - *true* / *false*
* `timestamp` - Value representing date and time.
* `set` - Set of strings.
* `image` - URL of an image (`jpeg`, `png` or `gif`).
* `imageList` - List of URLs that refer to images.public java.lang.String getPropertyName()
public java.lang.String getType()
public HTTPMethod getHTTPMethod()
getHTTPMethod
in class Request
public java.lang.String getPath()
public java.util.Map<java.lang.String,java.lang.Object> getQueryParameters()
getQueryParameters
in class Request
public java.util.Map<java.lang.String,java.lang.Object> getBodyParameters()
getBodyParameters
in class Request