Interface StoreAddCountryAction

All Superinterfaces:
ResourceUpdateAction<StoreUpdateAction>, StoreUpdateAction

public interface StoreAddCountryAction extends StoreUpdateAction

This update action produces the StoreCountriesChanged Message. It has no effect if the given country is already present in a Store.


Example to create an instance using the builder pattern

     StoreAddCountryAction storeAddCountryAction = StoreAddCountryAction.builder()
             .country(countryBuilder -> countryBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getCountry

      @NotNull @Valid @NotNull @Valid StoreCountry getCountry()

      Value to append to countries.

      Returns:
      country
    • setCountry

      void setCountry(StoreCountry country)

      Value to append to countries.

      Parameters:
      country - value to be set
    • of

      static StoreAddCountryAction of()
      factory method
      Returns:
      instance of StoreAddCountryAction
    • of

      factory method to create a shallow copy StoreAddCountryAction
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of StoreAddCountryAction
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static StoreAddCountryActionBuilder builder()
      builder factory method for StoreAddCountryAction
      Returns:
      builder
    • builder

      create builder for StoreAddCountryAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withStoreAddCountryAction

      default <T> T withStoreAddCountryAction(Function<StoreAddCountryAction,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<StoreAddCountryAction> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference