Class GraphQLDuplicatePriceKeyErrorImpl
java.lang.Object
com.commercetools.api.models.error.GraphQLDuplicatePriceKeyErrorImpl
- All Implemented Interfaces:
GraphQLDuplicatePriceKeyError
,GraphQLErrorObject
,io.vrap.rmf.base.client.ModelBase
public class GraphQLDuplicatePriceKeyErrorImpl
extends Object
implements GraphQLDuplicatePriceKeyError, io.vrap.rmf.base.client.ModelBase
Returned when a Price key conflicts with an existing key.
Keys of Embedded Prices must be unique per ProductVariant.
-
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.api.models.error.GraphQLDuplicatePriceKeyError
DUPLICATE_PRICE_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getCode()
Error identifier.Conflicting Embedded Price.int
hashCode()
void
setConflictingPrice
(Price conflictingPrice) Conflicting Embedded Price.void
Error-specific additional fields.values()
Error-specific additional fields.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.error.GraphQLDuplicatePriceKeyError
withGraphQLDuplicatePriceKeyError
Methods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
withGraphQLErrorObject
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
GraphQLDuplicatePriceKeyErrorImpl
public GraphQLDuplicatePriceKeyErrorImpl()create empty instance
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
Error identifier.
- Specified by:
getCode
in interfaceGraphQLDuplicatePriceKeyError
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Returns:
- code
-
values
Error-specific additional fields.
- Specified by:
values
in interfaceGraphQLErrorObject
- Returns:
- map of the pattern property values
-
getConflictingPrice
Conflicting Embedded Price.
- Specified by:
getConflictingPrice
in interfaceGraphQLDuplicatePriceKeyError
- Returns:
- conflictingPrice
-
setValue
Description copied from interface:GraphQLErrorObject
Error-specific additional fields.
- Specified by:
setValue
in interfaceGraphQLErrorObject
- Parameters:
key
- property namevalue
- property value
-
setConflictingPrice
Description copied from interface:GraphQLDuplicatePriceKeyError
Conflicting Embedded Price.
- Specified by:
setConflictingPrice
in interfaceGraphQLDuplicatePriceKeyError
- Parameters:
conflictingPrice
- value to be set
-
equals
-
hashCode
-