Class StoreSetCountriesActionBuilder
java.lang.Object
com.commercetools.api.models.store.StoreSetCountriesActionBuilder
- All Implemented Interfaces:
Builder<StoreSetCountriesAction>
public class StoreSetCountriesActionBuilder
extends Object
implements Builder<StoreSetCountriesAction>
StoreSetCountriesActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StoreSetCountriesAction storeSetCountriesAction = StoreSetCountriesAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddCountries
(Function<StoreCountryBuilder, StoreCountry> builder) New value to set.build()
builds StoreSetCountriesAction with checking for non-null required valuesbuilds StoreSetCountriesAction without checking for non-null required valuescountries
(StoreCountry... countries) New value to set.countries
(List<StoreCountry> countries) New value to set.New value to set.of()
factory method for an instance of StoreSetCountriesActionBuilderof
(StoreSetCountriesAction template) create builder for StoreSetCountriesAction instanceplusCountries
(StoreCountry... countries) New value to set.New value to set.setCountries
(Function<StoreCountryBuilder, StoreCountry> builder) New value to set.New value to set.
-
Constructor Details
-
StoreSetCountriesActionBuilder
public StoreSetCountriesActionBuilder()
-
-
Method Details
-
countries
New value to set.
- Parameters:
countries
- value to be set- Returns:
- Builder
-
countries
New value to set.
- Parameters:
countries
- value to be set- Returns:
- Builder
-
plusCountries
New value to set.
- Parameters:
countries
- value to be set- Returns:
- Builder
-
plusCountries
public StoreSetCountriesActionBuilder plusCountries(Function<StoreCountryBuilder, StoreCountryBuilder> builder) New value to set.
- Parameters:
builder
- function to build the countries value- Returns:
- Builder
-
withCountries
public StoreSetCountriesActionBuilder withCountries(Function<StoreCountryBuilder, StoreCountryBuilder> builder) New value to set.
- Parameters:
builder
- function to build the countries value- Returns:
- Builder
-
addCountries
public StoreSetCountriesActionBuilder addCountries(Function<StoreCountryBuilder, StoreCountry> builder) New value to set.
- Parameters:
builder
- function to build the countries value- Returns:
- Builder
-
setCountries
public StoreSetCountriesActionBuilder setCountries(Function<StoreCountryBuilder, StoreCountry> builder) New value to set.
- Parameters:
builder
- function to build the countries value- Returns:
- Builder
-
getCountries
New value to set.
- Returns:
- countries
-
build
builds StoreSetCountriesAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StoreSetCountriesAction>
- Returns:
- StoreSetCountriesAction
-
buildUnchecked
builds StoreSetCountriesAction without checking for non-null required values- Returns:
- StoreSetCountriesAction
-
of
factory method for an instance of StoreSetCountriesActionBuilder- Returns:
- builder
-
of
create builder for StoreSetCountriesAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-