Class StandalonePriceTiersSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<StandalonePriceTiersSetMessagePayload>
Example to create an instance using the builder pattern
StandalonePriceTiersSetMessagePayload standalonePriceTiersSetMessagePayload = StandalonePriceTiersSetMessagePayload.builder()
.plusTiers(tiersBuilder -> tiersBuilder)
.plusPreviousTiers(previousTiersBuilder -> previousTiersBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddPreviousTiers
(Function<PriceTierBuilder, PriceTier> builder) The previous content of the fieldtiers
of the affected StandalonePrice.addTiers
(Function<PriceTierBuilder, PriceTier> builder) The updated content of the fieldtiers
of the affected StandalonePrice.build()
builds StandalonePriceTiersSetMessagePayload with checking for non-null required valuesbuilds StandalonePriceTiersSetMessagePayload without checking for non-null required valuesThe previous content of the fieldtiers
of the affected StandalonePrice.getTiers()
The updated content of the fieldtiers
of the affected StandalonePrice.of()
factory method for an instance of StandalonePriceTiersSetMessagePayloadBuilderof
(StandalonePriceTiersSetMessagePayload template) create builder for StandalonePriceTiersSetMessagePayload instanceplusPreviousTiers
(PriceTier... previousTiers) The previous content of the fieldtiers
of the affected StandalonePrice.The previous content of the fieldtiers
of the affected StandalonePrice.The updated content of the fieldtiers
of the affected StandalonePrice.plusTiers
(Function<PriceTierBuilder, PriceTierBuilder> builder) The updated content of the fieldtiers
of the affected StandalonePrice.previousTiers
(PriceTier... previousTiers) The previous content of the fieldtiers
of the affected StandalonePrice.previousTiers
(List<PriceTier> previousTiers) The previous content of the fieldtiers
of the affected StandalonePrice.setPreviousTiers
(Function<PriceTierBuilder, PriceTier> builder) The previous content of the fieldtiers
of the affected StandalonePrice.setTiers
(Function<PriceTierBuilder, PriceTier> builder) The updated content of the fieldtiers
of the affected StandalonePrice.The updated content of the fieldtiers
of the affected StandalonePrice.The updated content of the fieldtiers
of the affected StandalonePrice.The previous content of the fieldtiers
of the affected StandalonePrice.withTiers
(Function<PriceTierBuilder, PriceTierBuilder> builder) The updated content of the fieldtiers
of the affected StandalonePrice.
-
Constructor Details
-
StandalonePriceTiersSetMessagePayloadBuilder
public StandalonePriceTiersSetMessagePayloadBuilder()
-
-
Method Details
-
tiers
The updated content of the field
tiers
of the affected StandalonePrice.- Parameters:
tiers
- value to be set- Returns:
- Builder
-
tiers
The updated content of the field
tiers
of the affected StandalonePrice.- Parameters:
tiers
- value to be set- Returns:
- Builder
-
plusTiers
The updated content of the field
tiers
of the affected StandalonePrice.- Parameters:
tiers
- value to be set- Returns:
- Builder
-
plusTiers
public StandalonePriceTiersSetMessagePayloadBuilder plusTiers(Function<PriceTierBuilder, PriceTierBuilder> builder) The updated content of the field
tiers
of the affected StandalonePrice.- Parameters:
builder
- function to build the tiers value- Returns:
- Builder
-
withTiers
public StandalonePriceTiersSetMessagePayloadBuilder withTiers(Function<PriceTierBuilder, PriceTierBuilder> builder) The updated content of the field
tiers
of the affected StandalonePrice.- Parameters:
builder
- function to build the tiers value- Returns:
- Builder
-
addTiers
public StandalonePriceTiersSetMessagePayloadBuilder addTiers(Function<PriceTierBuilder, PriceTier> builder) The updated content of the field
tiers
of the affected StandalonePrice.- Parameters:
builder
- function to build the tiers value- Returns:
- Builder
-
setTiers
public StandalonePriceTiersSetMessagePayloadBuilder setTiers(Function<PriceTierBuilder, PriceTier> builder) The updated content of the field
tiers
of the affected StandalonePrice.- Parameters:
builder
- function to build the tiers value- Returns:
- Builder
-
previousTiers
The previous content of the field
tiers
of the affected StandalonePrice.- Parameters:
previousTiers
- value to be set- Returns:
- Builder
-
previousTiers
The previous content of the field
tiers
of the affected StandalonePrice.- Parameters:
previousTiers
- value to be set- Returns:
- Builder
-
plusPreviousTiers
The previous content of the field
tiers
of the affected StandalonePrice.- Parameters:
previousTiers
- value to be set- Returns:
- Builder
-
plusPreviousTiers
public StandalonePriceTiersSetMessagePayloadBuilder plusPreviousTiers(Function<PriceTierBuilder, PriceTierBuilder> builder) The previous content of the field
tiers
of the affected StandalonePrice.- Parameters:
builder
- function to build the previousTiers value- Returns:
- Builder
-
withPreviousTiers
public StandalonePriceTiersSetMessagePayloadBuilder withPreviousTiers(Function<PriceTierBuilder, PriceTierBuilder> builder) The previous content of the field
tiers
of the affected StandalonePrice.- Parameters:
builder
- function to build the previousTiers value- Returns:
- Builder
-
addPreviousTiers
public StandalonePriceTiersSetMessagePayloadBuilder addPreviousTiers(Function<PriceTierBuilder, PriceTier> builder) The previous content of the field
tiers
of the affected StandalonePrice.- Parameters:
builder
- function to build the previousTiers value- Returns:
- Builder
-
setPreviousTiers
public StandalonePriceTiersSetMessagePayloadBuilder setPreviousTiers(Function<PriceTierBuilder, PriceTier> builder) The previous content of the field
tiers
of the affected StandalonePrice.- Parameters:
builder
- function to build the previousTiers value- Returns:
- Builder
-
getTiers
The updated content of the field
tiers
of the affected StandalonePrice.- Returns:
- tiers
-
getPreviousTiers
The previous content of the field
tiers
of the affected StandalonePrice.- Returns:
- previousTiers
-
build
builds StandalonePriceTiersSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<StandalonePriceTiersSetMessagePayload>
- Returns:
- StandalonePriceTiersSetMessagePayload
-
buildUnchecked
builds StandalonePriceTiersSetMessagePayload without checking for non-null required values- Returns:
- StandalonePriceTiersSetMessagePayload
-
of
factory method for an instance of StandalonePriceTiersSetMessagePayloadBuilder- Returns:
- builder
-
of
public static StandalonePriceTiersSetMessagePayloadBuilder of(StandalonePriceTiersSetMessagePayload template) create builder for StandalonePriceTiersSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-