Class InvalidFieldErrorImpl
java.lang.Object
com.commercetools.importapi.models.errors.InvalidFieldErrorImpl
- All Implemented Interfaces:
ErrorObject
,InvalidFieldError
,io.vrap.rmf.base.client.ModelBase
public class InvalidFieldErrorImpl
extends Object
implements InvalidFieldError, io.vrap.rmf.base.client.ModelBase
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.importapi.models.errors.InvalidFieldError
INVALID_FIELD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
The set of allowed values for the field, if any.getCode()
getField()
The name of the field.The invalid value.int
hashCode()
void
setAllowedValues
(Object... allowedValues) The set of allowed values for the field, if any.void
setAllowedValues
(List<Object> allowedValues) The set of allowed values for the field, if any.void
The name of the field.void
setInvalidValue
(Object invalidValue) The invalid value.void
setMessage
(String message) set messagevoid
setResourceIndex
(Long resourceIndex) set resourceIndextoString()
Methods inherited from interface com.commercetools.importapi.models.errors.ErrorObject
withErrorObject
Methods inherited from interface com.commercetools.importapi.models.errors.InvalidFieldError
withInvalidFieldError
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
InvalidFieldErrorImpl
public InvalidFieldErrorImpl()create empty instance
-
-
Method Details
-
getCode
- Specified by:
getCode
in interfaceErrorObject
- Returns:
- code
-
getMessage
- Specified by:
getMessage
in interfaceErrorObject
- Returns:
- message
-
getField
The name of the field.
- Specified by:
getField
in interfaceInvalidFieldError
- Returns:
- field
-
getInvalidValue
The invalid value.
- Specified by:
getInvalidValue
in interfaceInvalidFieldError
- Returns:
- invalidValue
-
getAllowedValues
The set of allowed values for the field, if any.
- Specified by:
getAllowedValues
in interfaceInvalidFieldError
- Returns:
- allowedValues
-
getResourceIndex
- Specified by:
getResourceIndex
in interfaceInvalidFieldError
- Returns:
- resourceIndex
-
setMessage
Description copied from interface:ErrorObject
set message- Specified by:
setMessage
in interfaceErrorObject
- Parameters:
message
- value to be set
-
setField
Description copied from interface:InvalidFieldError
The name of the field.
- Specified by:
setField
in interfaceInvalidFieldError
- Parameters:
field
- value to be set
-
setInvalidValue
Description copied from interface:InvalidFieldError
The invalid value.
- Specified by:
setInvalidValue
in interfaceInvalidFieldError
- Parameters:
invalidValue
- value to be set
-
setAllowedValues
Description copied from interface:InvalidFieldError
The set of allowed values for the field, if any.
- Specified by:
setAllowedValues
in interfaceInvalidFieldError
- Parameters:
allowedValues
- values to be set
-
setAllowedValues
Description copied from interface:InvalidFieldError
The set of allowed values for the field, if any.
- Specified by:
setAllowedValues
in interfaceInvalidFieldError
- Parameters:
allowedValues
- values to be set
-
setResourceIndex
Description copied from interface:InvalidFieldError
set resourceIndex- Specified by:
setResourceIndex
in interfaceInvalidFieldError
- Parameters:
resourceIndex
- value to be set
-
equals
-
hashCode
public int hashCode() -
toString
-