Class StandalonePriceLabelBuilder

java.lang.Object
com.commercetools.history.models.label.StandalonePriceLabelBuilder
All Implemented Interfaces:
Builder<StandalonePriceLabel>

public class StandalonePriceLabelBuilder extends Object implements Builder<StandalonePriceLabel>
StandalonePriceLabelBuilder
Example to create an instance using the builder pattern

     StandalonePriceLabel standalonePriceLabel = StandalonePriceLabel.builder()
             .sku("{sku}")
             .build()
 
  • Constructor Details

    • StandalonePriceLabelBuilder

      public StandalonePriceLabelBuilder()
  • Method Details

    • key

      public StandalonePriceLabelBuilder key(@Nullable String 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

      @Nullable public String getKey()

      User-defined unique identifier of the Standalone Price.

      Returns:
      key
    • getSku

      public String getSku()

      Unique Product SKU variant identifier to which the Standalone Price is associated.

      Returns:
      sku
    • build

      public StandalonePriceLabel build()
      builds StandalonePriceLabel with checking for non-null required values
      Specified by:
      build in interface Builder<StandalonePriceLabel>
      Returns:
      StandalonePriceLabel
    • buildUnchecked

      public StandalonePriceLabel buildUnchecked()
      builds StandalonePriceLabel without checking for non-null required values
      Returns:
      StandalonePriceLabel
    • of

      public static StandalonePriceLabelBuilder 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