Class ShippingMethodChangeIsDefaultActionBuilder
java.lang.Object
com.commercetools.api.models.shipping_method.ShippingMethodChangeIsDefaultActionBuilder
- All Implemented Interfaces:
Builder<ShippingMethodChangeIsDefaultAction>
public class ShippingMethodChangeIsDefaultActionBuilder
extends Object
implements Builder<ShippingMethodChangeIsDefaultAction>
ShippingMethodChangeIsDefaultActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShippingMethodChangeIsDefaultAction shippingMethodChangeIsDefaultAction = ShippingMethodChangeIsDefaultAction.builder()
.isDefault(true)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ShippingMethodChangeIsDefaultAction with checking for non-null required valuesbuilds ShippingMethodChangeIsDefaultAction without checking for non-null required valuesValue to set.Value to set.of()
factory method for an instance of ShippingMethodChangeIsDefaultActionBuilderof
(ShippingMethodChangeIsDefaultAction template) create builder for ShippingMethodChangeIsDefaultAction instance
-
Constructor Details
-
ShippingMethodChangeIsDefaultActionBuilder
public ShippingMethodChangeIsDefaultActionBuilder()
-
-
Method Details
-
isDefault
Value to set. Only one ShippingMethod can be default in a Project.
- Parameters:
isDefault
- value to be set- Returns:
- Builder
-
getIsDefault
Value to set. Only one ShippingMethod can be default in a Project.
- Returns:
- isDefault
-
build
builds ShippingMethodChangeIsDefaultAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ShippingMethodChangeIsDefaultAction>
- Returns:
- ShippingMethodChangeIsDefaultAction
-
buildUnchecked
builds ShippingMethodChangeIsDefaultAction without checking for non-null required values- Returns:
- ShippingMethodChangeIsDefaultAction
-
of
factory method for an instance of ShippingMethodChangeIsDefaultActionBuilder- Returns:
- builder
-
of
public static ShippingMethodChangeIsDefaultActionBuilder of(ShippingMethodChangeIsDefaultAction template) create builder for ShippingMethodChangeIsDefaultAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-