Interface StoreCreatedMessage
- All Superinterfaces:
BaseResource,DomainResource<Message>,Identifiable<Message>,Message,Versioned<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 Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StoreCreatedMessageBuilderbuilder()builder factory method for StoreCreatedMessagestatic StoreCreatedMessageBuilderbuilder(StoreCreatedMessage template) create builder for StoreCreatedMessage instancecopyDeep()static StoreCreatedMessagedeepCopy(StoreCreatedMessage template) factory method to create a deep copy of StoreCreatedMessage@Valid List<StoreCountry>@Valid CustomFieldsCustom Fields on the Store that was created.@NotNull @Valid List<ChannelReference>Distribution Channels of the Store that was created.Languages of the Store that was created.@Valid LocalizedStringgetName()Thenameof the Store that was created.@NotNull @Valid List<ProductSelectionSetting>ProductSelectionSettings of the Store that was created.@NotNull @Valid List<ChannelReference>Supply Channels of the Store that was created.static StoreCreatedMessageof()factory methodstatic StoreCreatedMessageof(StoreCreatedMessage template) factory method to create a shallow copy StoreCreatedMessagevoidsetCountries(StoreCountry... countries) voidsetCountries(List<StoreCountry> countries) voidsetCustom(CustomFields custom) Custom Fields on the Store that was created.voidsetDistributionChannels(ChannelReference... distributionChannels) Distribution Channels of the Store that was created.voidsetDistributionChannels(List<ChannelReference> distributionChannels) Distribution Channels of the Store that was created.voidsetLanguages(String... languages) Languages of the Store that was created.voidsetLanguages(List<String> languages) Languages of the Store that was created.voidsetName(LocalizedString name) Thenameof the Store that was created.voidsetProductSelections(ProductSelectionSetting... productSelections) ProductSelectionSettings of the Store that was created.voidsetProductSelections(List<ProductSelectionSetting> productSelections) ProductSelectionSettings of the Store that was created.voidsetSupplyChannels(ChannelReference... supplyChannels) Supply Channels of the Store that was created.voidsetSupplyChannels(List<ChannelReference> supplyChannels) Supply Channels of the Store that was created.static com.fasterxml.jackson.core.type.TypeReference<StoreCreatedMessage>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithStoreCreatedMessage(Function<StoreCreatedMessage, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResourceMethods inherited from interface com.commercetools.api.models.DomainResource
getMethods inherited from interface com.commercetools.api.models.message.Message
getCreatedAt, getCreatedBy, getId, getLastModifiedAt, getLastModifiedBy, getResource, getResourceUserProvidedIdentifiers, getResourceVersion, getSequenceNumber, getType, getVersion, setCreatedAt, setCreatedBy, setId, setLastModifiedAt, setLastModifiedBy, setResource, setResourceUserProvidedIdentifiers, setResourceVersion, setSequenceNumber, setVersion, withMessage
-
Field Details
-
STORE_CREATED
discriminator value for StoreCreatedMessage- See Also:
-
-
Method Details
-
getName
The
nameof the Store that was created.- Returns:
- name
-
getLanguages
Languages of the Store that was created. Languages are represented as IETF language tags.
- Returns:
- languages
-
getCountries
- Returns:
- countries
-
getDistributionChannels
Distribution Channels of the Store that was created.
- Returns:
- distributionChannels
-
getSupplyChannels
Supply Channels of the Store that was created.
- Returns:
- supplyChannels
-
getProductSelections
ProductSelectionSettings of the Store that was created.
- Returns:
- productSelections
-
getCustom
Custom Fields on the Store that was created.
- Returns:
- custom
-
setName
The
nameof the Store that was created.- Parameters:
name- value to be set
-
setLanguages
Languages of the Store that was created. Languages are represented as IETF language tags.
- Parameters:
languages- values to be set
-
setLanguages
Languages of the Store that was created. Languages are represented as IETF language tags.
- Parameters:
languages- values to be set
-
setCountries
- Parameters:
countries- values to be set
-
setCountries
- Parameters:
countries- values to be set
-
setDistributionChannels
Distribution Channels of the Store that was created.
- Parameters:
distributionChannels- values to be set
-
setDistributionChannels
Distribution Channels of the Store that was created.
- Parameters:
distributionChannels- values to be set
-
setSupplyChannels
Supply Channels of the Store that was created.
- Parameters:
supplyChannels- values to be set
-
setSupplyChannels
Supply Channels of the Store that was created.
- Parameters:
supplyChannels- values to be set
-
setProductSelections
ProductSelectionSettings of the Store that was created.
- Parameters:
productSelections- values to be set
-
setProductSelections
ProductSelectionSettings of the Store that was created.
- Parameters:
productSelections- values to be set
-
setCustom
Custom Fields on the Store that was created.
- Parameters:
custom- value to be set
-
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
-
copyDeep
StoreCreatedMessage copyDeep()- Specified by:
copyDeepin interfaceBaseResource- Specified by:
copyDeepin interfaceMessage
-
deepCopy
factory method to create a deep copy of StoreCreatedMessage- Parameters:
template- instance to be copied- Returns:
- copy instance
-
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
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-