Class ProductTypeSetKeyActionBuilder

java.lang.Object
com.commercetools.api.models.product_type.ProductTypeSetKeyActionBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<ProductTypeSetKeyAction>

public class ProductTypeSetKeyActionBuilder extends Object implements io.vrap.rmf.base.client.Builder<ProductTypeSetKeyAction>
ProductTypeSetKeyActionBuilder
Example to create an instance using the builder pattern

     ProductTypeSetKeyAction productTypeSetKeyAction = ProductTypeSetKeyAction.builder()
             .build()
 
  • Constructor Details

    • ProductTypeSetKeyActionBuilder

      public ProductTypeSetKeyActionBuilder()
  • 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 ProductTypeSetKeyAction build()
      builds ProductTypeSetKeyAction with checking for non-null required values
      Specified by:
      build in interface io.vrap.rmf.base.client.Builder<ProductTypeSetKeyAction>
      Returns:
      ProductTypeSetKeyAction
    • buildUnchecked

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

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

      create builder for ProductTypeSetKeyAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder