Class StagedOrderRemoveParcelFromDeliveryActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderRemoveParcelFromDeliveryActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderRemoveParcelFromDeliveryAction>
public class StagedOrderRemoveParcelFromDeliveryActionBuilder
extends Object
implements Builder<StagedOrderRemoveParcelFromDeliveryAction>
StagedOrderRemoveParcelFromDeliveryActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderRemoveParcelFromDeliveryAction stagedOrderRemoveParcelFromDeliveryAction = StagedOrderRemoveParcelFromDeliveryAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderRemoveParcelFromDeliveryAction with checking for non-null required valuesbuilds StagedOrderRemoveParcelFromDeliveryAction without checking for non-null required valuesid
of an existing Parcel.key
of an existing Parcel.of()
factory method for an instance of StagedOrderRemoveParcelFromDeliveryActionBuilderof
(StagedOrderRemoveParcelFromDeliveryAction template) create builder for StagedOrderRemoveParcelFromDeliveryAction instanceid
of an existing Parcel.key
of an existing Parcel.
-
Constructor Details
-
StagedOrderRemoveParcelFromDeliveryActionBuilder
public StagedOrderRemoveParcelFromDeliveryActionBuilder()
-
-
Method Details
-
parcelId
id
of an existing Parcel.Either
parcelId
orparcelKey
must be provided.- Parameters:
parcelId
- value to be set- Returns:
- Builder
-
parcelKey
key
of an existing Parcel.Either
parcelId
orparcelKey
must be provided.- Parameters:
parcelKey
- value to be set- Returns:
- Builder
-
getParcelId
id
of an existing Parcel.Either
parcelId
orparcelKey
must be provided.- Returns:
- parcelId
-
getParcelKey
key
of an existing Parcel.Either
parcelId
orparcelKey
must be provided.- Returns:
- parcelKey
-
build
builds StagedOrderRemoveParcelFromDeliveryAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedOrderRemoveParcelFromDeliveryAction>
- Returns:
- StagedOrderRemoveParcelFromDeliveryAction
-
buildUnchecked
builds StagedOrderRemoveParcelFromDeliveryAction without checking for non-null required values- Returns:
- StagedOrderRemoveParcelFromDeliveryAction
-
of
factory method for an instance of StagedOrderRemoveParcelFromDeliveryActionBuilder- Returns:
- builder
-
of
public static StagedOrderRemoveParcelFromDeliveryActionBuilder of(StagedOrderRemoveParcelFromDeliveryAction template) create builder for StagedOrderRemoveParcelFromDeliveryAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-