Class StoreCreatedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<StoreCreatedMessagePayload>
Example to create an instance using the builder pattern
StoreCreatedMessagePayload storeCreatedMessagePayload = StoreCreatedMessagePayload.builder()
.plusDistributionChannels(distributionChannelsBuilder -> distributionChannelsBuilder)
.plusSupplyChannels(supplyChannelsBuilder -> supplyChannelsBuilder)
.plusProductSelections(productSelectionsBuilder -> productSelectionsBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddCountries
(Function<StoreCountryBuilder, StoreCountry> builder) Countries of the Store that was created.Distribution Channels of the Store that was created.ProductSelectionSettings of the Store that was created.Supply Channels of the Store that was created.build()
builds StoreCreatedMessagePayload with checking for non-null required valuesbuilds StoreCreatedMessagePayload without checking for non-null required valuescountries
(StoreCountry... countries) Countries of the Store that was created.countries
(List<StoreCountry> countries) Countries of the Store that was created.custom
(CustomFields custom) Custom Fields on the Store that was created.custom
(Function<CustomFieldsBuilder, CustomFieldsBuilder> builder) Custom Fields on the Store that was created.distributionChannels
(ChannelReference... distributionChannels) Distribution Channels of the Store that was created.distributionChannels
(List<ChannelReference> distributionChannels) Distribution Channels of the Store that was created.Countries of the Store that was created.Custom Fields on the Store that was created.Distribution Channels of the Store that was created.Languages of the Store that was created.getName()
Thename
of the Store that was created.ProductSelectionSettings of the Store that was created.Supply Channels of the Store that was created.Languages of the Store that was created.Languages of the Store that was created.name
(LocalizedString name) Thename
of the Store that was created.Thename
of the Store that was created.of()
factory method for an instance of StoreCreatedMessagePayloadBuilderof
(StoreCreatedMessagePayload template) create builder for StoreCreatedMessagePayload instanceplusCountries
(StoreCountry... countries) Countries of the Store that was created.Countries of the Store that was created.plusDistributionChannels
(ChannelReference... distributionChannels) Distribution Channels of the Store that was created.Distribution Channels of the Store that was created.plusLanguages
(String... languages) Languages of the Store that was created.plusProductSelections
(ProductSelectionSetting... productSelections) ProductSelectionSettings of the Store that was created.plusProductSelections
(Function<ProductSelectionSettingBuilder, ProductSelectionSettingBuilder> builder) ProductSelectionSettings of the Store that was created.plusSupplyChannels
(ChannelReference... supplyChannels) Supply Channels of the Store that was created.Supply Channels of the Store that was created.productSelections
(ProductSelectionSetting... productSelections) ProductSelectionSettings of the Store that was created.productSelections
(List<ProductSelectionSetting> productSelections) ProductSelectionSettings of the Store that was created.setCountries
(Function<StoreCountryBuilder, StoreCountry> builder) Countries of the Store that was created.Distribution Channels of the Store that was created.ProductSelectionSettings of the Store that was created.Supply Channels of the Store that was created.supplyChannels
(ChannelReference... supplyChannels) Supply Channels of the Store that was created.supplyChannels
(List<ChannelReference> supplyChannels) Supply Channels of the Store that was created.Countries of the Store that was created.withCustom
(Function<CustomFieldsBuilder, CustomFields> builder) Custom Fields on the Store that was created.Distribution Channels of the Store that was created.Thename
of the Store that was created.withProductSelections
(Function<ProductSelectionSettingBuilder, ProductSelectionSettingBuilder> builder) ProductSelectionSettings of the Store that was created.Supply Channels of the Store that was created.
-
Constructor Details
-
StoreCreatedMessagePayloadBuilder
public StoreCreatedMessagePayloadBuilder()
-
-
Method Details
-
name
public StoreCreatedMessagePayloadBuilder name(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) The
name
of the Store that was created.- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
withName
public StoreCreatedMessagePayloadBuilder withName(Function<LocalizedStringBuilder, LocalizedString> builder) The
name
of the Store that was created.- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
name
The
name
of the Store that was created.- Parameters:
name
- value to be set- Returns:
- Builder
-
languages
Languages of the Store that was created. Languages are represented as IETF language tags.
- Parameters:
languages
- value to be set- Returns:
- Builder
-
languages
Languages of the Store that was created. Languages are represented as IETF language tags.
- Parameters:
languages
- value to be set- Returns:
- Builder
-
plusLanguages
Languages of the Store that was created. Languages are represented as IETF language tags.
- Parameters:
languages
- value to be set- Returns:
- Builder
-
countries
Countries of the Store that was created.
- Parameters:
countries
- value to be set- Returns:
- Builder
-
countries
Countries of the Store that was created.
- Parameters:
countries
- value to be set- Returns:
- Builder
-
plusCountries
Countries of the Store that was created.
- Parameters:
countries
- value to be set- Returns:
- Builder
-
plusCountries
public StoreCreatedMessagePayloadBuilder plusCountries(Function<StoreCountryBuilder, StoreCountryBuilder> builder) Countries of the Store that was created.
- Parameters:
builder
- function to build the countries value- Returns:
- Builder
-
withCountries
public StoreCreatedMessagePayloadBuilder withCountries(Function<StoreCountryBuilder, StoreCountryBuilder> builder) Countries of the Store that was created.
- Parameters:
builder
- function to build the countries value- Returns:
- Builder
-
addCountries
public StoreCreatedMessagePayloadBuilder addCountries(Function<StoreCountryBuilder, StoreCountry> builder) Countries of the Store that was created.
- Parameters:
builder
- function to build the countries value- Returns:
- Builder
-
setCountries
public StoreCreatedMessagePayloadBuilder setCountries(Function<StoreCountryBuilder, StoreCountry> builder) Countries of the Store that was created.
- Parameters:
builder
- function to build the countries value- Returns:
- Builder
-
distributionChannels
public StoreCreatedMessagePayloadBuilder distributionChannels(ChannelReference... distributionChannels) Distribution Channels of the Store that was created.
- Parameters:
distributionChannels
- value to be set- Returns:
- Builder
-
distributionChannels
public StoreCreatedMessagePayloadBuilder distributionChannels(List<ChannelReference> distributionChannels) Distribution Channels of the Store that was created.
- Parameters:
distributionChannels
- value to be set- Returns:
- Builder
-
plusDistributionChannels
public StoreCreatedMessagePayloadBuilder plusDistributionChannels(ChannelReference... distributionChannels) Distribution Channels of the Store that was created.
- Parameters:
distributionChannels
- value to be set- Returns:
- Builder
-
plusDistributionChannels
public StoreCreatedMessagePayloadBuilder plusDistributionChannels(Function<ChannelReferenceBuilder, ChannelReferenceBuilder> builder) Distribution Channels of the Store that was created.
- Parameters:
builder
- function to build the distributionChannels value- Returns:
- Builder
-
withDistributionChannels
public StoreCreatedMessagePayloadBuilder withDistributionChannels(Function<ChannelReferenceBuilder, ChannelReferenceBuilder> builder) Distribution Channels of the Store that was created.
- Parameters:
builder
- function to build the distributionChannels value- Returns:
- Builder
-
addDistributionChannels
public StoreCreatedMessagePayloadBuilder addDistributionChannels(Function<ChannelReferenceBuilder, ChannelReference> builder) Distribution Channels of the Store that was created.
- Parameters:
builder
- function to build the distributionChannels value- Returns:
- Builder
-
setDistributionChannels
public StoreCreatedMessagePayloadBuilder setDistributionChannels(Function<ChannelReferenceBuilder, ChannelReference> builder) Distribution Channels of the Store that was created.
- Parameters:
builder
- function to build the distributionChannels value- Returns:
- Builder
-
supplyChannels
Supply Channels of the Store that was created.
- Parameters:
supplyChannels
- value to be set- Returns:
- Builder
-
supplyChannels
Supply Channels of the Store that was created.
- Parameters:
supplyChannels
- value to be set- Returns:
- Builder
-
plusSupplyChannels
Supply Channels of the Store that was created.
- Parameters:
supplyChannels
- value to be set- Returns:
- Builder
-
plusSupplyChannels
public StoreCreatedMessagePayloadBuilder plusSupplyChannels(Function<ChannelReferenceBuilder, ChannelReferenceBuilder> builder) Supply Channels of the Store that was created.
- Parameters:
builder
- function to build the supplyChannels value- Returns:
- Builder
-
withSupplyChannels
public StoreCreatedMessagePayloadBuilder withSupplyChannels(Function<ChannelReferenceBuilder, ChannelReferenceBuilder> builder) Supply Channels of the Store that was created.
- Parameters:
builder
- function to build the supplyChannels value- Returns:
- Builder
-
addSupplyChannels
public StoreCreatedMessagePayloadBuilder addSupplyChannels(Function<ChannelReferenceBuilder, ChannelReference> builder) Supply Channels of the Store that was created.
- Parameters:
builder
- function to build the supplyChannels value- Returns:
- Builder
-
setSupplyChannels
public StoreCreatedMessagePayloadBuilder setSupplyChannels(Function<ChannelReferenceBuilder, ChannelReference> builder) Supply Channels of the Store that was created.
- Parameters:
builder
- function to build the supplyChannels value- Returns:
- Builder
-
productSelections
public StoreCreatedMessagePayloadBuilder productSelections(ProductSelectionSetting... productSelections) ProductSelectionSettings of the Store that was created.
- Parameters:
productSelections
- value to be set- Returns:
- Builder
-
productSelections
public StoreCreatedMessagePayloadBuilder productSelections(List<ProductSelectionSetting> productSelections) ProductSelectionSettings of the Store that was created.
- Parameters:
productSelections
- value to be set- Returns:
- Builder
-
plusProductSelections
public StoreCreatedMessagePayloadBuilder plusProductSelections(ProductSelectionSetting... productSelections) ProductSelectionSettings of the Store that was created.
- Parameters:
productSelections
- value to be set- Returns:
- Builder
-
plusProductSelections
public StoreCreatedMessagePayloadBuilder plusProductSelections(Function<ProductSelectionSettingBuilder, ProductSelectionSettingBuilder> builder) ProductSelectionSettings of the Store that was created.
- Parameters:
builder
- function to build the productSelections value- Returns:
- Builder
-
withProductSelections
public StoreCreatedMessagePayloadBuilder withProductSelections(Function<ProductSelectionSettingBuilder, ProductSelectionSettingBuilder> builder) ProductSelectionSettings of the Store that was created.
- Parameters:
builder
- function to build the productSelections value- Returns:
- Builder
-
addProductSelections
public StoreCreatedMessagePayloadBuilder addProductSelections(Function<ProductSelectionSettingBuilder, ProductSelectionSetting> builder) ProductSelectionSettings of the Store that was created.
- Parameters:
builder
- function to build the productSelections value- Returns:
- Builder
-
setProductSelections
public StoreCreatedMessagePayloadBuilder setProductSelections(Function<ProductSelectionSettingBuilder, ProductSelectionSetting> builder) ProductSelectionSettings of the Store that was created.
- Parameters:
builder
- function to build the productSelections value- Returns:
- Builder
-
custom
public StoreCreatedMessagePayloadBuilder custom(Function<CustomFieldsBuilder, CustomFieldsBuilder> builder) Custom Fields on the Store that was created.
- Parameters:
builder
- function to build the custom value- Returns:
- Builder
-
withCustom
public StoreCreatedMessagePayloadBuilder withCustom(Function<CustomFieldsBuilder, CustomFields> builder) Custom Fields on the Store that was created.
- Parameters:
builder
- function to build the custom value- Returns:
- Builder
-
custom
Custom Fields on the Store that was created.
- Parameters:
custom
- value to be set- Returns:
- Builder
-
getName
The
name
of the Store that was created.- Returns:
- name
-
getLanguages
Languages of the Store that was created. Languages are represented as IETF language tags.
- Returns:
- languages
-
getCountries
Countries of the Store that was created.
- Returns:
- countries
-
getDistributionChannels
Distribution Channels of the Store that was created.
- Returns:
- distributionChannels
-
getSupplyChannels
Supply Channels of the Store that was created.
- Returns:
- supplyChannels
-
getProductSelections
ProductSelectionSettings of the Store that was created.
- Returns:
- productSelections
-
getCustom
Custom Fields on the Store that was created.
- Returns:
- custom
-
build
builds StoreCreatedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<StoreCreatedMessagePayload>
- Returns:
- StoreCreatedMessagePayload
-
buildUnchecked
builds StoreCreatedMessagePayload without checking for non-null required values- Returns:
- StoreCreatedMessagePayload
-
of
factory method for an instance of StoreCreatedMessagePayloadBuilder- Returns:
- builder
-
of
create builder for StoreCreatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-