Interface GraphQLAgentShoppingListCreationFailedError
- All Superinterfaces:
GraphQLErrorObject
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
GraphQLAgentShoppingListCreationFailedError graphQLAgentShoppingListCreationFailedError = GraphQLAgentShoppingListCreationFailedError.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for GraphQLAgentShoppingListCreationFailedError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for GraphQLAgentShoppingListCreationFailedErrorcreate builder for GraphQLAgentShoppingListCreationFailedError instancecopyDeep()factory method to create a deep copy of GraphQLAgentShoppingListCreationFailedError@NotNull StringgetCode()One of the error codes that is listed on the Errors page.of()factory methodfactory method to create a shallow copy GraphQLAgentShoppingListCreationFailedErrorstatic tools.jackson.core.type.TypeReference<GraphQLAgentShoppingListCreationFailedError>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithGraphQLAgentShoppingListCreationFailedError(Function<GraphQLAgentShoppingListCreationFailedError, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
setValue, values, withGraphQLErrorObject
-
Field Details
-
SHOPPING_LIST_CREATION_FAILED
discriminator value for GraphQLAgentShoppingListCreationFailedError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObjectOne of the error codes that is listed on the Errors page.
- Specified by:
getCodein interfaceGraphQLErrorObject- Returns:
- code
-
of
factory method- Returns:
- instance of GraphQLAgentShoppingListCreationFailedError
-
of
static GraphQLAgentShoppingListCreationFailedError of(GraphQLAgentShoppingListCreationFailedError template) factory method to create a shallow copy GraphQLAgentShoppingListCreationFailedError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
GraphQLAgentShoppingListCreationFailedError copyDeep()- Specified by:
copyDeepin interfaceGraphQLErrorObject
-
deepCopy
@Nullable static GraphQLAgentShoppingListCreationFailedError deepCopy(@Nullable GraphQLAgentShoppingListCreationFailedError template) factory method to create a deep copy of GraphQLAgentShoppingListCreationFailedError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLAgentShoppingListCreationFailedError- Returns:
- builder
-
builder
static GraphQLAgentShoppingListCreationFailedErrorBuilder builder(GraphQLAgentShoppingListCreationFailedError template) create builder for GraphQLAgentShoppingListCreationFailedError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLAgentShoppingListCreationFailedError
default <T> T withGraphQLAgentShoppingListCreationFailedError(Function<GraphQLAgentShoppingListCreationFailedError, T> helper) accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
static tools.jackson.core.type.TypeReference<GraphQLAgentShoppingListCreationFailedError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-