Class CustomLineItemTaxedPriceBuilder
java.lang.Object
com.commercetools.importapi.models.orders.CustomLineItemTaxedPriceBuilder
- All Implemented Interfaces:
Builder<CustomLineItemTaxedPrice>
public class CustomLineItemTaxedPriceBuilder
extends Object
implements Builder<CustomLineItemTaxedPrice>
CustomLineItemTaxedPriceBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomLineItemTaxedPrice customLineItemTaxedPrice = CustomLineItemTaxedPrice.builder()
.totalNet(totalNetBuilder -> totalNetBuilder)
.totalGross(totalGrossBuilder -> totalGrossBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CustomLineItemTaxedPrice with checking for non-null required valuesbuilds CustomLineItemTaxedPrice without checking for non-null required valuesvalue of totalGross}value of totalNet}of()
factory method for an instance of CustomLineItemTaxedPriceBuilderof
(CustomLineItemTaxedPrice template) create builder for CustomLineItemTaxedPrice instancetotalGross
(TypedMoney totalGross) set the value to the totalGrosstotalGross
(Function<TypedMoneyBuilder, Builder<? extends TypedMoney>> builder) set the value to the totalGross using the builder functiontotalNet
(TypedMoney totalNet) set the value to the totalNettotalNet
(Function<TypedMoneyBuilder, Builder<? extends TypedMoney>> builder) set the value to the totalNet using the builder function
-
Constructor Details
-
CustomLineItemTaxedPriceBuilder
public CustomLineItemTaxedPriceBuilder()
-
-
Method Details
-
totalNet
set the value to the totalNet- Parameters:
totalNet
- value to be set- Returns:
- Builder
-
totalNet
public CustomLineItemTaxedPriceBuilder totalNet(Function<TypedMoneyBuilder, Builder<? extends TypedMoney>> builder) set the value to the totalNet using the builder function- Parameters:
builder
- function to build the totalNet value- Returns:
- Builder
-
totalGross
set the value to the totalGross- Parameters:
totalGross
- value to be set- Returns:
- Builder
-
totalGross
public CustomLineItemTaxedPriceBuilder totalGross(Function<TypedMoneyBuilder, Builder<? extends TypedMoney>> builder) set the value to the totalGross using the builder function- Parameters:
builder
- function to build the totalGross value- Returns:
- Builder
-
getTotalNet
value of totalNet}- Returns:
- totalNet
-
getTotalGross
value of totalGross}- Returns:
- totalGross
-
build
builds CustomLineItemTaxedPrice with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomLineItemTaxedPrice>
- Returns:
- CustomLineItemTaxedPrice
-
buildUnchecked
builds CustomLineItemTaxedPrice without checking for non-null required values- Returns:
- CustomLineItemTaxedPrice
-
of
factory method for an instance of CustomLineItemTaxedPriceBuilder- Returns:
- builder
-
of
create builder for CustomLineItemTaxedPrice instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-