Interface StoreRemoveCountryAction

All Superinterfaces:
ResourceUpdateAction<StoreUpdateAction>, StoreUpdateAction

public interface StoreRemoveCountryAction extends StoreUpdateAction

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


Example to create an instance using the builder pattern

     StoreRemoveCountryAction storeRemoveCountryAction = StoreRemoveCountryAction.builder()
             .country(countryBuilder -> countryBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getCountry

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

      Value to remove from countries.

      Returns:
      country
    • setCountry

      void setCountry(StoreCountry country)

      Value to remove from countries.

      Parameters:
      country - value to be set
    • of

      factory method
      Returns:
      instance of StoreRemoveCountryAction
    • of

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

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

      builder factory method for StoreRemoveCountryAction
      Returns:
      builder
    • builder

      create builder for StoreRemoveCountryAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withStoreRemoveCountryAction

      default <T> T withStoreRemoveCountryAction(Function<StoreRemoveCountryAction,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<StoreRemoveCountryAction> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference