Class DigitalTwinAdapterInboundRoute
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.iot.model.DigitalTwinAdapterInboundRoute
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20250531") public final class DigitalTwinAdapterInboundRoute extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelDefines 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 theDigitalTwinAdapterInboundRoute.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 theDigitalTwinAdapterInboundRoute.Builder, which maintain a set of all explicitly set fields calledDigitalTwinAdapterInboundRoute.Builder.__explicitlySet__. ThehashCode()andequals(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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDigitalTwinAdapterInboundRoute.Builder
-
Constructor Summary
Constructors Constructor Description DigitalTwinAdapterInboundRoute(String condition, DigitalTwinAdapterPayload referencePayload, Map<String,String> payloadMapping, String description)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DigitalTwinAdapterInboundRoute.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetCondition()A boolean expression used to determine whether the following transformation should be processed for the incoming payload.StringgetDescription()Meaningful write up about the inbound route.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.DigitalTwinAdapterPayloadgetReferencePayload()inthashCode()DigitalTwinAdapterInboundRoute.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
DigitalTwinAdapterInboundRoute
@Deprecated @ConstructorProperties({"condition","referencePayload","payloadMapping","description"}) public DigitalTwinAdapterInboundRoute(String condition, DigitalTwinAdapterPayload referencePayload, Map<String,String> payloadMapping, String description)
Deprecated.
-
-
Method Detail
-
builder
public static DigitalTwinAdapterInboundRoute.Builder builder()
Create a new builder.
-
toBuilder
public DigitalTwinAdapterInboundRoute.Builder toBuilder()
-
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
-
getReferencePayload
public DigitalTwinAdapterPayload getReferencePayload()
-
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:
toStringin classcom.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:
equalsin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-