Class DuplicateVariantValuesErrorImpl
java.lang.Object
com.commercetools.importapi.models.errors.DuplicateVariantValuesErrorImpl
- All Implemented Interfaces:
DuplicateVariantValuesError
,ErrorObject
,io.vrap.rmf.base.client.ModelBase
public class DuplicateVariantValuesErrorImpl
extends Object
implements DuplicateVariantValuesError, io.vrap.rmf.base.client.ModelBase
The given combination of values of a Product Variant conflicts with an existing one. Every Product Variant must have a distinct combination of SKU, prices, and custom attribute values.
-
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.DuplicateVariantValuesError
DUPLICATE_VARIANT_VALUES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getCode()
The offending variant values.int
hashCode()
void
setMessage
(String message) set messagevoid
setVariantValues
(VariantValues variantValues) The offending variant values.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.importapi.models.errors.DuplicateVariantValuesError
withDuplicateVariantValuesError
Methods inherited from interface com.commercetools.importapi.models.errors.ErrorObject
withErrorObject
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
DuplicateVariantValuesErrorImpl
public DuplicateVariantValuesErrorImpl()create empty instance
-
-
Method Details
-
getCode
- Specified by:
getCode
in interfaceErrorObject
- Returns:
- code
-
getMessage
- Specified by:
getMessage
in interfaceErrorObject
- Returns:
- message
-
getVariantValues
The offending variant values.
- Specified by:
getVariantValues
in interfaceDuplicateVariantValuesError
- Returns:
- variantValues
-
setMessage
Description copied from interface:ErrorObject
set message- Specified by:
setMessage
in interfaceErrorObject
- Parameters:
message
- value to be set
-
setVariantValues
Description copied from interface:DuplicateVariantValuesError
The offending variant values.
- Specified by:
setVariantValues
in interfaceDuplicateVariantValuesError
- Parameters:
variantValues
- value to be set
-
equals
-
hashCode
public int hashCode()
-