Class ProductSetKeyActionBuilder

java.lang.Object
com.commercetools.api.models.product.ProductSetKeyActionBuilder
All Implemented Interfaces:
Builder<ProductSetKeyAction>

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

     ProductSetKeyAction productSetKeyAction = ProductSetKeyAction.builder()
             .build()
 
  • Constructor Details

    • ProductSetKeyActionBuilder

      public ProductSetKeyActionBuilder()
  • Method Details

    • key

      Value to set. If empty, any existing value will be removed.

      To update a Product using the Import API and the Merchant Center, the Product key must match the pattern ^[A-Za-z0-9_-]{2,256}$.

      Parameters:
      key - value to be set
      Returns:
      Builder
    • getKey

      @Nullable public String getKey()

      Value to set. If empty, any existing value will be removed.

      To update a Product using the Import API and the Merchant Center, the Product key must match the pattern ^[A-Za-z0-9_-]{2,256}$.

      Returns:
      key
    • build

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

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

      public static ProductSetKeyActionBuilder of()
      factory method for an instance of ProductSetKeyActionBuilder
      Returns:
      builder
    • of

      public static ProductSetKeyActionBuilder of(ProductSetKeyAction template)
      create builder for ProductSetKeyAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder