Freigeben über


Property Class

  • java.lang.Object
    • com.microsoft.azure.sdk.iot.device.DeviceTwin.Property

public class Property

Constructor Summary

Modifier Constructor Description
Property(String key, Object value)
protected Property(String key, Object value, Integer version, boolean isReported, Date lastUpdated, Integer lastUpdatedVersion)

Method Summary

Modifier and Type Method and Description
boolean getIsReported()
java.lang.String getKey()
java.util.Date getLastUpdated()
java.lang.Integer getLastUpdatedVersion()
java.lang.Object getValue()
java.lang.Integer getVersion()
void setValue(Object newValue)
java.lang.String toString()

Creates a pretty print JSON with the content of this class and subclasses.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

Property

public Property(String key, Object value)

Parameters:

key
value

Property

protected Property(String key, Object value, Integer version, boolean isReported, Date lastUpdated, Integer lastUpdatedVersion)

Parameters:

key
value
version
isReported
lastUpdated
lastUpdatedVersion

Method Details

getIsReported

public boolean getIsReported()

getKey

public String getKey()

getLastUpdated

public Date getLastUpdated()

getLastUpdatedVersion

public Integer getLastUpdatedVersion()

getValue

public Object getValue()

getVersion

public Integer getVersion()

setValue

public void setValue(Object newValue)

Parameters:

newValue

toString

public String toString()

Creates a pretty print JSON with the content of this class and subclasses.

Overrides:

Property.toString()

Returns:

The String with the pretty print JSON.

Applies to