Class DigitalTwinAdapterInboundRoute


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20250531")
    public final class DigitalTwinAdapterInboundRoute
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    Defines how inbound device payloads should be routed and mapped within a digital twin context.

    Routes are evaluated in the order they are defined, and only the first matching condition is processed. A final default route (with a condition that always evaluates to true) is recommended for fallback handling.
    Note: Objects should always be created or deserialized using the DigitalTwinAdapterInboundRoute.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the DigitalTwinAdapterInboundRoute.Builder, which maintain a set of all explicitly set fields called DigitalTwinAdapterInboundRoute.Builder.__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).

    • Method Detail

      • getCondition

        public String getCondition()
        A boolean expression used to determine whether the following transformation should be processed for the incoming payload.

        This expression is typically based on fields defined at the inbound Envelope and is evaluated before applying the payloadMapping.

        Returns:
        the value
      • getPayloadMapping

        public Map<String,​String> getPayloadMapping()
        A set of key-value JQ expressions used to transform the incoming payload into a shape compatible with the digital twin model’s context or schema.

        The keys are target fields (in the digital twin model), and values are JQ expressions pointing to data in the reference payload.

        Example: Given payload: { "time": "", "temp": 65, "hum": 55 } And mapping: { "temperature": "$.temp", "humidity": "$.hum", "timeObserved": "$.time" } The output will be: { "temperature": 65, "humidity": 55, "timeObserved": "" }

        Returns:
        the value
      • getDescription

        public String getDescription()
        Meaningful write up about the inbound route.
        Returns:
        the value
      • toString

        public String toString()
        Overrides:
        toString in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • toString

        public String toString​(boolean includeByteArrayContents)
        Return a string representation of the object.
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel