@Generated(value="io.sphere.sdk.annotations.processors.generators.HasBuilderGenerator", comments="Generated from: io.sphere.sdk.shippingmethods.CartClassification") public final class CartClassificationBuilder extends Base implements Builder<CartClassification>
CartClassification
.Modifier and Type | Method and Description |
---|---|
CartClassification |
build()
Creates a new instance of
CartClassification with the values of this builder. |
CartClassificationBuilder |
isMatching(Boolean matching)
Sets the
matching property of this builder. |
CartClassificationBuilder |
matching(Boolean matching)
Sets the
matching property of this builder. |
static CartClassificationBuilder |
of(CartClassification template)
Creates a new object initialized with the fields of the template parameter.
|
static CartClassificationBuilder |
of(String value,
javax.money.MonetaryAmount price)
Creates a new object initialized with the given values.
|
CartClassificationBuilder |
price(javax.money.MonetaryAmount price)
Sets the
price property of this builder. |
CartClassificationBuilder |
type(String type)
Sets the
type property of this builder. |
CartClassificationBuilder |
value(String value)
Sets the
value property of this builder. |
public CartClassificationBuilder matching(@Nullable Boolean matching)
matching
property of this builder.matching
- the value for ShippingRatePriceTier.isMatching()
public CartClassificationBuilder isMatching(@Nullable Boolean matching)
matching
property of this builder.matching
- the value for ShippingRatePriceTier.isMatching()
public CartClassificationBuilder price(javax.money.MonetaryAmount price)
price
property of this builder.price
- the value for ShippingRatePriceTier.getPrice()
public CartClassificationBuilder type(String type)
type
property of this builder.type
- the value for ShippingRatePriceTier.getType()
public CartClassificationBuilder value(String value)
value
property of this builder.value
- the value for CartClassification.getValue()
public CartClassification build()
CartClassification
with the values of this builder.build
in interface Builder<CartClassification>
public static CartClassificationBuilder of(String value, javax.money.MonetaryAmount price)
value
- initial value for the CartClassification.getValue()
propertyprice
- initial value for the ShippingRatePriceTier.getPrice()
propertypublic static CartClassificationBuilder of(CartClassification template)
template
- the template