Interface InvalidFieldError
- All Superinterfaces:
ErrorObject
A given field is not supported. This error occurs, for example, if the field variants, which is not supported by Product Import, is sent to the Product Import endpoint.
Example to create an instance using the builder pattern
InvalidFieldError invalidFieldError = InvalidFieldError.builder()
.message("{message}")
.field("{field}")
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic InvalidFieldErrorBuilderbuilder()builder factory method for InvalidFieldErrorstatic InvalidFieldErrorBuilderbuilder(InvalidFieldError template) create builder for InvalidFieldError instancecopyDeep()static InvalidFieldErrordeepCopy(InvalidFieldError template) factory method to create a deep copy of InvalidFieldErrorThe set of allowed values for the field, if any.@NotNull StringgetField()The name of the field.@NotNull ObjectThe invalid value.The index of the resource in the import request that contains the invalid field.static InvalidFieldErrorof()factory methodstatic InvalidFieldErrorof(InvalidFieldError template) factory method to create a shallow copy InvalidFieldErrorvoidsetAllowedValues(Object... allowedValues) The set of allowed values for the field, if any.voidsetAllowedValues(List<Object> allowedValues) The set of allowed values for the field, if any.voidThe name of the field.voidsetInvalidValue(Object invalidValue) The invalid value.voidsetResourceIndex(Long resourceIndex) The index of the resource in the import request that contains the invalid field.static com.fasterxml.jackson.core.type.TypeReference<InvalidFieldError>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithInvalidFieldError(Function<InvalidFieldError, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.errors.ErrorObject
getCode, getMessage, setMessage, withErrorObject
-
Field Details
-
INVALID_FIELD
discriminator value for InvalidFieldError- See Also:
-
-
Method Details
-
getField
The name of the field.
- Returns:
- field
-
getInvalidValue
The invalid value.
- Returns:
- invalidValue
-
getAllowedValues
The set of allowed values for the field, if any.
- Returns:
- allowedValues
-
getResourceIndex
Long getResourceIndex()The index of the resource in the import request that contains the invalid field.
- Returns:
- resourceIndex
-
setField
The name of the field.
- Parameters:
field- value to be set
-
setInvalidValue
The invalid value.
- Parameters:
invalidValue- value to be set
-
setAllowedValues
The set of allowed values for the field, if any.
- Parameters:
allowedValues- values to be set
-
setAllowedValues
The set of allowed values for the field, if any.
- Parameters:
allowedValues- values to be set
-
setResourceIndex
The index of the resource in the import request that contains the invalid field.
- Parameters:
resourceIndex- value to be set
-
of
factory method- Returns:
- instance of InvalidFieldError
-
of
factory method to create a shallow copy InvalidFieldError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
InvalidFieldError copyDeep()- Specified by:
copyDeepin interfaceErrorObject
-
deepCopy
factory method to create a deep copy of InvalidFieldError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for InvalidFieldError- Returns:
- builder
-
builder
create builder for InvalidFieldError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withInvalidFieldError
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
-