Annotation Type AWSIotDeviceProperty
-
@Retention(RUNTIME) public @interface AWSIotDeviceProperty
Annotation class that is used to annotate properties inAWSIotDevice. 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, ifallowUpdate()is disabled for a property, its setter method is not required.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanallowUpdateAllow updates from the shadow.booleanenableReportEnable reporting the annotated property to the shadow.StringnameAn 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 Detail
-
name
String name
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. If not provided, the actual property name will be used.- Returns:
- the name of the property.
- Default:
- ""
-
-