Class StitchMessage.Builder

java.lang.Object
org.apache.camel.component.stitch.client.models.StitchMessage.Builder
Enclosing class:
StitchMessage

public static final class StitchMessage.Builder extends Object
  • Method Details

    • withAction

      public StitchMessage.Builder withAction(StitchMessage.Action action)
      This will always be upsert. Default: upsert
      Parameters:
      action -
    • withSequence

      public StitchMessage.Builder withSequence(long sequence)
      An integer that tells the Import API the order in which data points in the request body should be considered for loading. This data will be stored in the destination table in the _sdc_sequence column. In other Stitch integrations, Stitch uses a Unix epoch (in milliseconds) as the value for this property. Note: This value cannot exceed the maximum of 9223372036854775807. Default: System.currentTimeMillis();
      Parameters:
      sequence -
    • withData

      public StitchMessage.Builder withData(Map<String,Object> data)
      The record to be upserted into a table. The record data must conform to the JSON schema contained in the request’s Schema object.
      Parameters:
      data -
    • withData

      public StitchMessage.Builder withData(String key, Object data)
    • build

      public StitchMessage build()