Class CartSetKeyActionBuilder

java.lang.Object
com.commercetools.api.models.cart.CartSetKeyActionBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<CartSetKeyAction>

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

     CartSetKeyAction cartSetKeyAction = CartSetKeyAction.builder()
             .build()
 
  • Constructor Details

    • CartSetKeyActionBuilder

      public CartSetKeyActionBuilder()
  • Method Details

    • key

      Value to set. If empty, any existing key will be removed.

      Parameters:
      key - value to be set
      Returns:
      Builder
    • getKey

      @Nullable public String getKey()

      Value to set. If empty, any existing key will be removed.

      Returns:
      key
    • build

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

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

      public static CartSetKeyActionBuilder of()
      factory method for an instance of CartSetKeyActionBuilder
      Returns:
      builder
    • of

      public static CartSetKeyActionBuilder of(CartSetKeyAction template)
      create builder for CartSetKeyAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder