Class ScoreShippingRateInputBuilder
java.lang.Object
com.commercetools.importapi.models.orders.ScoreShippingRateInputBuilder
- All Implemented Interfaces:
Builder<ScoreShippingRateInput>
public class ScoreShippingRateInputBuilder
extends Object
implements Builder<ScoreShippingRateInput>
ScoreShippingRateInputBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ScoreShippingRateInput scoreShippingRateInput = ScoreShippingRateInput.builder()
.score(0.3)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ScoreShippingRateInput with checking for non-null required valuesbuilds ScoreShippingRateInput without checking for non-null required valuesgetScore()
value of score}of()
factory method for an instance of ScoreShippingRateInputBuilderof
(ScoreShippingRateInput template) create builder for ScoreShippingRateInput instanceset the value to the score
-
Constructor Details
-
ScoreShippingRateInputBuilder
public ScoreShippingRateInputBuilder()
-
-
Method Details
-
score
set the value to the score- Parameters:
score
- value to be set- Returns:
- Builder
-
getScore
value of score}- Returns:
- score
-
build
builds ScoreShippingRateInput with checking for non-null required values- Specified by:
build
in interfaceBuilder<ScoreShippingRateInput>
- Returns:
- ScoreShippingRateInput
-
buildUnchecked
builds ScoreShippingRateInput without checking for non-null required values- Returns:
- ScoreShippingRateInput
-
of
factory method for an instance of ScoreShippingRateInputBuilder- Returns:
- builder
-
of
create builder for ScoreShippingRateInput instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-