Class GraphQLMissingRoleOnChannelErrorImpl
java.lang.Object
com.commercetools.api.models.error.GraphQLMissingRoleOnChannelErrorImpl
- All Implemented Interfaces:
GraphQLErrorObject
,GraphQLMissingRoleOnChannelError
,io.vrap.rmf.base.client.ModelBase
public class GraphQLMissingRoleOnChannelErrorImpl
extends Object
implements GraphQLMissingRoleOnChannelError, io.vrap.rmf.base.client.ModelBase
Returned when one of the following states occur:
- Channel is added or set on a Store with missing Channel
roles
. - Standalone Price references a Channel that does not contain the
ProductDistribution
role.
The error is returned as a failed response to:
- Add Distribution Channel, Set Distribution Channel, Add Supply Channel, and Set Supply Channel update actions.
- Create StandalonePrice request.
-
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.GraphQLMissingRoleOnChannelError
MISSING_ROLE_ON_CHANNEL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
ResourceIdentifier to a given Channel.getCode()
Error identifier.ProductDistribution
for Product Distribution Channels allowed for the Store.int
hashCode()
void
setChannel
(ChannelResourceIdentifier channel) ResourceIdentifier to a given Channel.void
setMissingRole
(ChannelRoleEnum missingRole) ProductDistribution
for Product Distribution Channels allowed for the Store.void
Error-specific additional fields.toString()
values()
Error-specific additional fields.Methods inherited from interface com.commercetools.api.models.error.GraphQLErrorObject
withGraphQLErrorObject
Methods inherited from interface com.commercetools.api.models.error.GraphQLMissingRoleOnChannelError
withGraphQLMissingRoleOnChannelError
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
GraphQLMissingRoleOnChannelErrorImpl
public GraphQLMissingRoleOnChannelErrorImpl()create empty instance
-
-
Method Details
-
getCode
Description copied from interface:GraphQLErrorObject
Error identifier.
- Specified by:
getCode
in interfaceGraphQLErrorObject
- Specified by:
getCode
in interfaceGraphQLMissingRoleOnChannelError
- Returns:
- code
-
values
Error-specific additional fields.
- Specified by:
values
in interfaceGraphQLErrorObject
- Returns:
- map of the pattern property values
-
getChannel
ResourceIdentifier to a given Channel.
- Specified by:
getChannel
in interfaceGraphQLMissingRoleOnChannelError
- Returns:
- channel
-
getMissingRole
ProductDistribution
for Product Distribution Channels allowed for the Store. Also required for Standalone Prices.InventorySupply
for Inventory Supply Channels allowed for the Store.
- Specified by:
getMissingRole
in interfaceGraphQLMissingRoleOnChannelError
- Returns:
- missingRole
-
setValue
Description copied from interface:GraphQLErrorObject
Error-specific additional fields.
- Specified by:
setValue
in interfaceGraphQLErrorObject
- Parameters:
key
- property namevalue
- property value
-
setChannel
Description copied from interface:GraphQLMissingRoleOnChannelError
ResourceIdentifier to a given Channel.
- Specified by:
setChannel
in interfaceGraphQLMissingRoleOnChannelError
- Parameters:
channel
- value to be set
-
setMissingRole
Description copied from interface:GraphQLMissingRoleOnChannelError
ProductDistribution
for Product Distribution Channels allowed for the Store. Also required for Standalone Prices.InventorySupply
for Inventory Supply Channels allowed for the Store.
- Specified by:
setMissingRole
in interfaceGraphQLMissingRoleOnChannelError
- Parameters:
missingRole
- value to be set
-
equals
-
hashCode
public int hashCode() -
toString
-