Interface StoreCountriesChangedMessage

All Superinterfaces:
BaseResource, DomainResource<Message>, Identifiable<Message>, Message, Versioned<Message>

public interface StoreCountriesChangedMessage extends Message

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


Example to create an instance using the builder pattern

     StoreCountriesChangedMessage storeCountriesChangedMessage = StoreCountriesChangedMessage.builder()
             .id("{id}")
             .version(0.3)
             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
             .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
             .sequenceNumber(0.3)
             .resource(resourceBuilder -> resourceBuilder)
             .resourceVersion(0.3)
             .build()
 
  • Field Details

    • STORE_COUNTRIES_CHANGED

      static final String STORE_COUNTRIES_CHANGED
      discriminator value for StoreCountriesChangedMessage
      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 StoreCountriesChangedMessage
    • of

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

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

      builder factory method for StoreCountriesChangedMessage
      Returns:
      builder
    • builder

      create builder for StoreCountriesChangedMessage instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withStoreCountriesChangedMessage

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