Class CustomerSetLocaleActionBuilder

java.lang.Object
com.commercetools.api.models.customer.CustomerSetLocaleActionBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<CustomerSetLocaleAction>

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

     CustomerSetLocaleAction customerSetLocaleAction = CustomerSetLocaleAction.builder()
             .build()
 
  • Constructor Details

    • CustomerSetLocaleActionBuilder

      public CustomerSetLocaleActionBuilder()
  • Method Details

    • locale

      Value to set. Must be one of the languages supported by the Project.

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

      @Nullable public String getLocale()

      Value to set. Must be one of the languages supported by the Project.

      Returns:
      locale
    • build

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

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

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

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