Interface GraphQLAgentStoreAmbiguousError
- All Superinterfaces:
GraphQLErrorObject
Returned by a /responses request when the resolved Business Unit grants multiple Stores and none could be automatically selected. To resolve this error, specify an explicit store reference in the request.
Example to create an instance using the builder pattern
GraphQLAgentStoreAmbiguousError graphQLAgentStoreAmbiguousError = GraphQLAgentStoreAmbiguousError.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for GraphQLAgentStoreAmbiguousError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for GraphQLAgentStoreAmbiguousErrorbuilder(GraphQLAgentStoreAmbiguousError template) create builder for GraphQLAgentStoreAmbiguousError instancecopyDeep()deepCopy(GraphQLAgentStoreAmbiguousError template) factory method to create a deep copy of GraphQLAgentStoreAmbiguousError@NotNull StringgetCode()One of the error codes that is listed on the Errors page.of()factory methodof(GraphQLAgentStoreAmbiguousError template) factory method to create a shallow copy GraphQLAgentStoreAmbiguousErrorstatic tools.jackson.core.type.TypeReference<GraphQLAgentStoreAmbiguousError>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
setValue, values, withGraphQLErrorObject
-
Field Details
-
STORE_AMBIGUOUS
discriminator value for GraphQLAgentStoreAmbiguousError- 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 GraphQLAgentStoreAmbiguousError
-
of
factory method to create a shallow copy GraphQLAgentStoreAmbiguousError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
GraphQLAgentStoreAmbiguousError copyDeep()- Specified by:
copyDeepin interfaceGraphQLErrorObject
-
deepCopy
@Nullable static GraphQLAgentStoreAmbiguousError deepCopy(@Nullable GraphQLAgentStoreAmbiguousError template) factory method to create a deep copy of GraphQLAgentStoreAmbiguousError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GraphQLAgentStoreAmbiguousError- Returns:
- builder
-
builder
create builder for GraphQLAgentStoreAmbiguousError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withGraphQLAgentStoreAmbiguousError
default <T> T withGraphQLAgentStoreAmbiguousError(Function<GraphQLAgentStoreAmbiguousError, 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
-