Class MyCartSetLocaleActionBuilder

java.lang.Object
com.commercetools.api.models.me.MyCartSetLocaleActionBuilder
All Implemented Interfaces:
Builder<MyCartSetLocaleAction>

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

     MyCartSetLocaleAction myCartSetLocaleAction = MyCartSetLocaleAction.builder()
             .build()
 
  • Constructor Details

    • MyCartSetLocaleActionBuilder

      public MyCartSetLocaleActionBuilder()
  • 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 MyCartSetLocaleAction build()
      builds MyCartSetLocaleAction with checking for non-null required values
      Specified by:
      build in interface Builder<MyCartSetLocaleAction>
      Returns:
      MyCartSetLocaleAction
    • buildUnchecked

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

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

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