Interface FeatureRemovedError
- All Superinterfaces:
ErrorObject
Returned when the requested feature was removed.
Example to create an instance using the builder pattern
FeatureRemovedError featureRemovedError = FeatureRemovedError.builder()
.message("{message}")
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic FeatureRemovedErrorBuilderbuilder()builder factory method for FeatureRemovedErrorstatic FeatureRemovedErrorBuilderbuilder(FeatureRemovedError template) create builder for FeatureRemovedError instancecopyDeep()static FeatureRemovedErrordeepCopy(FeatureRemovedError template) factory method to create a deep copy of FeatureRemovedError@NotNull StringgetCode()Error identifier.@NotNull StringDescription of the feature that is removed.static FeatureRemovedErrorof()factory methodstatic FeatureRemovedErrorof(FeatureRemovedError template) factory method to create a shallow copy FeatureRemovedErrorvoidsetMessage(String message) Description of the feature that is removed.static com.fasterxml.jackson.core.type.TypeReference<FeatureRemovedError>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithFeatureRemovedError(Function<FeatureRemovedError, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.error.ErrorObject
setValue, values, withErrorObject
-
Field Details
-
FEATURE_REMOVED
discriminator value for FeatureRemovedError- See Also:
-
-
Method Details
-
getCode
Description copied from interface:ErrorObjectError identifier.
- Specified by:
getCodein interfaceErrorObject- Returns:
- code
-
getMessage
Description of the feature that is removed.
- Specified by:
getMessagein interfaceErrorObject- Returns:
- message
-
setMessage
Description of the feature that is removed.
- Specified by:
setMessagein interfaceErrorObject- Parameters:
message- value to be set
-
of
factory method- Returns:
- instance of FeatureRemovedError
-
of
factory method to create a shallow copy FeatureRemovedError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
FeatureRemovedError copyDeep()- Specified by:
copyDeepin interfaceErrorObject
-
deepCopy
factory method to create a deep copy of FeatureRemovedError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for FeatureRemovedError- Returns:
- builder
-
builder
create builder for FeatureRemovedError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withFeatureRemovedError
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-