Interface DeliveryAddressDraft

All Superinterfaces:
Draft<DeliveryAddressDraft>

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

     DeliveryAddressDraft deliveryAddressDraft = DeliveryAddressDraft.builder()
             .deliveryId("{deliveryId}")
             .build()
 
  • Method Details

    • getDeliveryId

      @NotNull @NotNull String getDeliveryId()
      Returns:
      deliveryId
    • getAddress

      @Valid @Valid Address getAddress()
      Returns:
      address
    • setDeliveryId

      void setDeliveryId(String deliveryId)
      set deliveryId
      Parameters:
      deliveryId - value to be set
    • setAddress

      void setAddress(Address address)
      set address
      Parameters:
      address - value to be set
    • of

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

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

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

      static DeliveryAddressDraftBuilder builder()
      builder factory method for DeliveryAddressDraft
      Returns:
      builder
    • builder

      create builder for DeliveryAddressDraft instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withDeliveryAddressDraft

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