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
-
Method Summary
Modifier and TypeMethodDescriptionstatic FeatureRemovedErrorBuilder
builder()
builder factory method for FeatureRemovedErrorstatic FeatureRemovedErrorBuilder
builder
(FeatureRemovedError template) create builder for FeatureRemovedError instancestatic FeatureRemovedError
deepCopy
(FeatureRemovedError template) factory method to create a deep copy of FeatureRemovedError@NotNull String
getCode()
Error identifier.@NotNull String
Description of the feature that is removed.static FeatureRemovedError
of()
factory methodstatic FeatureRemovedError
of
(FeatureRemovedError template) factory method to create a shallow copy FeatureRemovedErrorvoid
setMessage
(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> T
withFeatureRemovedError
(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:ErrorObject
Error identifier.
- Specified by:
getCode
in interfaceErrorObject
- Returns:
- code
-
getMessage
Description of the feature that is removed.
- Specified by:
getMessage
in interfaceErrorObject
- Returns:
- message
-
setMessage
Description of the feature that is removed.
- Specified by:
setMessage
in 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
-
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
-