Class StagedPriceDraftBuilder
java.lang.Object
com.commercetools.api.models.standalone_price.StagedPriceDraftBuilder
- All Implemented Interfaces:
Builder<StagedPriceDraft>
StagedPriceDraftBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedPriceDraft stagedPriceDraft = StagedPriceDraft.builder()
.value(valueBuilder -> valueBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedPriceDraft with checking for non-null required valuesbuilds StagedPriceDraft without checking for non-null required valuesgetValue()
Money value for the StagedPriceDraft.static StagedPriceDraftBuilder
of()
factory method for an instance of StagedPriceDraftBuilderstatic StagedPriceDraftBuilder
of
(StagedPriceDraft template) create builder for StagedPriceDraft instancevalue
(TypedMoneyDraft value) Money value for the StagedPriceDraft.value
(Function<TypedMoneyDraftBuilder, Builder<? extends TypedMoneyDraft>> builder) Money value for the StagedPriceDraft.
-
Constructor Details
-
StagedPriceDraftBuilder
public StagedPriceDraftBuilder()
-
-
Method Details
-
value
Money value for the StagedPriceDraft.
- Parameters:
value
- value to be set- Returns:
- Builder
-
value
public StagedPriceDraftBuilder value(Function<TypedMoneyDraftBuilder, Builder<? extends TypedMoneyDraft>> builder) Money value for the StagedPriceDraft.
- Parameters:
builder
- function to build the value value- Returns:
- Builder
-
getValue
Money value for the StagedPriceDraft.
- Returns:
- value
-
build
builds StagedPriceDraft with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedPriceDraft>
- Returns:
- StagedPriceDraft
-
buildUnchecked
builds StagedPriceDraft without checking for non-null required values- Returns:
- StagedPriceDraft
-
of
factory method for an instance of StagedPriceDraftBuilder- Returns:
- builder
-
of
create builder for StagedPriceDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-