Class StandalonePriceRemovePriceTierActionBuilder
java.lang.Object
com.commercetools.api.models.standalone_price.StandalonePriceRemovePriceTierActionBuilder
- All Implemented Interfaces:
Builder<StandalonePriceRemovePriceTierAction>
public class StandalonePriceRemovePriceTierActionBuilder
extends Object
implements Builder<StandalonePriceRemovePriceTierAction>
StandalonePriceRemovePriceTierActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StandalonePriceRemovePriceTierAction standalonePriceRemovePriceTierAction = StandalonePriceRemovePriceTierAction.builder()
.tierMinimumQuantity(0.3)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StandalonePriceRemovePriceTierAction with checking for non-null required valuesbuilds StandalonePriceRemovePriceTierAction without checking for non-null required valuesTheminimumQuantity
of the PriceTier to be removed from thetiers
field of the StandalonePrice.of()
factory method for an instance of StandalonePriceRemovePriceTierActionBuilderof
(StandalonePriceRemovePriceTierAction template) create builder for StandalonePriceRemovePriceTierAction instancetierMinimumQuantity
(Long tierMinimumQuantity) TheminimumQuantity
of the PriceTier to be removed from thetiers
field of the StandalonePrice.
-
Constructor Details
-
StandalonePriceRemovePriceTierActionBuilder
public StandalonePriceRemovePriceTierActionBuilder()
-
-
Method Details
-
tierMinimumQuantity
The
minimumQuantity
of the PriceTier to be removed from thetiers
field of the StandalonePrice.- Parameters:
tierMinimumQuantity
- value to be set- Returns:
- Builder
-
getTierMinimumQuantity
The
minimumQuantity
of the PriceTier to be removed from thetiers
field of the StandalonePrice.- Returns:
- tierMinimumQuantity
-
build
builds StandalonePriceRemovePriceTierAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StandalonePriceRemovePriceTierAction>
- Returns:
- StandalonePriceRemovePriceTierAction
-
buildUnchecked
builds StandalonePriceRemovePriceTierAction without checking for non-null required values- Returns:
- StandalonePriceRemovePriceTierAction
-
of
factory method for an instance of StandalonePriceRemovePriceTierActionBuilder- Returns:
- builder
-
of
public static StandalonePriceRemovePriceTierActionBuilder of(StandalonePriceRemovePriceTierAction template) create builder for StandalonePriceRemovePriceTierAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-