Interface SyncInfo


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

     SyncInfo syncInfo = SyncInfo.builder()
             .channel(channelBuilder -> channelBuilder)
             .syncedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
             .build()
 
  • Method Details

    • getChannel

      @NotNull @Valid @NotNull @Valid ChannelKeyReference getChannel()

      Maps to SyncInfo.channel. If the referenced Channel does not exist, the state of the ImportOperation will be set to unresolved until the referenced Channel is created.

      Returns:
      channel
    • getExternalId

      String getExternalId()

      Maps to SyncInfo.externalId

      Returns:
      externalId
    • getSyncedAt

      @NotNull @NotNull ZonedDateTime getSyncedAt()

      Maps to SyncInfo.syncedAt

      Returns:
      syncedAt
    • setChannel

      void setChannel(ChannelKeyReference channel)

      Maps to SyncInfo.channel. If the referenced Channel does not exist, the state of the ImportOperation will be set to unresolved until the referenced Channel is created.

      Parameters:
      channel - value to be set
    • setExternalId

      void setExternalId(String externalId)

      Maps to SyncInfo.externalId

      Parameters:
      externalId - value to be set
    • setSyncedAt

      void setSyncedAt(ZonedDateTime syncedAt)

      Maps to SyncInfo.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
    • copyDeep

      SyncInfo copyDeep()
    • 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