Class ProductSetAssetTagsActionBuilder

java.lang.Object
com.commercetools.api.models.product.ProductSetAssetTagsActionBuilder
All Implemented Interfaces:
Builder<ProductSetAssetTagsAction>

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

     ProductSetAssetTagsAction productSetAssetTagsAction = ProductSetAssetTagsAction.builder()
             .build()
 
  • Constructor Details

    • ProductSetAssetTagsActionBuilder

      public ProductSetAssetTagsActionBuilder()
  • Method Details

    • variantId

      public ProductSetAssetTagsActionBuilder variantId(@Nullable Long variantId)

      The id of the ProductVariant to update.

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

      public ProductSetAssetTagsActionBuilder sku(@Nullable String sku)

      The sku of the ProductVariant to update.

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

      public ProductSetAssetTagsActionBuilder staged(@Nullable Boolean staged)

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

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

      public ProductSetAssetTagsActionBuilder assetId(@Nullable String assetId)

      The id of the Asset to update.

      Parameters:
      assetId - value to be set
      Returns:
      Builder
    • assetKey

      public ProductSetAssetTagsActionBuilder assetKey(@Nullable String assetKey)

      The key of the Asset to update.

      Parameters:
      assetKey - value to be set
      Returns:
      Builder
    • tags

      public ProductSetAssetTagsActionBuilder tags(@Nullable String... tags)

      Keywords for categorizing and organizing Assets.

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

      public ProductSetAssetTagsActionBuilder tags(@Nullable List<String> tags)

      Keywords for categorizing and organizing Assets.

      Parameters:
      tags - value to be set
      Returns:
      Builder
    • plusTags

      public ProductSetAssetTagsActionBuilder plusTags(@Nullable String... tags)

      Keywords for categorizing and organizing Assets.

      Parameters:
      tags - value to be set
      Returns:
      Builder
    • getVariantId

      @Nullable public Long getVariantId()

      The id of the ProductVariant to update.

      Returns:
      variantId
    • getSku

      @Nullable public String getSku()

      The sku of the ProductVariant to update.

      Returns:
      sku
    • getStaged

      @Nullable public Boolean getStaged()

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

      Returns:
      staged
    • getAssetId

      @Nullable public String getAssetId()

      The id of the Asset to update.

      Returns:
      assetId
    • getAssetKey

      @Nullable public String getAssetKey()

      The key of the Asset to update.

      Returns:
      assetKey
    • getTags

      @Nullable public List<String> getTags()

      Keywords for categorizing and organizing Assets.

      Returns:
      tags
    • build

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

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

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

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