Interface StoreCountriesChangedMessagePayload

All Superinterfaces:
MessagePayload, MessagePayloadMixin

public interface StoreCountriesChangedMessagePayload extends MessagePayload

Generated after a successful Add Country, Remove Country, or Set Countries update action.


Example to create an instance using the builder pattern

     StoreCountriesChangedMessagePayload storeCountriesChangedMessagePayload = StoreCountriesChangedMessagePayload.builder()
             .build()
 
  • Field Details

    • STORE_COUNTRIES_CHANGED

      static final String STORE_COUNTRIES_CHANGED
      discriminator value for StoreCountriesChangedMessagePayload
      See Also:
  • Method Details

    • getAddedCountries

      @Valid @Valid List<StoreCountry> getAddedCountries()

      Countries added to the Store.

      Returns:
      addedCountries
    • getRemovedCountries

      @Valid @Valid List<StoreCountry> getRemovedCountries()

      Countries removed from the Store.

      Returns:
      removedCountries
    • setAddedCountries

      void setAddedCountries(StoreCountry... addedCountries)

      Countries added to the Store.

      Parameters:
      addedCountries - values to be set
    • setAddedCountries

      void setAddedCountries(List<StoreCountry> addedCountries)

      Countries added to the Store.

      Parameters:
      addedCountries - values to be set
    • setRemovedCountries

      void setRemovedCountries(StoreCountry... removedCountries)

      Countries removed from the Store.

      Parameters:
      removedCountries - values to be set
    • setRemovedCountries

      void setRemovedCountries(List<StoreCountry> removedCountries)

      Countries removed from the Store.

      Parameters:
      removedCountries - values to be set
    • of

      factory method
      Returns:
      instance of StoreCountriesChangedMessagePayload
    • of

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

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

      builder factory method for StoreCountriesChangedMessagePayload
      Returns:
      builder
    • builder

      create builder for StoreCountriesChangedMessagePayload instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withStoreCountriesChangedMessagePayload

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