Interface StoreCreatedMessage

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

public interface StoreCreatedMessage extends Message

Generated after a successful Create Store request.


Example to create an instance using the builder pattern

     StoreCreatedMessage storeCreatedMessage = StoreCreatedMessage.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)
             .plusDistributionChannels(distributionChannelsBuilder -> distributionChannelsBuilder)
             .plusSupplyChannels(supplyChannelsBuilder -> supplyChannelsBuilder)
             .plusProductSelections(productSelectionsBuilder -> productSelectionsBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getName

      @Valid @Valid LocalizedString getName()

      The name of the Store that was created.

      Returns:
      name
    • getLanguages

      List<String> getLanguages()

      Languages of the Store that was created. Languages are represented as IETF language tags.

      Returns:
      languages
    • getCountries

      @Valid @Valid List<StoreCountry> getCountries()

      Countries of the Store that was created.

      Returns:
      countries
    • getDistributionChannels

      @NotNull @Valid @NotNull @Valid List<ChannelReference> getDistributionChannels()

      Distribution Channels of the Store that was created.

      Returns:
      distributionChannels
    • getSupplyChannels

      @NotNull @Valid @NotNull @Valid List<ChannelReference> getSupplyChannels()

      Supply Channels of the Store that was created.

      Returns:
      supplyChannels
    • getProductSelections

      @NotNull @Valid @NotNull @Valid List<ProductSelectionSetting> getProductSelections()

      ProductSelectionSettings of the Store that was created.

      Returns:
      productSelections
    • getCustom

      @Valid @Valid CustomFields getCustom()

      Custom Fields on the Store that was created.

      Returns:
      custom
    • setName

      void setName(LocalizedString name)

      The name of the Store that was created.

      Parameters:
      name - value to be set
    • setLanguages

      void setLanguages(String... languages)

      Languages of the Store that was created. Languages are represented as IETF language tags.

      Parameters:
      languages - values to be set
    • setLanguages

      void setLanguages(List<String> languages)

      Languages of the Store that was created. Languages are represented as IETF language tags.

      Parameters:
      languages - values to be set
    • setCountries

      void setCountries(StoreCountry... countries)

      Countries of the Store that was created.

      Parameters:
      countries - values to be set
    • setCountries

      void setCountries(List<StoreCountry> countries)

      Countries of the Store that was created.

      Parameters:
      countries - values to be set
    • setDistributionChannels

      void setDistributionChannels(ChannelReference... distributionChannels)

      Distribution Channels of the Store that was created.

      Parameters:
      distributionChannels - values to be set
    • setDistributionChannels

      void setDistributionChannels(List<ChannelReference> distributionChannels)

      Distribution Channels of the Store that was created.

      Parameters:
      distributionChannels - values to be set
    • setSupplyChannels

      void setSupplyChannels(ChannelReference... supplyChannels)

      Supply Channels of the Store that was created.

      Parameters:
      supplyChannels - values to be set
    • setSupplyChannels

      void setSupplyChannels(List<ChannelReference> supplyChannels)

      Supply Channels of the Store that was created.

      Parameters:
      supplyChannels - values to be set
    • setProductSelections

      void setProductSelections(ProductSelectionSetting... productSelections)

      ProductSelectionSettings of the Store that was created.

      Parameters:
      productSelections - values to be set
    • setProductSelections

      void setProductSelections(List<ProductSelectionSetting> productSelections)

      ProductSelectionSettings of the Store that was created.

      Parameters:
      productSelections - values to be set
    • setCustom

      void setCustom(CustomFields custom)

      Custom Fields on the Store that was created.

      Parameters:
      custom - value to be set
    • of

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

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

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

      static StoreCreatedMessageBuilder builder()
      builder factory method for StoreCreatedMessage
      Returns:
      builder
    • builder

      create builder for StoreCreatedMessage instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withStoreCreatedMessage

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