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