Class StandalonePriceChangeValueActionBuilder
java.lang.Object
com.commercetools.api.models.standalone_price.StandalonePriceChangeValueActionBuilder
- All Implemented Interfaces:
Builder<StandalonePriceChangeValueAction>
public class StandalonePriceChangeValueActionBuilder
extends Object
implements Builder<StandalonePriceChangeValueAction>
StandalonePriceChangeValueActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StandalonePriceChangeValueAction standalonePriceChangeValueAction = StandalonePriceChangeValueAction.builder()
.value(valueBuilder -> valueBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds StandalonePriceChangeValueAction with checking for non-null required valuesbuilds StandalonePriceChangeValueAction without checking for non-null required valuesIf set totruethe update action applies to the StagedStandalonePrice.getValue()New value to set.of()factory method for an instance of StandalonePriceChangeValueActionBuilderof(StandalonePriceChangeValueAction template) create builder for StandalonePriceChangeValueAction instanceIf set totruethe update action applies to the StagedStandalonePrice.New value to set.value(Function<MoneyBuilder, MoneyBuilder> builder) New value to set.withValue(Function<MoneyBuilder, Money> builder) New value to set.
-
Constructor Details
-
StandalonePriceChangeValueActionBuilder
public StandalonePriceChangeValueActionBuilder()
-
-
Method Details
-
value
New value to set. Must not be empty.
To set the money value in high precision, use HighPrecisionMoneyDraft.
- Parameters:
builder- function to build the value value- Returns:
- Builder
-
withValue
New value to set. Must not be empty.
To set the money value in high precision, use HighPrecisionMoneyDraft.
- Parameters:
builder- function to build the value value- Returns:
- Builder
-
value
New value to set. Must not be empty.
To set the money value in high precision, use HighPrecisionMoneyDraft.
- Parameters:
value- value to be set- Returns:
- Builder
-
staged
If set to
truethe update action applies to the StagedStandalonePrice. If set tofalse, the update action applies to the current StandalonePrice.- Parameters:
staged- value to be set- Returns:
- Builder
-
getValue
New value to set. Must not be empty.
To set the money value in high precision, use HighPrecisionMoneyDraft.
- Returns:
- value
-
getStaged
If set to
truethe update action applies to the StagedStandalonePrice. If set tofalse, the update action applies to the current StandalonePrice.- Returns:
- staged
-
build
builds StandalonePriceChangeValueAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<StandalonePriceChangeValueAction>- Returns:
- StandalonePriceChangeValueAction
-
buildUnchecked
builds StandalonePriceChangeValueAction without checking for non-null required values- Returns:
- StandalonePriceChangeValueAction
-
of
factory method for an instance of StandalonePriceChangeValueActionBuilder- Returns:
- builder
-
of
create builder for StandalonePriceChangeValueAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-