Interface DeliveryAddressDraft
- All Superinterfaces:
Draft<DeliveryAddressDraft>
DeliveryAddressDraft
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
DeliveryAddressDraft deliveryAddressDraft = DeliveryAddressDraft.builder()
.deliveryId("{deliveryId}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic DeliveryAddressDraftBuilder
builder()
builder factory method for DeliveryAddressDraftstatic DeliveryAddressDraftBuilder
builder
(DeliveryAddressDraft template) create builder for DeliveryAddressDraft instancestatic DeliveryAddressDraft
deepCopy
(DeliveryAddressDraft template) factory method to create a deep copy of DeliveryAddressDraft@Valid Address
@NotNull String
static DeliveryAddressDraft
of()
factory methodstatic DeliveryAddressDraft
of
(DeliveryAddressDraft template) factory method to create a shallow copy DeliveryAddressDraftvoid
setAddress
(Address address) set addressvoid
setDeliveryId
(String deliveryId) set deliveryIdstatic com.fasterxml.jackson.core.type.TypeReference<DeliveryAddressDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withDeliveryAddressDraft
(Function<DeliveryAddressDraft, T> helper) accessor map function
-
Method Details
-
getDeliveryId
- Returns:
- deliveryId
-
getAddress
- Returns:
- address
-
setDeliveryId
set deliveryId- Parameters:
deliveryId
- value to be set
-
setAddress
set address- Parameters:
address
- value to be set
-
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
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
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
-