Interface AgentShoppingListCreationFailedError
- All Superinterfaces:
ErrorObject
Returned by a /responses request when the ShoppingList could not be created, for example because the request has no verified Customer or because commercetools rejected the ShoppingList draft. No entity is created, so there is nothing to clean up.
Example to create an instance using the builder pattern
AgentShoppingListCreationFailedError agentShoppingListCreationFailedError = AgentShoppingListCreationFailedError.builder()
.message("{message}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for AgentShoppingListCreationFailedError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for AgentShoppingListCreationFailedErrorbuilder(AgentShoppingListCreationFailedError template) create builder for AgentShoppingListCreationFailedError instancecopyDeep()deepCopy(AgentShoppingListCreationFailedError template) factory method to create a deep copy of AgentShoppingListCreationFailedError@NotNull StringgetCode()Error identifier.@NotNull StringPlain text description of the error.of()factory methodof(AgentShoppingListCreationFailedError template) factory method to create a shallow copy AgentShoppingListCreationFailedErrorvoidsetMessage(String message) Plain text description of the error.static tools.jackson.core.type.TypeReference<AgentShoppingListCreationFailedError>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.error.ErrorObject
setValue, values, withErrorObject
-
Field Details
-
SHOPPING_LIST_CREATION_FAILED
discriminator value for AgentShoppingListCreationFailedError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:ErrorObjectError identifier.
- Specified by:
getCodein interfaceErrorObject- Returns:
- code
-
getMessage
Plain text description of the error.
- Specified by:
getMessagein interfaceErrorObject- Returns:
- message
-
setMessage
Plain text description of the error.
- Specified by:
setMessagein interfaceErrorObject- Parameters:
message- value to be set
-
of
factory method- Returns:
- instance of AgentShoppingListCreationFailedError
-
of
factory method to create a shallow copy AgentShoppingListCreationFailedError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
AgentShoppingListCreationFailedError copyDeep()- Specified by:
copyDeepin interfaceErrorObject
-
deepCopy
@Nullable static AgentShoppingListCreationFailedError deepCopy(@Nullable AgentShoppingListCreationFailedError template) factory method to create a deep copy of AgentShoppingListCreationFailedError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AgentShoppingListCreationFailedError- Returns:
- builder
-
builder
static AgentShoppingListCreationFailedErrorBuilder builder(AgentShoppingListCreationFailedError template) create builder for AgentShoppingListCreationFailedError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withAgentShoppingListCreationFailedError
default <T> T withAgentShoppingListCreationFailedError(Function<AgentShoppingListCreationFailedError, T> helper) 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
-