Interface AgentStoreDistributionChannelsUnsupportedError
- All Superinterfaces:
ErrorObject
Returned by a /responses request when the resolved Store has more than one entry in the distributionChannels array, which is not supported. To resolve this error, choose a Store with zero or one distribution channel.
Example to create an instance using the builder pattern
AgentStoreDistributionChannelsUnsupportedError agentStoreDistributionChannelsUnsupportedError = AgentStoreDistributionChannelsUnsupportedError.builder()
.message("{message}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for AgentStoreDistributionChannelsUnsupportedError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for AgentStoreDistributionChannelsUnsupportedErrorcreate builder for AgentStoreDistributionChannelsUnsupportedError instancecopyDeep()factory method to create a deep copy of AgentStoreDistributionChannelsUnsupportedError@NotNull StringgetCode()Error identifier.@NotNull StringPlain text description of the error.of()factory methodfactory method to create a shallow copy AgentStoreDistributionChannelsUnsupportedErrorvoidsetMessage(String message) Plain text description of the error.static tools.jackson.core.type.TypeReference<AgentStoreDistributionChannelsUnsupportedError>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithAgentStoreDistributionChannelsUnsupportedError(Function<AgentStoreDistributionChannelsUnsupportedError, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.error.ErrorObject
setValue, values, withErrorObject
-
Field Details
-
STORE_DISTRIBUTION_CHANNELS_UNSUPPORTED
discriminator value for AgentStoreDistributionChannelsUnsupportedError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:ErrorObjectError identifier.
- Specified by:
getCodein interfaceErrorObject- Returns:
- code
-
getMessage
Plain text description of the error.
- Specified by:
getMessagein interfaceErrorObject- Returns:
- message
-
setMessage
Plain text description of the error.
- Specified by:
setMessagein interfaceErrorObject- Parameters:
message- value to be set
-
of
factory method- Returns:
- instance of AgentStoreDistributionChannelsUnsupportedError
-
of
static AgentStoreDistributionChannelsUnsupportedError of(AgentStoreDistributionChannelsUnsupportedError template) factory method to create a shallow copy AgentStoreDistributionChannelsUnsupportedError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
- Specified by:
copyDeepin interfaceErrorObject
-
deepCopy
@Nullable static AgentStoreDistributionChannelsUnsupportedError deepCopy(@Nullable AgentStoreDistributionChannelsUnsupportedError template) factory method to create a deep copy of AgentStoreDistributionChannelsUnsupportedError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AgentStoreDistributionChannelsUnsupportedError- Returns:
- builder
-
builder
static AgentStoreDistributionChannelsUnsupportedErrorBuilder builder(AgentStoreDistributionChannelsUnsupportedError template) create builder for AgentStoreDistributionChannelsUnsupportedError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withAgentStoreDistributionChannelsUnsupportedError
default <T> T withAgentStoreDistributionChannelsUnsupportedError(Function<AgentStoreDistributionChannelsUnsupportedError, T> helper) accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
static tools.jackson.core.type.TypeReference<AgentStoreDistributionChannelsUnsupportedError> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-