Interface ResourceUpdateError
- All Superinterfaces:
ErrorObject
ResourceUpdateError
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ResourceUpdateError resourceUpdateError = ResourceUpdateError.builder()
.message("{message}")
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceUpdateErrorBuilderbuilder()builder factory method for ResourceUpdateErrorstatic ResourceUpdateErrorBuilderbuilder(ResourceUpdateError template) create builder for ResourceUpdateError instancecopyDeep()static ResourceUpdateErrordeepCopy(ResourceUpdateError template) factory method to create a deep copy of ResourceUpdateErrorThe resource that was updated.static ResourceUpdateErrorof()factory methodstatic ResourceUpdateErrorof(ResourceUpdateError template) factory method to create a shallow copy ResourceUpdateErrorvoidsetResource(Object resource) The resource that was updated.static com.fasterxml.jackson.core.type.TypeReference<ResourceUpdateError>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithResourceUpdateError(Function<ResourceUpdateError, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.errors.ErrorObject
getCode, getMessage, setMessage, withErrorObject
-
Field Details
-
RESOURCE_UPDATE
discriminator value for ResourceUpdateError- See Also:
-
-
Method Details
-
getResource
Object getResource()The resource that was updated.
- Returns:
- resource
-
setResource
The resource that was updated.
- Parameters:
resource- value to be set
-
of
factory method- Returns:
- instance of ResourceUpdateError
-
of
factory method to create a shallow copy ResourceUpdateError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ResourceUpdateError copyDeep()- Specified by:
copyDeepin interfaceErrorObject
-
deepCopy
factory method to create a deep copy of ResourceUpdateError- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ResourceUpdateError- Returns:
- builder
-
builder
create builder for ResourceUpdateError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withResourceUpdateError
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
-