Class CartSetAnonymousIdActionBuilder

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

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

     CartSetAnonymousIdAction cartSetAnonymousIdAction = CartSetAnonymousIdAction.builder()
             .build()
 
  • Constructor Details

    • CartSetAnonymousIdActionBuilder

      public CartSetAnonymousIdActionBuilder()
  • Method Details

    • anonymousId

      public CartSetAnonymousIdActionBuilder anonymousId(@Nullable String anonymousId)

      Value to set. If empty, any existing value is removed.

      Parameters:
      anonymousId - value to be set
      Returns:
      Builder
    • getAnonymousId

      @Nullable public String getAnonymousId()

      Value to set. If empty, any existing value is removed.

      Returns:
      anonymousId
    • build

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

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

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

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