Class CartSetLocaleActionBuilder
java.lang.Object
com.commercetools.api.models.cart.CartSetLocaleActionBuilder
- All Implemented Interfaces:
Builder<CartSetLocaleAction>
CartSetLocaleActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartSetLocaleAction cartSetLocaleAction = CartSetLocaleAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CartSetLocaleAction with checking for non-null required valuesbuilds CartSetLocaleAction without checking for non-null required valuesValue to set.Value to set.static CartSetLocaleActionBuilder
of()
factory method for an instance of CartSetLocaleActionBuilderstatic CartSetLocaleActionBuilder
of
(CartSetLocaleAction template) create builder for CartSetLocaleAction instance
-
Constructor Details
-
CartSetLocaleActionBuilder
public CartSetLocaleActionBuilder()
-
-
Method Details
-
locale
Value to set. Must be one of the Project's
languages
. If empty, any existing value will be removed.- Parameters:
locale
- value to be set- Returns:
- Builder
-
getLocale
Value to set. Must be one of the Project's
languages
. If empty, any existing value will be removed.- Returns:
- locale
-
build
builds CartSetLocaleAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CartSetLocaleAction>
- Returns:
- CartSetLocaleAction
-
buildUnchecked
builds CartSetLocaleAction without checking for non-null required values- Returns:
- CartSetLocaleAction
-
of
factory method for an instance of CartSetLocaleActionBuilder- Returns:
- builder
-
of
create builder for CartSetLocaleAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-