Class CartSetCountryActionBuilder
java.lang.Object
com.commercetools.api.models.cart.CartSetCountryActionBuilder
- All Implemented Interfaces:
Builder<CartSetCountryAction>
CartSetCountryActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartSetCountryAction cartSetCountryAction = CartSetCountryAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds CartSetCountryAction with checking for non-null required valuesbuilds CartSetCountryAction without checking for non-null required valuesValue to set.Value to set.static CartSetCountryActionBuilderof()factory method for an instance of CartSetCountryActionBuilderstatic CartSetCountryActionBuilderof(CartSetCountryAction template) create builder for CartSetCountryAction instance
-
Constructor Details
-
CartSetCountryActionBuilder
public CartSetCountryActionBuilder()
-
-
Method Details
-
country
Value to set. If empty, any existing value is removed.
If the Cart is bound to a
store, the provided value must be included in the Store'scountries. Otherwise a CountryNotConfiguredInStore error is returned.- Parameters:
country- value to be set- Returns:
- Builder
-
getCountry
Value to set. If empty, any existing value is removed.
If the Cart is bound to a
store, the provided value must be included in the Store'scountries. Otherwise a CountryNotConfiguredInStore error is returned.- Returns:
- country
-
build
builds CartSetCountryAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<CartSetCountryAction>- Returns:
- CartSetCountryAction
-
buildUnchecked
builds CartSetCountryAction without checking for non-null required values- Returns:
- CartSetCountryAction
-
of
factory method for an instance of CartSetCountryActionBuilder- Returns:
- builder
-
of
create builder for CartSetCountryAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-