Interface ResourceCreationError
- All Superinterfaces:
ErrorObject
ResourceCreationError
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ResourceCreationError resourceCreationError = ResourceCreationError.builder()
.message("{message}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ResourceCreationError -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceCreationErrorBuilder
builder()
builder factory method for ResourceCreationErrorstatic ResourceCreationErrorBuilder
builder
(ResourceCreationError template) create builder for ResourceCreationError instancestatic ResourceCreationError
deepCopy
(ResourceCreationError template) factory method to create a deep copy of ResourceCreationErrorstatic ResourceCreationError
of()
factory methodstatic ResourceCreationError
of
(ResourceCreationError template) factory method to create a shallow copy ResourceCreationErrorvoid
setResource
(Object resource) set resourcestatic com.fasterxml.jackson.core.type.TypeReference<ResourceCreationError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.importapi.models.errors.ErrorObject
getCode, getMessage, setMessage, withErrorObject
-
Field Details
-
RESOURCE_CREATION
discriminator value for ResourceCreationError- See Also:
-
-
Method Details
-
getResource
Object getResource()- Returns:
- resource
-
setResource
set resource- Parameters:
resource
- value to be set
-
of
factory method- Returns:
- instance of ResourceCreationError
-
of
factory method to create a shallow copy ResourceCreationError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of ResourceCreationError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ResourceCreationError- Returns:
- builder
-
builder
create builder for ResourceCreationError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withResourceCreationError
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
-