Class StoreCountryBuilder

java.lang.Object
com.commercetools.history.models.common.StoreCountryBuilder
All Implemented Interfaces:
Builder<StoreCountry>

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

     StoreCountry storeCountry = StoreCountry.builder()
             .code("{code}")
             .build()
 
  • Constructor Details

    • StoreCountryBuilder

      public StoreCountryBuilder()
  • Method Details

    • code

      public StoreCountryBuilder code(String code)

      Two-digit country code as per ISO 3166-1 alpha-2.

      Parameters:
      code - value to be set
      Returns:
      Builder
    • getCode

      public String getCode()

      Two-digit country code as per ISO 3166-1 alpha-2.

      Returns:
      code
    • build

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

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

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

      public static StoreCountryBuilder of(StoreCountry template)
      create builder for StoreCountry instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder