Class ShippingMethodSetCarrierActionBuilder
java.lang.Object
com.commercetools.api.models.shipping_method.ShippingMethodSetCarrierActionBuilder
- All Implemented Interfaces:
Builder<ShippingMethodSetCarrierAction>
public class ShippingMethodSetCarrierActionBuilder
extends Object
implements Builder<ShippingMethodSetCarrierAction>
ShippingMethodSetCarrierActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShippingMethodSetCarrierAction shippingMethodSetCarrierAction = ShippingMethodSetCarrierAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ShippingMethodSetCarrierAction with checking for non-null required valuesbuilds ShippingMethodSetCarrierAction without checking for non-null required valuesName of the carrier that delivers the parcel, for exampleDHL.Name of the carrier that delivers the parcel, for exampleDHL.of()factory method for an instance of ShippingMethodSetCarrierActionBuilderof(ShippingMethodSetCarrierAction template) create builder for ShippingMethodSetCarrierAction instance
-
Constructor Details
-
ShippingMethodSetCarrierActionBuilder
public ShippingMethodSetCarrierActionBuilder()
-
-
Method Details
-
carrier
Name of the carrier that delivers the parcel, for example
DHL. Ifcarrieris absent ornull, it is removed if it exists.- Parameters:
carrier- value to be set- Returns:
- Builder
-
getCarrier
Name of the carrier that delivers the parcel, for example
DHL. Ifcarrieris absent ornull, it is removed if it exists.- Returns:
- carrier
-
build
builds ShippingMethodSetCarrierAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<ShippingMethodSetCarrierAction>- Returns:
- ShippingMethodSetCarrierAction
-
buildUnchecked
builds ShippingMethodSetCarrierAction without checking for non-null required values- Returns:
- ShippingMethodSetCarrierAction
-
of
factory method for an instance of ShippingMethodSetCarrierActionBuilder- Returns:
- builder
-
of
create builder for ShippingMethodSetCarrierAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-