Class ShippingMethodChangeActiveActionBuilder
java.lang.Object
com.commercetools.api.models.shipping_method.ShippingMethodChangeActiveActionBuilder
- All Implemented Interfaces:
Builder<ShippingMethodChangeActiveAction>
public class ShippingMethodChangeActiveActionBuilder
extends Object
implements Builder<ShippingMethodChangeActiveAction>
ShippingMethodChangeActiveActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShippingMethodChangeActiveAction shippingMethodChangeActiveAction = ShippingMethodChangeActiveAction.builder()
.active(true)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionValue to set.build()
builds ShippingMethodChangeActiveAction with checking for non-null required valuesbuilds ShippingMethodChangeActiveAction without checking for non-null required valuesValue to set.of()
factory method for an instance of ShippingMethodChangeActiveActionBuilderof
(ShippingMethodChangeActiveAction template) create builder for ShippingMethodChangeActiveAction instance
-
Constructor Details
-
ShippingMethodChangeActiveActionBuilder
public ShippingMethodChangeActiveActionBuilder()
-
-
Method Details
-
active
Value to set.
If set to
false
, the ShippingMethod cannot be used during the creation or update of a Cart or Order.- Parameters:
active
- value to be set- Returns:
- Builder
-
getActive
Value to set.
If set to
false
, the ShippingMethod cannot be used during the creation or update of a Cart or Order.- Returns:
- active
-
build
builds ShippingMethodChangeActiveAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ShippingMethodChangeActiveAction>
- Returns:
- ShippingMethodChangeActiveAction
-
buildUnchecked
builds ShippingMethodChangeActiveAction without checking for non-null required values- Returns:
- ShippingMethodChangeActiveAction
-
of
factory method for an instance of ShippingMethodChangeActiveActionBuilder- Returns:
- builder
-
of
create builder for ShippingMethodChangeActiveAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-