Package com.oracle.bmc.iot.model
Class DigitalTwinAdapterEnvelopeMapping.Builder
- java.lang.Object
-
- com.oracle.bmc.iot.model.DigitalTwinAdapterEnvelopeMapping.Builder
-
- Enclosing class:
- DigitalTwinAdapterEnvelopeMapping
public static class DigitalTwinAdapterEnvelopeMapping.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DigitalTwinAdapterEnvelopeMappingbuild()DigitalTwinAdapterEnvelopeMapping.BuildercontentRoot(String contentRoot)JSON Path string to override the context root before delegating to the adapter of the target digital twin instance.DigitalTwinAdapterEnvelopeMapping.Buildercopy(DigitalTwinAdapterEnvelopeMapping model)DigitalTwinAdapterEnvelopeMapping.Buildertarget(String target)Optional.DigitalTwinAdapterEnvelopeMapping.BuildertimeObserved(String timeObserved)JQ expression to extract the observation timestamp from the payload.
-
-
-
Method Detail
-
timeObserved
public DigitalTwinAdapterEnvelopeMapping.Builder timeObserved(String timeObserved)
JQ expression to extract the observation timestamp from the payload.If not specified, the system will default to using timeReceived as the timestamp.
Example: For payload {"time": "
","temp": 65,"hum": 55} 'timeObserved' can be mapped as [JQ Expression](https://jqplay.org/) $.time. - Parameters:
timeObserved- the value to set- Returns:
- this builder
-
target
public DigitalTwinAdapterEnvelopeMapping.Builder target(String target)
Optional.JQ expression to map the target resource, which is externalKey of digital twin instance, the incoming data belongs to.
- Parameters:
target- the value to set- Returns:
- this builder
-
contentRoot
public DigitalTwinAdapterEnvelopeMapping.Builder contentRoot(String contentRoot)
JSON Path string to override the context root before delegating to the adapter of the target digital twin instance.- Parameters:
contentRoot- the value to set- Returns:
- this builder
-
build
public DigitalTwinAdapterEnvelopeMapping build()
-
copy
public DigitalTwinAdapterEnvelopeMapping.Builder copy(DigitalTwinAdapterEnvelopeMapping model)
-
-