Class ShippingRatePriceTierBuilder
java.lang.Object
com.commercetools.history.models.common.ShippingRatePriceTierBuilder
- All Implemented Interfaces:
Builder<ShippingRatePriceTier>
ShippingRatePriceTierBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShippingRatePriceTier shippingRatePriceTier = ShippingRatePriceTier.builder()
.type(ShippingRateTierType.CART_VALUE)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ShippingRatePriceTier with checking for non-null required valuesbuilds ShippingRatePriceTier without checking for non-null required valuesgetType()
value of type}static ShippingRatePriceTierBuilder
of()
factory method for an instance of ShippingRatePriceTierBuilderstatic ShippingRatePriceTierBuilder
of
(ShippingRatePriceTier template) create builder for ShippingRatePriceTier instancetype
(ShippingRateTierType type) set the value to the type
-
Constructor Details
-
ShippingRatePriceTierBuilder
public ShippingRatePriceTierBuilder()
-
-
Method Details
-
type
set the value to the type- Parameters:
type
- value to be set- Returns:
- Builder
-
getType
value of type}- Returns:
- type
-
build
builds ShippingRatePriceTier with checking for non-null required values- Specified by:
build
in interfaceBuilder<ShippingRatePriceTier>
- Returns:
- ShippingRatePriceTier
-
buildUnchecked
builds ShippingRatePriceTier without checking for non-null required values- Returns:
- ShippingRatePriceTier
-
of
factory method for an instance of ShippingRatePriceTierBuilder- Returns:
- builder
-
of
create builder for ShippingRatePriceTier instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-