Interface AgentBusinessUnitLimitExceededError
- All Superinterfaces:
ErrorObject
Returned by a /responses request when the customer is associated with more Business Units than can be resolved automatically. To resolve this error, specify an explicit businessUnit reference in the request.
Example to create an instance using the builder pattern
AgentBusinessUnitLimitExceededError agentBusinessUnitLimitExceededError = AgentBusinessUnitLimitExceededError.builder()
.message("{message}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for AgentBusinessUnitLimitExceededError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for AgentBusinessUnitLimitExceededErrorbuilder(AgentBusinessUnitLimitExceededError template) create builder for AgentBusinessUnitLimitExceededError instancecopyDeep()deepCopy(AgentBusinessUnitLimitExceededError template) factory method to create a deep copy of AgentBusinessUnitLimitExceededError@NotNull StringgetCode()Error identifier.@NotNull StringPlain text description of the error.of()factory methodof(AgentBusinessUnitLimitExceededError template) factory method to create a shallow copy AgentBusinessUnitLimitExceededErrorvoidsetMessage(String message) Plain text description of the error.static tools.jackson.core.type.TypeReference<AgentBusinessUnitLimitExceededError>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_LIMIT_EXCEEDED
discriminator value for AgentBusinessUnitLimitExceededError- 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 AgentBusinessUnitLimitExceededError
-
of
factory method to create a shallow copy AgentBusinessUnitLimitExceededError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
AgentBusinessUnitLimitExceededError copyDeep()- Specified by:
copyDeepin interfaceErrorObject
-
deepCopy
@Nullable static AgentBusinessUnitLimitExceededError deepCopy(@Nullable AgentBusinessUnitLimitExceededError template) factory method to create a deep copy of AgentBusinessUnitLimitExceededError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AgentBusinessUnitLimitExceededError- Returns:
- builder
-
builder
static AgentBusinessUnitLimitExceededErrorBuilder builder(AgentBusinessUnitLimitExceededError template) create builder for AgentBusinessUnitLimitExceededError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withAgentBusinessUnitLimitExceededError
default <T> T withAgentBusinessUnitLimitExceededError(Function<AgentBusinessUnitLimitExceededError, 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
-