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.

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

      @Nullable public String getKey()

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

      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