Class StagedOrderSetShippingRateInputActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderSetShippingRateInputActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderSetShippingRateInputAction>
public class StagedOrderSetShippingRateInputActionBuilder
extends Object
implements Builder<StagedOrderSetShippingRateInputAction>
StagedOrderSetShippingRateInputActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderSetShippingRateInputAction stagedOrderSetShippingRateInputAction = StagedOrderSetShippingRateInputAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderSetShippingRateInputAction with checking for non-null required valuesbuilds StagedOrderSetShippingRateInputAction 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 StagedOrderSetShippingRateInputActionBuilderof
(StagedOrderSetShippingRateInputAction template) create builder for StagedOrderSetShippingRateInputAction 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
-
StagedOrderSetShippingRateInputActionBuilder
public StagedOrderSetShippingRateInputActionBuilder()
-
-
Method Details
-
shippingRateInput
public StagedOrderSetShippingRateInputActionBuilder 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 StagedOrderSetShippingRateInputActionBuilder 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 StagedOrderSetShippingRateInputAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedOrderSetShippingRateInputAction>
- Returns:
- StagedOrderSetShippingRateInputAction
-
buildUnchecked
builds StagedOrderSetShippingRateInputAction without checking for non-null required values- Returns:
- StagedOrderSetShippingRateInputAction
-
of
factory method for an instance of StagedOrderSetShippingRateInputActionBuilder- Returns:
- builder
-
of
public static StagedOrderSetShippingRateInputActionBuilder of(StagedOrderSetShippingRateInputAction template) create builder for StagedOrderSetShippingRateInputAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-