Class ProductVariantImportDraftBuilder

java.lang.Object
com.commercetools.api.models.order.ProductVariantImportDraftBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<ProductVariantImportDraft>

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

     ProductVariantImportDraft productVariantImportDraft = ProductVariantImportDraft.builder()
             .build()
 
  • Constructor Details

  • Method Details

    • id

      The sequential ID of the variant within the product. The variant with provided ID should exist in some existing product, so you also need to specify the productId if this property is set, or alternatively you can just specify SKU of the product variant.

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

      The SKU of the existing variant.

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

      The Embedded Prices of the variant. The prices should not contain two prices for the same price scope (same currency, country, customer group, channel, valid from and valid until). If this property is defined, then it will override the prices property from the original product variant, otherwise prices property from the original product variant would be copied in the resulting order.

      Parameters:
      prices - value to be set
      Returns:
      Builder
    • prices

      The Embedded Prices of the variant. The prices should not contain two prices for the same price scope (same currency, country, customer group, channel, valid from and valid until). If this property is defined, then it will override the prices property from the original product variant, otherwise prices property from the original product variant would be copied in the resulting order.

      Parameters:
      prices - value to be set
      Returns:
      Builder
    • plusPrices

      The Embedded Prices of the variant. The prices should not contain two prices for the same price scope (same currency, country, customer group, channel, valid from and valid until). If this property is defined, then it will override the prices property from the original product variant, otherwise prices property from the original product variant would be copied in the resulting order.

      Parameters:
      prices - value to be set
      Returns:
      Builder
    • plusPrices

      The Embedded Prices of the variant. The prices should not contain two prices for the same price scope (same currency, country, customer group, channel, valid from and valid until). If this property is defined, then it will override the prices property from the original product variant, otherwise prices property from the original product variant would be copied in the resulting order.

      Parameters:
      builder - function to build the prices value
      Returns:
      Builder
    • withPrices

      The Embedded Prices of the variant. The prices should not contain two prices for the same price scope (same currency, country, customer group, channel, valid from and valid until). If this property is defined, then it will override the prices property from the original product variant, otherwise prices property from the original product variant would be copied in the resulting order.

      Parameters:
      builder - function to build the prices value
      Returns:
      Builder
    • addPrices

      The Embedded Prices of the variant. The prices should not contain two prices for the same price scope (same currency, country, customer group, channel, valid from and valid until). If this property is defined, then it will override the prices property from the original product variant, otherwise prices property from the original product variant would be copied in the resulting order.

      Parameters:
      builder - function to build the prices value
      Returns:
      Builder
    • setPrices

      The Embedded Prices of the variant. The prices should not contain two prices for the same price scope (same currency, country, customer group, channel, valid from and valid until). If this property is defined, then it will override the prices property from the original product variant, otherwise prices property from the original product variant would be copied in the resulting order.

      Parameters:
      builder - function to build the prices value
      Returns:
      Builder
    • attributes

      If this property is defined, then it will override the attributes property from the original product variant, otherwise attributes property from the original product variant would be copied in the resulting order.

      Parameters:
      attributes - value to be set
      Returns:
      Builder
    • attributes

      If this property is defined, then it will override the attributes property from the original product variant, otherwise attributes property from the original product variant would be copied in the resulting order.

      Parameters:
      attributes - value to be set
      Returns:
      Builder
    • plusAttributes

      If this property is defined, then it will override the attributes property from the original product variant, otherwise attributes property from the original product variant would be copied in the resulting order.

      Parameters:
      attributes - value to be set
      Returns:
      Builder
    • plusAttributes

      If this property is defined, then it will override the attributes property from the original product variant, otherwise attributes property from the original product variant would be copied in the resulting order.

      Parameters:
      builder - function to build the attributes value
      Returns:
      Builder
    • withAttributes

      If this property is defined, then it will override the attributes property from the original product variant, otherwise attributes property from the original product variant would be copied in the resulting order.

      Parameters:
      builder - function to build the attributes value
      Returns:
      Builder
    • addAttributes

      If this property is defined, then it will override the attributes property from the original product variant, otherwise attributes property from the original product variant would be copied in the resulting order.

      Parameters:
      builder - function to build the attributes value
      Returns:
      Builder
    • setAttributes

      If this property is defined, then it will override the attributes property from the original product variant, otherwise attributes property from the original product variant would be copied in the resulting order.

      Parameters:
      builder - function to build the attributes value
      Returns:
      Builder
    • images

      If this property is defined, then it will override the images property from the original product variant, otherwise images property from the original product variant would be copied in the resulting order.

      Parameters:
      images - value to be set
      Returns:
      Builder
    • images

      If this property is defined, then it will override the images property from the original product variant, otherwise images property from the original product variant would be copied in the resulting order.

      Parameters:
      images - value to be set
      Returns:
      Builder
    • plusImages

      If this property is defined, then it will override the images property from the original product variant, otherwise images property from the original product variant would be copied in the resulting order.

      Parameters:
      images - value to be set
      Returns:
      Builder
    • plusImages

      If this property is defined, then it will override the images property from the original product variant, otherwise images property from the original product variant would be copied in the resulting order.

      Parameters:
      builder - function to build the images value
      Returns:
      Builder
    • withImages

      If this property is defined, then it will override the images property from the original product variant, otherwise images property from the original product variant would be copied in the resulting order.

      Parameters:
      builder - function to build the images value
      Returns:
      Builder
    • addImages

      If this property is defined, then it will override the images property from the original product variant, otherwise images property from the original product variant would be copied in the resulting order.

      Parameters:
      builder - function to build the images value
      Returns:
      Builder
    • setImages

      If this property is defined, then it will override the images property from the original product variant, otherwise images property from the original product variant would be copied in the resulting order.

      Parameters:
      builder - function to build the images value
      Returns:
      Builder
    • getId

      @Nullable public Long getId()

      The sequential ID of the variant within the product. The variant with provided ID should exist in some existing product, so you also need to specify the productId if this property is set, or alternatively you can just specify SKU of the product variant.

      Returns:
      id
    • getSku

      The SKU of the existing variant.

      Returns:
      sku
    • getPrices

      The Embedded Prices of the variant. The prices should not contain two prices for the same price scope (same currency, country, customer group, channel, valid from and valid until). If this property is defined, then it will override the prices property from the original product variant, otherwise prices property from the original product variant would be copied in the resulting order.

      Returns:
      prices
    • getAttributes

      If this property is defined, then it will override the attributes property from the original product variant, otherwise attributes property from the original product variant would be copied in the resulting order.

      Returns:
      attributes
    • getImages

      If this property is defined, then it will override the images property from the original product variant, otherwise images property from the original product variant would be copied in the resulting order.

      Returns:
      images
    • build

      builds ProductVariantImportDraft with checking for non-null required values
      Specified by:
      build in interface io.vrap.rmf.base.client.Builder<ProductVariantImportDraft>
      Returns:
      ProductVariantImportDraft
    • buildUnchecked

      builds ProductVariantImportDraft without checking for non-null required values
      Returns:
      ProductVariantImportDraft
    • of

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

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