Class Device

    • Method Detail

      • certificateArn

        public final String certificateArn()
        The ARN of the certificate associated with the device.
        Returns:
        The ARN of the certificate associated with the device.
      • id

        public final String id()
        A descriptive or arbitrary ID for the device. This value must be unique within the device definition version. Max length is 128 characters with pattern ''[a-zA-Z0-9:_-]+''.
        Returns:
        A descriptive or arbitrary ID for the device. This value must be unique within the device definition version. Max length is 128 characters with pattern ''[a-zA-Z0-9:_-]+''.
      • syncShadow

        public final Boolean syncShadow()
        If true, the device's local shadow will be automatically synced with the cloud.
        Returns:
        If true, the device's local shadow will be automatically synced with the cloud.
      • thingArn

        public final String thingArn()
        The thing ARN of the device.
        Returns:
        The thing ARN of the device.
      • serializableBuilderClass

        public static Class<? extends Device.Builder> serializableBuilderClass()
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)