Class ConnectivityInfo

    • Method Detail

      • id

        public final String id()

        An ID for the connectivity information.

        Returns:
        An ID for the connectivity information.
      • hostAddress

        public final String hostAddress()

        The IP address or DNS address where client devices can connect to an MQTT broker on the Greengrass core device.

        Returns:
        The IP address or DNS address where client devices can connect to an MQTT broker on the Greengrass core device.
      • portNumber

        public final Integer portNumber()

        The port where the MQTT broker operates on the core device. This port is typically 8883, which is the default port for the MQTT broker component that runs on core devices.

        Returns:
        The port where the MQTT broker operates on the core device. This port is typically 8883, which is the default port for the MQTT broker component that runs on core devices.
      • metadata

        public final String metadata()

        Additional metadata to provide to client devices that connect to this core device.

        Returns:
        Additional metadata to provide to client devices that connect to this core device.
      • 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)