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