Class StandalonePriceLabelBuilder
java.lang.Object
com.commercetools.history.models.label.StandalonePriceLabelBuilder
- All Implemented Interfaces:
Builder<StandalonePriceLabel>
StandalonePriceLabelBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StandalonePriceLabel standalonePriceLabel = StandalonePriceLabel.builder()
.sku("{sku}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds StandalonePriceLabel with checking for non-null required valuesbuilds StandalonePriceLabel without checking for non-null required valuesgetKey()User-defined unique identifier of the Standalone Price.getSku()Unique Product SKU variant identifier to which the Standalone Price is associated.User-defined unique identifier of the Standalone Price.static StandalonePriceLabelBuilderof()factory method for an instance of StandalonePriceLabelBuilderstatic StandalonePriceLabelBuilderof(StandalonePriceLabel template) create builder for StandalonePriceLabel instanceUnique Product SKU variant identifier to which the Standalone Price is associated.
-
Constructor Details
-
StandalonePriceLabelBuilder
public StandalonePriceLabelBuilder()
-
-
Method Details
-
key
User-defined unique identifier of the Standalone Price.
- Parameters:
key- value to be set- Returns:
- Builder
-
sku
Unique Product SKU variant identifier to which the Standalone Price is associated.
- Parameters:
sku- value to be set- Returns:
- Builder
-
getKey
User-defined unique identifier of the Standalone Price.
- Returns:
- key
-
getSku
Unique Product SKU variant identifier to which the Standalone Price is associated.
- Returns:
- sku
-
build
builds StandalonePriceLabel with checking for non-null required values- Specified by:
buildin interfaceBuilder<StandalonePriceLabel>- Returns:
- StandalonePriceLabel
-
buildUnchecked
builds StandalonePriceLabel without checking for non-null required values- Returns:
- StandalonePriceLabel
-
of
factory method for an instance of StandalonePriceLabelBuilder- Returns:
- builder
-
of
create builder for StandalonePriceLabel instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-