Package com.commercetools.api.models.me
Class MyCartSetCountryActionBuilder
java.lang.Object
com.commercetools.api.models.me.MyCartSetCountryActionBuilder
- All Implemented Interfaces:
Builder<MyCartSetCountryAction>
public class MyCartSetCountryActionBuilder
extends Object
implements Builder<MyCartSetCountryAction>
MyCartSetCountryActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyCartSetCountryAction myCartSetCountryAction = MyCartSetCountryAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds MyCartSetCountryAction with checking for non-null required valuesbuilds MyCartSetCountryAction without checking for non-null required valuesValue to set.Value to set.of()
factory method for an instance of MyCartSetCountryActionBuilderof
(MyCartSetCountryAction template) create builder for MyCartSetCountryAction instance
-
Constructor Details
-
MyCartSetCountryActionBuilder
public MyCartSetCountryActionBuilder()
-
-
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 MyCartSetCountryAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<MyCartSetCountryAction>
- Returns:
- MyCartSetCountryAction
-
buildUnchecked
builds MyCartSetCountryAction without checking for non-null required values- Returns:
- MyCartSetCountryAction
-
of
factory method for an instance of MyCartSetCountryActionBuilder- Returns:
- builder
-
of
create builder for MyCartSetCountryAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-