Class ScoreShippingRateInputDraftBuilder
java.lang.Object
com.commercetools.api.models.cart.ScoreShippingRateInputDraftBuilder
- All Implemented Interfaces:
Builder<ScoreShippingRateInputDraft>
public class ScoreShippingRateInputDraftBuilder
extends Object
implements Builder<ScoreShippingRateInputDraft>
ScoreShippingRateInputDraftBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ScoreShippingRateInputDraft scoreShippingRateInputDraft = ScoreShippingRateInputDraft.builder()
.score(0.3)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ScoreShippingRateInputDraft with checking for non-null required valuesbuilds ScoreShippingRateInputDraft without checking for non-null required valuesgetScore()
Abstract value for categorizing a Cart.of()
factory method for an instance of ScoreShippingRateInputDraftBuilderof
(ScoreShippingRateInputDraft template) create builder for ScoreShippingRateInputDraft instanceAbstract value for categorizing a Cart.
-
Constructor Details
-
ScoreShippingRateInputDraftBuilder
public ScoreShippingRateInputDraftBuilder()
-
-
Method Details
-
score
Abstract value for categorizing a Cart.
- Parameters:
score
- value to be set- Returns:
- Builder
-
getScore
Abstract value for categorizing a Cart.
- Returns:
- score
-
build
builds ScoreShippingRateInputDraft with checking for non-null required values- Specified by:
build
in interfaceBuilder<ScoreShippingRateInputDraft>
- Returns:
- ScoreShippingRateInputDraft
-
buildUnchecked
builds ScoreShippingRateInputDraft without checking for non-null required values- Returns:
- ScoreShippingRateInputDraft
-
of
factory method for an instance of ScoreShippingRateInputDraftBuilder- Returns:
- builder
-
of
create builder for ScoreShippingRateInputDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-