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
-
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceUpdateErrorBuilder
builder()
builder factory method for ResourceUpdateErrorstatic ResourceUpdateErrorBuilder
builder
(ResourceUpdateError template) create builder for ResourceUpdateError instancestatic ResourceUpdateError
deepCopy
(ResourceUpdateError template) factory method to create a deep copy of ResourceUpdateErrorstatic ResourceUpdateError
of()
factory methodstatic ResourceUpdateError
of
(ResourceUpdateError template) factory method to create a shallow copy ResourceUpdateErrorvoid
setResource
(Object resource) set resourcestatic com.fasterxml.jackson.core.type.TypeReference<ResourceUpdateError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withResourceUpdateError
(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()- Returns:
- resource
-
setResource
set resource- 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
-
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
-