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