Class ShippingMethodSetLocalizedNameActionBuilder
java.lang.Object
com.commercetools.api.models.shipping_method.ShippingMethodSetLocalizedNameActionBuilder
- All Implemented Interfaces:
Builder<ShippingMethodSetLocalizedNameAction>
public class ShippingMethodSetLocalizedNameActionBuilder
extends Object
implements Builder<ShippingMethodSetLocalizedNameAction>
ShippingMethodSetLocalizedNameActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShippingMethodSetLocalizedNameAction shippingMethodSetLocalizedNameAction = ShippingMethodSetLocalizedNameAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ShippingMethodSetLocalizedNameAction with checking for non-null required valuesbuilds ShippingMethodSetLocalizedNameAction without checking for non-null required valuesValue to set.localizedName
(LocalizedString localizedName) Value to set.Value to set.of()
factory method for an instance of ShippingMethodSetLocalizedNameActionBuilderof
(ShippingMethodSetLocalizedNameAction template) create builder for ShippingMethodSetLocalizedNameAction instanceValue to set.
-
Constructor Details
-
ShippingMethodSetLocalizedNameActionBuilder
public ShippingMethodSetLocalizedNameActionBuilder()
-
-
Method Details
-
localizedName
public ShippingMethodSetLocalizedNameActionBuilder localizedName(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the localizedName value- Returns:
- Builder
-
withLocalizedName
public ShippingMethodSetLocalizedNameActionBuilder withLocalizedName(Function<LocalizedStringBuilder, LocalizedString> builder) Value to set. If empty, any existing value will be removed.
- Parameters:
builder
- function to build the localizedName value- Returns:
- Builder
-
localizedName
public ShippingMethodSetLocalizedNameActionBuilder localizedName(@Nullable LocalizedString localizedName) Value to set. If empty, any existing value will be removed.
- Parameters:
localizedName
- value to be set- Returns:
- Builder
-
getLocalizedName
Value to set. If empty, any existing value will be removed.
- Returns:
- localizedName
-
build
builds ShippingMethodSetLocalizedNameAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ShippingMethodSetLocalizedNameAction>
- Returns:
- ShippingMethodSetLocalizedNameAction
-
buildUnchecked
builds ShippingMethodSetLocalizedNameAction without checking for non-null required values- Returns:
- ShippingMethodSetLocalizedNameAction
-
of
factory method for an instance of ShippingMethodSetLocalizedNameActionBuilder- Returns:
- builder
-
of
public static ShippingMethodSetLocalizedNameActionBuilder of(ShippingMethodSetLocalizedNameAction template) create builder for ShippingMethodSetLocalizedNameAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-