Class StagedOrderSetCountryActionBuilder

java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderSetCountryActionBuilder
All Implemented Interfaces:
Builder<StagedOrderSetCountryAction>

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

     StagedOrderSetCountryAction stagedOrderSetCountryAction = StagedOrderSetCountryAction.builder()
             .build()
 
  • Constructor Details

    • StagedOrderSetCountryActionBuilder

      public StagedOrderSetCountryActionBuilder()
  • 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

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

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

      factory method for an instance of StagedOrderSetCountryActionBuilder
      Returns:
      builder
    • of

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