Class ProductMoveImageToPositionActionBuilder

java.lang.Object
com.commercetools.api.models.product.ProductMoveImageToPositionActionBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<ProductMoveImageToPositionAction>

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

     ProductMoveImageToPositionAction productMoveImageToPositionAction = ProductMoveImageToPositionAction.builder()
             .imageUrl("{imageUrl}")
             .position(0.3)
             .build()
 
  • Constructor Details

    • ProductMoveImageToPositionActionBuilder

      public ProductMoveImageToPositionActionBuilder()
  • Method Details

    • variantId

      The id of the ProductVariant to update.

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

      The sku of the ProductVariant to update.

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

      public ProductMoveImageToPositionActionBuilder imageUrl(String imageUrl)

      The URL of the image to update.

      Parameters:
      imageUrl - value to be set
      Returns:
      Builder
    • position

      public ProductMoveImageToPositionActionBuilder position(Long position)

      Position in images where the image should be moved. Must be between 0 and the total number of images minus 1.

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

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

      Parameters:
      staged - 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
    • getImageUrl

      public String getImageUrl()

      The URL of the image to update.

      Returns:
      imageUrl
    • getPosition

      public Long getPosition()

      Position in images where the image should be moved. Must be between 0 and the total number of images minus 1.

      Returns:
      position
    • getStaged

      @Nullable public Boolean getStaged()

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

      Returns:
      staged
    • build

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

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

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

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