Class CartSetLocaleActionBuilder

java.lang.Object
com.commercetools.api.models.cart.CartSetLocaleActionBuilder
All Implemented Interfaces:
Builder<CartSetLocaleAction>

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

     CartSetLocaleAction cartSetLocaleAction = CartSetLocaleAction.builder()
             .build()
 
  • Constructor Details

    • CartSetLocaleActionBuilder

      public CartSetLocaleActionBuilder()
  • Method Details

    • locale

      Value to set. Must be one of the Project's languages. If empty, any existing value will be removed.

      Parameters:
      locale - value to be set
      Returns:
      Builder
    • getLocale

      @Nullable public String getLocale()

      Value to set. Must be one of the Project's languages. If empty, any existing value will be removed.

      Returns:
      locale
    • build

      public CartSetLocaleAction build()
      builds CartSetLocaleAction with checking for non-null required values
      Specified by:
      build in interface Builder<CartSetLocaleAction>
      Returns:
      CartSetLocaleAction
    • buildUnchecked

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

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

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