Class GraphQLDuplicateFieldWithConflictingResourceErrorImpl
java.lang.Object
com.commercetools.api.models.error.GraphQLDuplicateFieldWithConflictingResourceErrorImpl
- All Implemented Interfaces:
GraphQLDuplicateFieldWithConflictingResourceError
,GraphQLErrorObject
,io.vrap.rmf.base.client.ModelBase
public class GraphQLDuplicateFieldWithConflictingResourceErrorImpl
extends Object
implements GraphQLDuplicateFieldWithConflictingResourceError, io.vrap.rmf.base.client.ModelBase
Returned when a field value conflicts with an existing value stored in a particular resource causing a duplicate.
-
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.GraphQLDuplicateFieldWithConflictingResourceError
DUPLICATE_FIELD_WITH_CONFLICTING_RESOURCE
-
Constructor Summary
ConstructorDescriptioncreate empty instance -
Method Summary
Modifier and TypeMethodDescriptionboolean
getCode()
Error identifier.Reference to the resource that has the conflicting value.Conflicting duplicate value.getField()
Name of the conflicting field.int
hashCode()
void
setConflictingResource
(Reference conflictingResource) Reference to the resource that has the conflicting value.void
setDuplicateValue
(Object duplicateValue) Conflicting duplicate value.void
Name of the conflicting field.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.GraphQLDuplicateFieldWithConflictingResourceError
withGraphQLDuplicateFieldWithConflictingResourceError
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
-
GraphQLDuplicateFieldWithConflictingResourceErrorImpl
create empty instance
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
Error identifier.
- Specified by:
getCode
in interfaceGraphQLDuplicateFieldWithConflictingResourceError
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Returns:
- code
-
values
Error-specific additional fields.
- Specified by:
values
in interfaceGraphQLErrorObject
- Returns:
- map of the pattern property values
-
getField
Name of the conflicting field.
- Specified by:
getField
in interfaceGraphQLDuplicateFieldWithConflictingResourceError
- Returns:
- field
-
getDuplicateValue
Conflicting duplicate value.
- Specified by:
getDuplicateValue
in interfaceGraphQLDuplicateFieldWithConflictingResourceError
- Returns:
- duplicateValue
-
getConflictingResource
Reference to the resource that has the conflicting value.
- Specified by:
getConflictingResource
in interfaceGraphQLDuplicateFieldWithConflictingResourceError
- Returns:
- conflictingResource
-
setValue
Description copied from interface:GraphQLErrorObject
Error-specific additional fields.
- Specified by:
setValue
in interfaceGraphQLErrorObject
- Parameters:
key
- property namevalue
- property value
-
setField
Description copied from interface:GraphQLDuplicateFieldWithConflictingResourceError
Name of the conflicting field.
- Specified by:
setField
in interfaceGraphQLDuplicateFieldWithConflictingResourceError
- Parameters:
field
- value to be set
-
setDuplicateValue
Description copied from interface:GraphQLDuplicateFieldWithConflictingResourceError
Conflicting duplicate value.
- Specified by:
setDuplicateValue
in interfaceGraphQLDuplicateFieldWithConflictingResourceError
- Parameters:
duplicateValue
- value to be set
-
setConflictingResource
Description copied from interface:GraphQLDuplicateFieldWithConflictingResourceError
Reference to the resource that has the conflicting value.
- Specified by:
setConflictingResource
in interfaceGraphQLDuplicateFieldWithConflictingResourceError
- Parameters:
conflictingResource
- value to be set
-
equals
-
hashCode
-