Interface AgentBusinessUnitAmbiguousError
- All Superinterfaces:
ErrorObject
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
AgentBusinessUnitAmbiguousError agentBusinessUnitAmbiguousError = AgentBusinessUnitAmbiguousError.builder()
.message("{message}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for AgentBusinessUnitAmbiguousError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for AgentBusinessUnitAmbiguousErrorbuilder(AgentBusinessUnitAmbiguousError template) create builder for AgentBusinessUnitAmbiguousError instancecopyDeep()deepCopy(AgentBusinessUnitAmbiguousError template) factory method to create a deep copy of AgentBusinessUnitAmbiguousError@NotNull StringgetCode()Error identifier.@NotNull StringPlain text description of the error.of()factory methodof(AgentBusinessUnitAmbiguousError template) factory method to create a shallow copy AgentBusinessUnitAmbiguousErrorvoidsetMessage(String message) Plain text description of the error.static tools.jackson.core.type.TypeReference<AgentBusinessUnitAmbiguousError>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
-
BUSINESS_UNIT_AMBIGUOUS
discriminator value for AgentBusinessUnitAmbiguousError- 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 AgentBusinessUnitAmbiguousError
-
of
factory method to create a shallow copy AgentBusinessUnitAmbiguousError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
AgentBusinessUnitAmbiguousError copyDeep()- Specified by:
copyDeepin interfaceErrorObject
-
deepCopy
@Nullable static AgentBusinessUnitAmbiguousError deepCopy(@Nullable AgentBusinessUnitAmbiguousError template) factory method to create a deep copy of AgentBusinessUnitAmbiguousError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AgentBusinessUnitAmbiguousError- Returns:
- builder
-
builder
create builder for AgentBusinessUnitAmbiguousError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withAgentBusinessUnitAmbiguousError
default <T> T withAgentBusinessUnitAmbiguousError(Function<AgentBusinessUnitAmbiguousError, 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
-