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