Class ScoreShippingRateInputBuilder

java.lang.Object
com.commercetools.api.models.cart.ScoreShippingRateInputBuilder
All Implemented Interfaces:
Builder<ScoreShippingRateInput>

public class ScoreShippingRateInputBuilder extends Object implements Builder<ScoreShippingRateInput>
ScoreShippingRateInputBuilder
Example to create an instance using the builder pattern

     ScoreShippingRateInput scoreShippingRateInput = ScoreShippingRateInput.builder()
             .score(0.3)
             .build()
 
  • Constructor Details

    • ScoreShippingRateInputBuilder

      public ScoreShippingRateInputBuilder()
  • Method Details

    • score

      public ScoreShippingRateInputBuilder score(Long score)

      Abstract value for categorizing a Cart.

      Parameters:
      score - value to be set
      Returns:
      Builder
    • getScore

      public Long getScore()

      Abstract value for categorizing a Cart.

      Returns:
      score
    • build

      public ScoreShippingRateInput build()
      builds ScoreShippingRateInput with checking for non-null required values
      Specified by:
      build in interface Builder<ScoreShippingRateInput>
      Returns:
      ScoreShippingRateInput
    • buildUnchecked

      public ScoreShippingRateInput buildUnchecked()
      builds ScoreShippingRateInput without checking for non-null required values
      Returns:
      ScoreShippingRateInput
    • of

      public static ScoreShippingRateInputBuilder 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