Interface AgentProductsNotFoundWarning
- All Superinterfaces:
WarningObject
Returned when one or more Products referenced in an Intake Agent API request could not be matched to the catalog. The unmatched Products are omitted from the created entity.
Example to create an instance using the builder pattern
AgentProductsNotFoundWarning agentProductsNotFoundWarning = AgentProductsNotFoundWarning.builder()
.message("{message}")
.plusProducts(productsBuilder -> productsBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for AgentProductsNotFoundWarning -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for AgentProductsNotFoundWarningbuilder(AgentProductsNotFoundWarning template) create builder for AgentProductsNotFoundWarning instancecopyDeep()static AgentProductsNotFoundWarningdeepCopy(AgentProductsNotFoundWarning template) factory method to create a deep copy of AgentProductsNotFoundWarning@NotNull StringgetCode()Identifier for the type of warning.@NotNull StringPlain text description of the unmatched Products.Identifiers of the Products that could not be matched to the catalog, as they appeared in the input.static AgentProductsNotFoundWarningof()factory methodstatic AgentProductsNotFoundWarningof(AgentProductsNotFoundWarning template) factory method to create a shallow copy AgentProductsNotFoundWarningvoidsetMessage(String message) Plain text description of the unmatched Products.voidsetProducts(String... products) Identifiers of the Products that could not be matched to the catalog, as they appeared in the input.voidsetProducts(List<String> products) Identifiers of the Products that could not be matched to the catalog, as they appeared in the input.static tools.jackson.core.type.TypeReference<AgentProductsNotFoundWarning>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.warning.WarningObject
withWarningObject
-
Field Details
-
PRODUCTS_NOT_FOUND
discriminator value for AgentProductsNotFoundWarning- See Also:
-
-
Method Details
-
getCode
Description copied from interface:WarningObjectIdentifier for the type of warning.
- Specified by:
getCodein interfaceWarningObject- Returns:
- code
-
getMessage
Plain text description of the unmatched Products.
- Specified by:
getMessagein interfaceWarningObject- Returns:
- message
-
getProducts
Identifiers of the Products that could not be matched to the catalog, as they appeared in the input.
- Returns:
- products
-
setMessage
Plain text description of the unmatched Products.
- Specified by:
setMessagein interfaceWarningObject- Parameters:
message- value to be set
-
setProducts
Identifiers of the Products that could not be matched to the catalog, as they appeared in the input.
- Parameters:
products- values to be set
-
setProducts
Identifiers of the Products that could not be matched to the catalog, as they appeared in the input.
- Parameters:
products- values to be set
-
of
factory method- Returns:
- instance of AgentProductsNotFoundWarning
-
of
factory method to create a shallow copy AgentProductsNotFoundWarning- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
AgentProductsNotFoundWarning copyDeep()- Specified by:
copyDeepin interfaceWarningObject
-
deepCopy
@Nullable static AgentProductsNotFoundWarning deepCopy(@Nullable AgentProductsNotFoundWarning template) factory method to create a deep copy of AgentProductsNotFoundWarning- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AgentProductsNotFoundWarning- Returns:
- builder
-
builder
create builder for AgentProductsNotFoundWarning instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withAgentProductsNotFoundWarning
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
-