Class StoreCountriesChangedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.StoreCountriesChangedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<StoreCountriesChangedMessagePayload>
public class StoreCountriesChangedMessagePayloadBuilder
extends Object
implements Builder<StoreCountriesChangedMessagePayload>
StoreCountriesChangedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StoreCountriesChangedMessagePayload storeCountriesChangedMessagePayload = StoreCountriesChangedMessagePayload.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCountries added to the Store.addedCountries
(StoreCountry... addedCountries) Countries added to the Store.addedCountries
(List<StoreCountry> addedCountries) Countries added to the Store.Countries removed from the Store.build()
builds StoreCountriesChangedMessagePayload with checking for non-null required valuesbuilds StoreCountriesChangedMessagePayload without checking for non-null required valuesCountries added to the Store.Countries removed from the Store.of()
factory method for an instance of StoreCountriesChangedMessagePayloadBuilderof
(StoreCountriesChangedMessagePayload template) create builder for StoreCountriesChangedMessagePayload instanceplusAddedCountries
(StoreCountry... addedCountries) Countries added to the Store.Countries added to the Store.plusRemovedCountries
(StoreCountry... removedCountries) Countries removed from the Store.Countries removed from the Store.removedCountries
(StoreCountry... removedCountries) Countries removed from the Store.removedCountries
(List<StoreCountry> removedCountries) Countries removed from the Store.Countries added to the Store.Countries removed from the Store.Countries added to the Store.Countries removed from the Store.
-
Constructor Details
-
StoreCountriesChangedMessagePayloadBuilder
public StoreCountriesChangedMessagePayloadBuilder()
-
-
Method Details
-
addedCountries
public StoreCountriesChangedMessagePayloadBuilder addedCountries(@Nullable StoreCountry... addedCountries) Countries added to the Store.
- Parameters:
addedCountries
- value to be set- Returns:
- Builder
-
addedCountries
public StoreCountriesChangedMessagePayloadBuilder addedCountries(@Nullable List<StoreCountry> addedCountries) Countries added to the Store.
- Parameters:
addedCountries
- value to be set- Returns:
- Builder
-
plusAddedCountries
public StoreCountriesChangedMessagePayloadBuilder plusAddedCountries(@Nullable StoreCountry... addedCountries) Countries added to the Store.
- Parameters:
addedCountries
- value to be set- Returns:
- Builder
-
plusAddedCountries
public StoreCountriesChangedMessagePayloadBuilder plusAddedCountries(Function<StoreCountryBuilder, StoreCountryBuilder> builder) Countries added to the Store.
- Parameters:
builder
- function to build the addedCountries value- Returns:
- Builder
-
withAddedCountries
public StoreCountriesChangedMessagePayloadBuilder withAddedCountries(Function<StoreCountryBuilder, StoreCountryBuilder> builder) Countries added to the Store.
- Parameters:
builder
- function to build the addedCountries value- Returns:
- Builder
-
addAddedCountries
public StoreCountriesChangedMessagePayloadBuilder addAddedCountries(Function<StoreCountryBuilder, StoreCountry> builder) Countries added to the Store.
- Parameters:
builder
- function to build the addedCountries value- Returns:
- Builder
-
setAddedCountries
public StoreCountriesChangedMessagePayloadBuilder setAddedCountries(Function<StoreCountryBuilder, StoreCountry> builder) Countries added to the Store.
- Parameters:
builder
- function to build the addedCountries value- Returns:
- Builder
-
removedCountries
public StoreCountriesChangedMessagePayloadBuilder removedCountries(@Nullable StoreCountry... removedCountries) Countries removed from the Store.
- Parameters:
removedCountries
- value to be set- Returns:
- Builder
-
removedCountries
public StoreCountriesChangedMessagePayloadBuilder removedCountries(@Nullable List<StoreCountry> removedCountries) Countries removed from the Store.
- Parameters:
removedCountries
- value to be set- Returns:
- Builder
-
plusRemovedCountries
public StoreCountriesChangedMessagePayloadBuilder plusRemovedCountries(@Nullable StoreCountry... removedCountries) Countries removed from the Store.
- Parameters:
removedCountries
- value to be set- Returns:
- Builder
-
plusRemovedCountries
public StoreCountriesChangedMessagePayloadBuilder plusRemovedCountries(Function<StoreCountryBuilder, StoreCountryBuilder> builder) Countries removed from the Store.
- Parameters:
builder
- function to build the removedCountries value- Returns:
- Builder
-
withRemovedCountries
public StoreCountriesChangedMessagePayloadBuilder withRemovedCountries(Function<StoreCountryBuilder, StoreCountryBuilder> builder) Countries removed from the Store.
- Parameters:
builder
- function to build the removedCountries value- Returns:
- Builder
-
addRemovedCountries
public StoreCountriesChangedMessagePayloadBuilder addRemovedCountries(Function<StoreCountryBuilder, StoreCountry> builder) Countries removed from the Store.
- Parameters:
builder
- function to build the removedCountries value- Returns:
- Builder
-
setRemovedCountries
public StoreCountriesChangedMessagePayloadBuilder setRemovedCountries(Function<StoreCountryBuilder, StoreCountry> builder) Countries removed from the Store.
- Parameters:
builder
- function to build the removedCountries value- Returns:
- Builder
-
getAddedCountries
Countries added to the Store.
- Returns:
- addedCountries
-
getRemovedCountries
Countries removed from the Store.
- Returns:
- removedCountries
-
build
builds StoreCountriesChangedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<StoreCountriesChangedMessagePayload>
- Returns:
- StoreCountriesChangedMessagePayload
-
buildUnchecked
builds StoreCountriesChangedMessagePayload without checking for non-null required values- Returns:
- StoreCountriesChangedMessagePayload
-
of
factory method for an instance of StoreCountriesChangedMessagePayloadBuilder- Returns:
- builder
-
of
public static StoreCountriesChangedMessagePayloadBuilder of(StoreCountriesChangedMessagePayload template) create builder for StoreCountriesChangedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-