Class ShippingMethodSetKeyActionBuilder
java.lang.Object
com.commercetools.api.models.shipping_method.ShippingMethodSetKeyActionBuilder
- All Implemented Interfaces:
Builder<ShippingMethodSetKeyAction>
public class ShippingMethodSetKeyActionBuilder
extends Object
implements Builder<ShippingMethodSetKeyAction>
ShippingMethodSetKeyActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShippingMethodSetKeyAction shippingMethodSetKeyAction = ShippingMethodSetKeyAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ShippingMethodSetKeyAction with checking for non-null required valuesbuilds ShippingMethodSetKeyAction without checking for non-null required valuesgetKey()
Ifkey
is absent ornull
, the existing key, if any, will be removed.Ifkey
is absent ornull
, the existing key, if any, will be removed.of()
factory method for an instance of ShippingMethodSetKeyActionBuilderof
(ShippingMethodSetKeyAction template) create builder for ShippingMethodSetKeyAction instance
-
Constructor Details
-
ShippingMethodSetKeyActionBuilder
public ShippingMethodSetKeyActionBuilder()
-
-
Method Details
-
key
If
key
is absent ornull
, the existing key, if any, will be removed.- Parameters:
key
- value to be set- Returns:
- Builder
-
getKey
If
key
is absent ornull
, the existing key, if any, will be removed.- Returns:
- key
-
build
builds ShippingMethodSetKeyAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ShippingMethodSetKeyAction>
- Returns:
- ShippingMethodSetKeyAction
-
buildUnchecked
builds ShippingMethodSetKeyAction without checking for non-null required values- Returns:
- ShippingMethodSetKeyAction
-
of
factory method for an instance of ShippingMethodSetKeyActionBuilder- Returns:
- builder
-
of
create builder for ShippingMethodSetKeyAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-