Class ProductTailoringRemoveVariantActionBuilder

java.lang.Object
com.commercetools.api.models.product_tailoring.ProductTailoringRemoveVariantActionBuilder
All Implemented Interfaces:
Builder<ProductTailoringRemoveVariantAction>

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

     ProductTailoringRemoveVariantAction productTailoringRemoveVariantAction = ProductTailoringRemoveVariantAction.builder()
             .build()
 
  • Constructor Details

    • ProductTailoringRemoveVariantActionBuilder

      public ProductTailoringRemoveVariantActionBuilder()
  • Method Details

    • id

      The id of the ProductVariant to remove from the Tailoring.

      Parameters:
      id - value to be set
      Returns:
      Builder
    • sku

      The sku of the ProductVariant to remove from the Tailoring.

      Parameters:
      sku - value to be set
      Returns:
      Builder
    • staged

      public ProductTailoringRemoveVariantActionBuilder staged(@Nullable Boolean staged)

      If true, only the staged Product Variant Tailoring is removed. If false, both the current and staged Product Variant Tailoring is removed.

      Parameters:
      staged - value to be set
      Returns:
      Builder
    • getId

      @Nullable public Long getId()

      The id of the ProductVariant to remove from the Tailoring.

      Returns:
      id
    • getSku

      @Nullable public String getSku()

      The sku of the ProductVariant to remove from the Tailoring.

      Returns:
      sku
    • getStaged

      @Nullable public Boolean getStaged()

      If true, only the staged Product Variant Tailoring is removed. If false, both the current and staged Product Variant Tailoring is removed.

      Returns:
      staged
    • build

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

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

      factory method for an instance of ProductTailoringRemoveVariantActionBuilder
      Returns:
      builder
    • of

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