Annotation Type AWSIotDeviceProperty
Annotation class that is used to annotate properties in
AWSIotDevice.
Properties annotated must be accessible via corresponding getter and setter
methods.
With optional values provided by this annotation class, properties can also
be configured to disable reporting to the shadow or not to accept updates
from the shadow. If enableReport() is disabled, property getter
function is not required. Likewise, if allowUpdate() is disabled for
a property, its setter method is not required.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanAllow updates from the shadow.booleanEnable reporting the annotated property to the shadow.An optional name can be provided to the annotated property, which will be used for publishing to the shadow as well as receiving updates from the shadow.
-
Element Details
-
name
String nameAn optional name can be provided to the annotated property, which will be used for publishing to the shadow as well as receiving updates from the shadow. If not provided, the actual property name will be used.- Returns:
- the name of the property.
- Default:
- ""
-
enableReport
boolean enableReportEnable reporting the annotated property to the shadow. It's enabled by default.- Returns:
- true to enable reporting to the shadow, false otherwise.
- Default:
- true
-
allowUpdate
boolean allowUpdateAllow updates from the shadow. It's enabled by default.- Returns:
- true to allow updates from the shadow, false otherwise.
- Default:
- true
-