Class StoreAddCountryActionBuilder
java.lang.Object
com.commercetools.api.models.store.StoreAddCountryActionBuilder
- All Implemented Interfaces:
Builder<StoreAddCountryAction>
StoreAddCountryActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StoreAddCountryAction storeAddCountryAction = StoreAddCountryAction.builder()
.country(countryBuilder -> countryBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StoreAddCountryAction with checking for non-null required valuesbuilds StoreAddCountryAction without checking for non-null required valuescountry
(StoreCountry country) Value to append tocountries
.Value to append tocountries
.Value to append tocountries
.static StoreAddCountryActionBuilder
of()
factory method for an instance of StoreAddCountryActionBuilderstatic StoreAddCountryActionBuilder
of
(StoreAddCountryAction template) create builder for StoreAddCountryAction instancewithCountry
(Function<StoreCountryBuilder, StoreCountry> builder) Value to append tocountries
.
-
Constructor Details
-
StoreAddCountryActionBuilder
public StoreAddCountryActionBuilder()
-
-
Method Details
-
country
public StoreAddCountryActionBuilder country(Function<StoreCountryBuilder, StoreCountryBuilder> builder) Value to append to
countries
.- Parameters:
builder
- function to build the country value- Returns:
- Builder
-
withCountry
Value to append to
countries
.- Parameters:
builder
- function to build the country value- Returns:
- Builder
-
country
Value to append to
countries
.- Parameters:
country
- value to be set- Returns:
- Builder
-
getCountry
Value to append to
countries
.- Returns:
- country
-
build
builds StoreAddCountryAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StoreAddCountryAction>
- Returns:
- StoreAddCountryAction
-
buildUnchecked
builds StoreAddCountryAction without checking for non-null required values- Returns:
- StoreAddCountryAction
-
of
factory method for an instance of StoreAddCountryActionBuilder- Returns:
- builder
-
of
create builder for StoreAddCountryAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-