Interface AgentBusinessUnitUnresolvedError
- All Superinterfaces:
ErrorObject
Returned by a /responses request when the BusinessUnit could not be resolved from the input. Pin it with an explicit businessUnit reference in the request.
Example to create an instance using the builder pattern
AgentBusinessUnitUnresolvedError agentBusinessUnitUnresolvedError = AgentBusinessUnitUnresolvedError.builder()
.message("{message}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for AgentBusinessUnitUnresolvedError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for AgentBusinessUnitUnresolvedErrorbuilder(AgentBusinessUnitUnresolvedError template) create builder for AgentBusinessUnitUnresolvedError instancecopyDeep()deepCopy(AgentBusinessUnitUnresolvedError template) factory method to create a deep copy of AgentBusinessUnitUnresolvedError@NotNull StringgetCode()Error identifier.@NotNull StringPlain text description of the error.of()factory methodof(AgentBusinessUnitUnresolvedError template) factory method to create a shallow copy AgentBusinessUnitUnresolvedErrorvoidsetMessage(String message) Plain text description of the error.static tools.jackson.core.type.TypeReference<AgentBusinessUnitUnresolvedError>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_UNRESOLVED
discriminator value for AgentBusinessUnitUnresolvedError- 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 AgentBusinessUnitUnresolvedError
-
of
factory method to create a shallow copy AgentBusinessUnitUnresolvedError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
AgentBusinessUnitUnresolvedError copyDeep()- Specified by:
copyDeepin interfaceErrorObject
-
deepCopy
@Nullable static AgentBusinessUnitUnresolvedError deepCopy(@Nullable AgentBusinessUnitUnresolvedError template) factory method to create a deep copy of AgentBusinessUnitUnresolvedError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AgentBusinessUnitUnresolvedError- Returns:
- builder
-
builder
create builder for AgentBusinessUnitUnresolvedError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withAgentBusinessUnitUnresolvedError
default <T> T withAgentBusinessUnitUnresolvedError(Function<AgentBusinessUnitUnresolvedError, 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
-