Class MyCartSetLineItemSupplyChannelActionBuilder

java.lang.Object
com.commercetools.api.models.me.MyCartSetLineItemSupplyChannelActionBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<MyCartSetLineItemSupplyChannelAction>

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

     MyCartSetLineItemSupplyChannelAction myCartSetLineItemSupplyChannelAction = MyCartSetLineItemSupplyChannelAction.builder()
             .build()
 
  • Constructor Details

    • MyCartSetLineItemSupplyChannelActionBuilder

      public MyCartSetLineItemSupplyChannelActionBuilder()
  • Method Details

    • lineItemId

      id of the LineItem to update. Either lineItemId or lineItemKey is required.

      Parameters:
      lineItemId - value to be set
      Returns:
      Builder
    • lineItemKey

      key of the LineItem to update. Either lineItemId or lineItemKey is required.

      Parameters:
      lineItemKey - value to be set
      Returns:
      Builder
    • supplyChannel

      • If present, a Reference to the Channel is set for the LineItem specified by lineItemId.
      • If not present, the current Reference to a supply channel will be removed from the LineItem specified by lineItemId. The Channel must have the InventorySupply ChannelRoleEnum.
      Parameters:
      builder - function to build the supplyChannel value
      Returns:
      Builder
    • withSupplyChannel

      • If present, a Reference to the Channel is set for the LineItem specified by lineItemId.
      • If not present, the current Reference to a supply channel will be removed from the LineItem specified by lineItemId. The Channel must have the InventorySupply ChannelRoleEnum.
      Parameters:
      builder - function to build the supplyChannel value
      Returns:
      Builder
    • supplyChannel

      • If present, a Reference to the Channel is set for the LineItem specified by lineItemId.
      • If not present, the current Reference to a supply channel will be removed from the LineItem specified by lineItemId. The Channel must have the InventorySupply ChannelRoleEnum.
      Parameters:
      supplyChannel - value to be set
      Returns:
      Builder
    • getLineItemId

      @Nullable public String getLineItemId()

      id of the LineItem to update. Either lineItemId or lineItemKey is required.

      Returns:
      lineItemId
    • getLineItemKey

      @Nullable public String getLineItemKey()

      key of the LineItem to update. Either lineItemId or lineItemKey is required.

      Returns:
      lineItemKey
    • getSupplyChannel

      @Nullable public ChannelResourceIdentifier getSupplyChannel()
      • If present, a Reference to the Channel is set for the LineItem specified by lineItemId.
      • If not present, the current Reference to a supply channel will be removed from the LineItem specified by lineItemId. The Channel must have the InventorySupply ChannelRoleEnum.
      Returns:
      supplyChannel
    • build

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

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

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

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