Class StandalonePriceCreatedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.StandalonePriceCreatedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<StandalonePriceCreatedMessagePayload>
public class StandalonePriceCreatedMessagePayloadBuilder
extends Object
implements Builder<StandalonePriceCreatedMessagePayload>
StandalonePriceCreatedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StandalonePriceCreatedMessagePayload standalonePriceCreatedMessagePayload = StandalonePriceCreatedMessagePayload.builder()
.standalonePrice(standalonePriceBuilder -> standalonePriceBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StandalonePriceCreatedMessagePayload with checking for non-null required valuesbuilds StandalonePriceCreatedMessagePayload without checking for non-null required valuesStandalone Price that was created.of()
factory method for an instance of StandalonePriceCreatedMessagePayloadBuilderof
(StandalonePriceCreatedMessagePayload template) create builder for StandalonePriceCreatedMessagePayload instancestandalonePrice
(StandalonePrice standalonePrice) Standalone Price that was created.Standalone Price that was created.Standalone Price that was created.
-
Constructor Details
-
StandalonePriceCreatedMessagePayloadBuilder
public StandalonePriceCreatedMessagePayloadBuilder()
-
-
Method Details
-
standalonePrice
public StandalonePriceCreatedMessagePayloadBuilder standalonePrice(Function<StandalonePriceBuilder, StandalonePriceBuilder> builder) Standalone Price that was created.
- Parameters:
builder
- function to build the standalonePrice value- Returns:
- Builder
-
withStandalonePrice
public StandalonePriceCreatedMessagePayloadBuilder withStandalonePrice(Function<StandalonePriceBuilder, StandalonePrice> builder) Standalone Price that was created.
- Parameters:
builder
- function to build the standalonePrice value- Returns:
- Builder
-
standalonePrice
Standalone Price that was created.
- Parameters:
standalonePrice
- value to be set- Returns:
- Builder
-
getStandalonePrice
Standalone Price that was created.
- Returns:
- standalonePrice
-
build
builds StandalonePriceCreatedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<StandalonePriceCreatedMessagePayload>
- Returns:
- StandalonePriceCreatedMessagePayload
-
buildUnchecked
builds StandalonePriceCreatedMessagePayload without checking for non-null required values- Returns:
- StandalonePriceCreatedMessagePayload
-
of
factory method for an instance of StandalonePriceCreatedMessagePayloadBuilder- Returns:
- builder
-
of
public static StandalonePriceCreatedMessagePayloadBuilder of(StandalonePriceCreatedMessagePayload template) create builder for StandalonePriceCreatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-