Class ProductDiscountChangeSortOrderActionBuilder

java.lang.Object
com.commercetools.api.models.product_discount.ProductDiscountChangeSortOrderActionBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<ProductDiscountChangeSortOrderAction>

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

     ProductDiscountChangeSortOrderAction productDiscountChangeSortOrderAction = ProductDiscountChangeSortOrderAction.builder()
             .sortOrder("{sortOrder}")
             .build()
 
  • Constructor Details

    • ProductDiscountChangeSortOrderActionBuilder

      public ProductDiscountChangeSortOrderActionBuilder()
  • Method Details

    • sortOrder

      New value to set. Must not be empty. The string value must be a number between 0 and 1. A Discount with a higher sortOrder is prioritized.

      Parameters:
      sortOrder - value to be set
      Returns:
      Builder
    • getSortOrder

      public String getSortOrder()

      New value to set. Must not be empty. The string value must be a number between 0 and 1. A Discount with a higher sortOrder is prioritized.

      Returns:
      sortOrder
    • build

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

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

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

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