Class SetCartScoreShippingRateInputValueBuilder
java.lang.Object
com.commercetools.history.models.change_value.SetCartScoreShippingRateInputValueBuilder
- All Implemented Interfaces:
Builder<SetCartScoreShippingRateInputValue>
public class SetCartScoreShippingRateInputValueBuilder
extends Object
implements Builder<SetCartScoreShippingRateInputValue>
SetCartScoreShippingRateInputValueBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SetCartScoreShippingRateInputValue setCartScoreShippingRateInputValue = SetCartScoreShippingRateInputValue.builder()
.type("{type}")
.score(1)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds SetCartScoreShippingRateInputValue with checking for non-null required valuesbuilds SetCartScoreShippingRateInputValue without checking for non-null required valuesgetScore()
Abstract value for categorizing a Cart.getType()
value of type}of()
factory method for an instance of SetCartScoreShippingRateInputValueBuilderof
(SetCartScoreShippingRateInputValue template) create builder for SetCartScoreShippingRateInputValue instanceAbstract value for categorizing a Cart.set the value to the type
-
Constructor Details
-
SetCartScoreShippingRateInputValueBuilder
public SetCartScoreShippingRateInputValueBuilder()
-
-
Method Details
-
type
set the value to the type- Parameters:
type
- value to be set- Returns:
- Builder
-
score
Abstract value for categorizing a Cart.
- Parameters:
score
- value to be set- Returns:
- Builder
-
getType
value of type}- Returns:
- type
-
getScore
Abstract value for categorizing a Cart.
- Returns:
- score
-
build
builds SetCartScoreShippingRateInputValue with checking for non-null required values- Specified by:
build
in interfaceBuilder<SetCartScoreShippingRateInputValue>
- Returns:
- SetCartScoreShippingRateInputValue
-
buildUnchecked
builds SetCartScoreShippingRateInputValue without checking for non-null required values- Returns:
- SetCartScoreShippingRateInputValue
-
of
factory method for an instance of SetCartScoreShippingRateInputValueBuilder- Returns:
- builder
-
of
public static SetCartScoreShippingRateInputValueBuilder of(SetCartScoreShippingRateInputValue template) create builder for SetCartScoreShippingRateInputValue instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-