Modifier and Type | Method and Description |
---|---|
CartValue |
build()
Creates a new instance of
CartValue with the values of this builder. |
CartValueBuilder |
isMatching(Boolean matching)
Sets the
matching property of this builder. |
CartValueBuilder |
matching(Boolean matching)
Sets the
matching property of this builder. |
CartValueBuilder |
minimumCentAmount(Long minimumCentAmount)
Sets the
minimumCentAmount property of this builder. |
static CartValueBuilder |
of(CartValue template)
Creates a new object initialized with the fields of the template parameter.
|
static CartValueBuilder |
of(Long minimumCentAmount,
javax.money.MonetaryAmount price)
Creates a new object initialized with the given values.
|
CartValueBuilder |
price(javax.money.MonetaryAmount price)
Sets the
price property of this builder. |
CartValueBuilder |
type(String type)
Sets the
type property of this builder. |
public CartValueBuilder matching(@Nullable Boolean matching)
matching
property of this builder.matching
- the value for ShippingRatePriceTier.isMatching()
public CartValueBuilder isMatching(@Nullable Boolean matching)
matching
property of this builder.matching
- the value for ShippingRatePriceTier.isMatching()
public CartValueBuilder minimumCentAmount(Long minimumCentAmount)
minimumCentAmount
property of this builder.minimumCentAmount
- the value for CartValue.getMinimumCentAmount()
public CartValueBuilder price(javax.money.MonetaryAmount price)
price
property of this builder.price
- the value for ShippingRatePriceTier.getPrice()
public CartValueBuilder type(String type)
type
property of this builder.type
- the value for ShippingRatePriceTier.getType()
public CartValue build()
CartValue
with the values of this builder.public static CartValueBuilder of(Long minimumCentAmount, javax.money.MonetaryAmount price)
minimumCentAmount
- initial value for the CartValue.getMinimumCentAmount()
propertyprice
- initial value for the ShippingRatePriceTier.getPrice()
propertypublic static CartValueBuilder of(CartValue template)
template
- the template