Class VariantSetSkuActionBuilder

java.lang.Object
com.commercetools.api.models.variant.VariantSetSkuActionBuilder
All Implemented Interfaces:
Builder<VariantSetSkuAction>

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

     VariantSetSkuAction variantSetSkuAction = VariantSetSkuAction.builder()
             .build()
 
  • Constructor Details

    • VariantSetSkuActionBuilder

      public VariantSetSkuActionBuilder()
  • Method Details

    • sku

      public VariantSetSkuActionBuilder sku(@Nullable String sku)

      Value to set. Must be unique.

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

      public VariantSetSkuActionBuilder staged(@Nullable Boolean staged)

      If true, only the staged sku is updated. If false, both the current and staged sku are updated.

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

      @Nullable public String getSku()

      Value to set. Must be unique.

      Returns:
      sku
    • getStaged

      @Nullable public Boolean getStaged()

      If true, only the staged sku is updated. If false, both the current and staged sku are updated.

      Returns:
      staged
    • build

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

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

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

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