Class ItemShippingDetailsDraftBuilder

java.lang.Object
com.commercetools.api.models.cart.ItemShippingDetailsDraftBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<ItemShippingDetailsDraft>

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

     ItemShippingDetailsDraft itemShippingDetailsDraft = ItemShippingDetailsDraft.builder()
             .plusTargets(targetsBuilder -> targetsBuilder)
             .build()
 
  • Constructor Details

    • ItemShippingDetailsDraftBuilder

      public ItemShippingDetailsDraftBuilder()
  • Method Details

    • targets

      Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.

      If multiple shipping addresses are present for a Line Item or Custom Line Item, sub-quantities must be specified.

      Parameters:
      targets - value to be set
      Returns:
      Builder
    • targets

      Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.

      If multiple shipping addresses are present for a Line Item or Custom Line Item, sub-quantities must be specified.

      Parameters:
      targets - value to be set
      Returns:
      Builder
    • plusTargets

      public ItemShippingDetailsDraftBuilder plusTargets(ItemShippingTarget... targets)

      Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.

      If multiple shipping addresses are present for a Line Item or Custom Line Item, sub-quantities must be specified.

      Parameters:
      targets - value to be set
      Returns:
      Builder
    • plusTargets

      Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.

      If multiple shipping addresses are present for a Line Item or Custom Line Item, sub-quantities must be specified.

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

      Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.

      If multiple shipping addresses are present for a Line Item or Custom Line Item, sub-quantities must be specified.

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

      Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.

      If multiple shipping addresses are present for a Line Item or Custom Line Item, sub-quantities must be specified.

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

      Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.

      If multiple shipping addresses are present for a Line Item or Custom Line Item, sub-quantities must be specified.

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

      public List<ItemShippingTarget> getTargets()

      Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.

      If multiple shipping addresses are present for a Line Item or Custom Line Item, sub-quantities must be specified.

      Returns:
      targets
    • build

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

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

      public static ItemShippingDetailsDraftBuilder of()
      factory method for an instance of ItemShippingDetailsDraftBuilder
      Returns:
      builder
    • of

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