Interface AgentMissingCountryError
- All Superinterfaces:
ErrorObject
Returned by a /responses request when a shipping country was not provided and could not be inferred from the input.
Example to create an instance using the builder pattern
AgentMissingCountryError agentMissingCountryError = AgentMissingCountryError.builder()
.message("{message}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for AgentMissingCountryError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for AgentMissingCountryErrorbuilder(AgentMissingCountryError template) create builder for AgentMissingCountryError instancecopyDeep()static AgentMissingCountryErrordeepCopy(AgentMissingCountryError template) factory method to create a deep copy of AgentMissingCountryError@NotNull StringgetCode()Error identifier.@NotNull StringPlain text description of the error.static AgentMissingCountryErrorof()factory methodstatic AgentMissingCountryErrorof(AgentMissingCountryError template) factory method to create a shallow copy AgentMissingCountryErrorvoidsetMessage(String message) Plain text description of the error.static tools.jackson.core.type.TypeReference<AgentMissingCountryError>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
-
MISSING_COUNTRY
discriminator value for AgentMissingCountryError- 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 AgentMissingCountryError
-
of
factory method to create a shallow copy AgentMissingCountryError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
AgentMissingCountryError copyDeep()- Specified by:
copyDeepin interfaceErrorObject
-
deepCopy
factory method to create a deep copy of AgentMissingCountryError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AgentMissingCountryError- Returns:
- builder
-
builder
create builder for AgentMissingCountryError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withAgentMissingCountryError
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
-