Class OrderUpdateSyncInfoActionBuilder

java.lang.Object
com.commercetools.api.models.order.OrderUpdateSyncInfoActionBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<OrderUpdateSyncInfoAction>

public class OrderUpdateSyncInfoActionBuilder extends Object implements io.vrap.rmf.base.client.Builder<OrderUpdateSyncInfoAction>
OrderUpdateSyncInfoActionBuilder
Example to create an instance using the builder pattern

     OrderUpdateSyncInfoAction orderUpdateSyncInfoAction = OrderUpdateSyncInfoAction.builder()
             .channel(channelBuilder -> channelBuilder)
             .build()
 
  • Constructor Details

    • OrderUpdateSyncInfoActionBuilder

      public OrderUpdateSyncInfoActionBuilder()
  • Method Details

    • externalId

      public OrderUpdateSyncInfoActionBuilder externalId(@Nullable String externalId)

      Set this to identify an external order instance, file, or other resource.

      Parameters:
      externalId - value to be set
      Returns:
      Builder
    • channel

      The synchronization destination to set. Must not be empty. The referenced Channel must have the Channel Role OrderExport or OrderImport. Otherwise this update action returns an InvalidInput error.

      Parameters:
      builder - function to build the channel value
      Returns:
      Builder
    • withChannel

      The synchronization destination to set. Must not be empty. The referenced Channel must have the Channel Role OrderExport or OrderImport. Otherwise this update action returns an InvalidInput error.

      Parameters:
      builder - function to build the channel value
      Returns:
      Builder
    • channel

      The synchronization destination to set. Must not be empty. The referenced Channel must have the Channel Role OrderExport or OrderImport. Otherwise this update action returns an InvalidInput error.

      Parameters:
      channel - value to be set
      Returns:
      Builder
    • syncedAt

      If not set, it defaults to the current date and time.

      Parameters:
      syncedAt - value to be set
      Returns:
      Builder
    • getExternalId

      @Nullable public String getExternalId()

      Set this to identify an external order instance, file, or other resource.

      Returns:
      externalId
    • getChannel

      public ChannelResourceIdentifier getChannel()

      The synchronization destination to set. Must not be empty. The referenced Channel must have the Channel Role OrderExport or OrderImport. Otherwise this update action returns an InvalidInput error.

      Returns:
      channel
    • getSyncedAt

      @Nullable public ZonedDateTime getSyncedAt()

      If not set, it defaults to the current date and time.

      Returns:
      syncedAt
    • build

      public OrderUpdateSyncInfoAction build()
      builds OrderUpdateSyncInfoAction with checking for non-null required values
      Specified by:
      build in interface io.vrap.rmf.base.client.Builder<OrderUpdateSyncInfoAction>
      Returns:
      OrderUpdateSyncInfoAction
    • buildUnchecked

      public OrderUpdateSyncInfoAction buildUnchecked()
      builds OrderUpdateSyncInfoAction without checking for non-null required values
      Returns:
      OrderUpdateSyncInfoAction
    • of

      factory method for an instance of OrderUpdateSyncInfoActionBuilder
      Returns:
      builder
    • of

      create builder for OrderUpdateSyncInfoAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder