Class VariantMoveImageToPositionActionBuilder

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

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

     VariantMoveImageToPositionAction variantMoveImageToPositionAction = VariantMoveImageToPositionAction.builder()
             .imageUrl("{imageUrl}")
             .position(0.3)
             .build()
 
  • Constructor Details

    • VariantMoveImageToPositionActionBuilder

      public VariantMoveImageToPositionActionBuilder()
  • Method Details

    • imageUrl

      public VariantMoveImageToPositionActionBuilder imageUrl(String imageUrl)

      The URL of the image to update.

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

      public VariantMoveImageToPositionActionBuilder 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

      public VariantMoveImageToPositionActionBuilder staged(@Nullable Boolean 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
    • 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 VariantMoveImageToPositionAction with checking for non-null required values
      Specified by:
      build in interface Builder<VariantMoveImageToPositionAction>
      Returns:
      VariantMoveImageToPositionAction
    • buildUnchecked

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

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

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