Class MyCartSetCountryActionBuilder

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

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

     MyCartSetCountryAction myCartSetCountryAction = MyCartSetCountryAction.builder()
             .build()
 
  • Constructor Details

    • MyCartSetCountryActionBuilder

      public MyCartSetCountryActionBuilder()
  • Method Details

    • country

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

      If the Cart is bound to a store, the provided value must be included in the Store's countries. Otherwise a CountryNotConfiguredInStore error is returned.

      Parameters:
      country - value to be set
      Returns:
      Builder
    • getCountry

      @Nullable public String getCountry()

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

      If the Cart is bound to a store, the provided value must be included in the Store's countries. Otherwise a CountryNotConfiguredInStore error is returned.

      Returns:
      country
    • build

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

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

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

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