Interface DeliveryChangeValue
public interface DeliveryChangeValue
DeliveryChangeValue
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DeliveryChangeValue deliveryChangeValue = DeliveryChangeValue.builder()
.plusItems(itemsBuilder -> itemsBuilder)
.address(addressBuilder -> addressBuilder)
.plusParcels(parcelsBuilder -> parcelsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic DeliveryChangeValueBuilder
builder()
builder factory method for DeliveryChangeValuestatic DeliveryChangeValueBuilder
builder
(DeliveryChangeValue template) create builder for DeliveryChangeValue instancestatic DeliveryChangeValue
deepCopy
(DeliveryChangeValue template) factory method to create a deep copy of DeliveryChangeValue@NotNull @Valid Address
Address to which the parcels are delivered.@NotNull @Valid List<DeliveryItem>
getItems()
Line Items or Custom Line Items shipped in the Delivery.Parcels included in the Delivery.static DeliveryChangeValue
of()
factory methodstatic DeliveryChangeValue
of
(DeliveryChangeValue template) factory method to create a shallow copy DeliveryChangeValuevoid
setAddress
(Address address) Address to which the parcels are delivered.void
setItems
(DeliveryItem... items) Line Items or Custom Line Items shipped in the Delivery.void
setItems
(List<DeliveryItem> items) Line Items or Custom Line Items shipped in the Delivery.void
setParcels
(Parcel... parcels) Parcels included in the Delivery.void
setParcels
(List<Parcel> parcels) Parcels included in the Delivery.static com.fasterxml.jackson.core.type.TypeReference<DeliveryChangeValue>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withDeliveryChangeValue
(Function<DeliveryChangeValue, T> helper) accessor map function
-
Method Details
-
getItems
Line Items or Custom Line Items shipped in the Delivery.
- Returns:
- items
-
getAddress
Address to which the parcels are delivered.
- Returns:
- address
-
getParcels
Parcels included in the Delivery.
- Returns:
- parcels
-
setItems
Line Items or Custom Line Items shipped in the Delivery.
- Parameters:
items
- values to be set
-
setItems
Line Items or Custom Line Items shipped in the Delivery.
- Parameters:
items
- values to be set
-
setAddress
Address to which the parcels are delivered.
- Parameters:
address
- value to be set
-
setParcels
Parcels included in the Delivery.
- Parameters:
parcels
- values to be set
-
setParcels
Parcels included in the Delivery.
- Parameters:
parcels
- values to be set
-
of
factory method- Returns:
- instance of DeliveryChangeValue
-
of
factory method to create a shallow copy DeliveryChangeValue- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of DeliveryChangeValue- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DeliveryChangeValue- Returns:
- builder
-
builder
create builder for DeliveryChangeValue instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withDeliveryChangeValue
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-