Class DeliveryAddressDraftBuilder
java.lang.Object
com.commercetools.importapi.models.order_patches.DeliveryAddressDraftBuilder
- All Implemented Interfaces:
Builder<DeliveryAddressDraft>
DeliveryAddressDraftBuilder
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()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionset the value to the addressaddress
(Function<AddressBuilder, AddressBuilder> builder) set the value to the address using the builder functionbuild()
builds DeliveryAddressDraft with checking for non-null required valuesbuilds DeliveryAddressDraft without checking for non-null required valuesdeliveryId
(String deliveryId) set the value to the deliveryIdvalue of address}value of deliveryId}static DeliveryAddressDraftBuilder
of()
factory method for an instance of DeliveryAddressDraftBuilderstatic DeliveryAddressDraftBuilder
of
(DeliveryAddressDraft template) create builder for DeliveryAddressDraft instancewithAddress
(Function<AddressBuilder, Address> builder) set the value to the address using the builder function
-
Constructor Details
-
DeliveryAddressDraftBuilder
public DeliveryAddressDraftBuilder()
-
-
Method Details
-
deliveryId
set the value to the deliveryId- Parameters:
deliveryId
- value to be set- Returns:
- Builder
-
address
set the value to the address using the builder function- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
withAddress
set the value to the address using the builder function- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
address
set the value to the address- Parameters:
address
- value to be set- Returns:
- Builder
-
getDeliveryId
value of deliveryId}- Returns:
- deliveryId
-
getAddress
value of address}- Returns:
- address
-
build
builds DeliveryAddressDraft with checking for non-null required values- Specified by:
build
in interfaceBuilder<DeliveryAddressDraft>
- Returns:
- DeliveryAddressDraft
-
buildUnchecked
builds DeliveryAddressDraft without checking for non-null required values- Returns:
- DeliveryAddressDraft
-
of
factory method for an instance of DeliveryAddressDraftBuilder- Returns:
- builder
-
of
create builder for DeliveryAddressDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-