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
Example to create an instance using the builder pattern
CartSetShippingRateInputAction cartSetShippingRateInputAction = CartSetShippingRateInputAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CartSetShippingRateInputAction with checking for non-null required valuesbuilds CartSetShippingRateInputAction without checking for non-null required valuesThe data type of this field depends on theshippingRateInputType.type
configured in the Project:of()
factory method for an instance of CartSetShippingRateInputActionBuilderof
(CartSetShippingRateInputAction template) create builder for CartSetShippingRateInputAction instanceshippingRateInput
(ShippingRateInputDraft shippingRateInput) The data type of this field depends on theshippingRateInputType.type
configured in the Project:shippingRateInput
(Function<ShippingRateInputDraftBuilder, Builder<? extends ShippingRateInputDraft>> builder) The data type of this field depends on theshippingRateInputType.type
configured in the Project:
-
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
- If
-
shippingRateInput
public CartSetShippingRateInputActionBuilder shippingRateInput(Function<ShippingRateInputDraftBuilder, Builder<? extends ShippingRateInputDraft>> builder) 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
- If
-
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
- If
-
build
builds CartSetShippingRateInputAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CartSetShippingRateInputAction>
- Returns:
- 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
-