Class OrderEditApplyBuilder
java.lang.Object
com.commercetools.api.models.order_edit.OrderEditApplyBuilder
- All Implemented Interfaces:
Builder<OrderEditApply>
OrderEditApplyBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderEditApply orderEditApply = OrderEditApply.builder()
.editVersion(0.3)
.resourceVersion(0.3)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderEditApply with checking for non-null required valuesbuilds OrderEditApply without checking for non-null required valueseditVersion
(Long editVersion) Currentversion
of the OrderEdit to be applied.Currentversion
of the OrderEdit to be applied.Currentversion
of the Order to which the OrderEdit is applied.static OrderEditApplyBuilder
of()
factory method for an instance of OrderEditApplyBuilderstatic OrderEditApplyBuilder
of
(OrderEditApply template) create builder for OrderEditApply instanceresourceVersion
(Long resourceVersion) Currentversion
of the Order to which the OrderEdit is applied.
-
Constructor Details
-
OrderEditApplyBuilder
public OrderEditApplyBuilder()
-
-
Method Details
-
editVersion
Current
version
of the OrderEdit to be applied.- Parameters:
editVersion
- value to be set- Returns:
- Builder
-
resourceVersion
Current
version
of the Order to which the OrderEdit is applied.- Parameters:
resourceVersion
- value to be set- Returns:
- Builder
-
getEditVersion
Current
version
of the OrderEdit to be applied.- Returns:
- editVersion
-
getResourceVersion
Current
version
of the Order to which the OrderEdit is applied.- Returns:
- resourceVersion
-
build
builds OrderEditApply with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderEditApply>
- Returns:
- OrderEditApply
-
buildUnchecked
builds OrderEditApply without checking for non-null required values- Returns:
- OrderEditApply
-
of
factory method for an instance of OrderEditApplyBuilder- Returns:
- builder
-
of
create builder for OrderEditApply instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-