Class OrderSetLocaleActionBuilder

java.lang.Object
com.commercetools.api.models.order.OrderSetLocaleActionBuilder
All Implemented Interfaces:
Builder<OrderSetLocaleAction>

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

     OrderSetLocaleAction orderSetLocaleAction = OrderSetLocaleAction.builder()
             .build()
 
  • Constructor Details

    • OrderSetLocaleActionBuilder

      public OrderSetLocaleActionBuilder()
  • Method Details

    • locale

      Value to set. Must be one of the Project's languages. If empty, any existing value is 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 is removed.

      Returns:
      locale
    • build

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

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

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

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