Interface SyncInfo


public interface SyncInfo
SyncInfo
Example to create an instance using the builder pattern

     SyncInfo syncInfo = SyncInfo.builder()
             .channel(channelBuilder -> channelBuilder)
             .externalId("{externalId}")
             .syncedAt("{syncedAt}")
             .build()
 
  • Method Details

    • getChannel

      @NotNull @Valid @NotNull @Valid Reference getChannel()
      Returns:
      channel
    • getExternalId

      @NotNull @NotNull String getExternalId()

      Can be used to reference an external order instance, file etc.

      Returns:
      externalId
    • getSyncedAt

      @NotNull @NotNull String getSyncedAt()
      Returns:
      syncedAt
    • setChannel

      void setChannel(Reference channel)
      set channel
      Parameters:
      channel - value to be set
    • setExternalId

      void setExternalId(String externalId)

      Can be used to reference an external order instance, file etc.

      Parameters:
      externalId - value to be set
    • setSyncedAt

      void setSyncedAt(String syncedAt)
      set syncedAt
      Parameters:
      syncedAt - value to be set
    • of

      static SyncInfo of()
      factory method
      Returns:
      instance of SyncInfo
    • of

      static SyncInfo of(SyncInfo template)
      factory method to create a shallow copy SyncInfo
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      @Nullable static SyncInfo deepCopy(@Nullable SyncInfo template)
      factory method to create a deep copy of SyncInfo
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static SyncInfoBuilder builder()
      builder factory method for SyncInfo
      Returns:
      builder
    • builder

      static SyncInfoBuilder builder(SyncInfo template)
      create builder for SyncInfo instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withSyncInfo

      default <T> T withSyncInfo(Function<SyncInfo,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<SyncInfo> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference