Interface ItemShippingDetailsDraft

All Superinterfaces:
Draft<ItemShippingDetailsDraft>

public interface ItemShippingDetailsDraft extends Draft<ItemShippingDetailsDraft>
ItemShippingDetailsDraft
Example to create an instance using the builder pattern

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

    • getTargets

      @NotNull @Valid @NotNull @Valid List<ItemShippingTarget> getTargets()

      Maps to ItemShippingDetailsDraft.targets.

      Returns:
      targets
    • setTargets

      void setTargets(ItemShippingTarget... targets)

      Maps to ItemShippingDetailsDraft.targets.

      Parameters:
      targets - values to be set
    • setTargets

      void setTargets(List<ItemShippingTarget> targets)

      Maps to ItemShippingDetailsDraft.targets.

      Parameters:
      targets - values to be set
    • of

      factory method
      Returns:
      instance of ItemShippingDetailsDraft
    • of

      factory method to create a shallow copy ItemShippingDetailsDraft
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of ItemShippingDetailsDraft
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for ItemShippingDetailsDraft
      Returns:
      builder
    • builder

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

      default <T> T withItemShippingDetailsDraft(Function<ItemShippingDetailsDraft,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<ItemShippingDetailsDraft> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference