Class CartSetShippingRateInputActionBuilder

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

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

     CartSetShippingRateInputAction cartSetShippingRateInputAction = CartSetShippingRateInputAction.builder()
             .build()
 
  • Constructor Details

    • CartSetShippingRateInputActionBuilder

      public CartSetShippingRateInputActionBuilder()
  • Method Details

    • shippingRateInput

      public CartSetShippingRateInputActionBuilder shippingRateInput(@Nullable ShippingRateInputDraft shippingRateInput)

      The data type of this field depends on the shippingRateInputType.type configured in the Project:

      • If CartClassification, it must be ClassificationShippingRateInputDraft.
      • If CartScore, it must be ScoreShippingRateInputDraft.
      • If CartValue, it cannot be set.
      Parameters:
      shippingRateInput - value to be set
      Returns:
      Builder
    • shippingRateInput

      The data type of this field depends on the shippingRateInputType.type configured in the Project:

      • If CartClassification, it must be ClassificationShippingRateInputDraft.
      • If CartScore, it must be ScoreShippingRateInputDraft.
      • If CartValue, it cannot be set.
      Parameters:
      builder - function to build the shippingRateInput value
      Returns:
      Builder
    • getShippingRateInput

      @Nullable public ShippingRateInputDraft getShippingRateInput()

      The data type of this field depends on the shippingRateInputType.type configured in the Project:

      • If CartClassification, it must be ClassificationShippingRateInputDraft.
      • If CartScore, it must be ScoreShippingRateInputDraft.
      • If CartValue, it cannot be set.
      Returns:
      shippingRateInput
    • build

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

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

      factory method for an instance of CartSetShippingRateInputActionBuilder
      Returns:
      builder
    • of

      create builder for CartSetShippingRateInputAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder