Interface InvalidOperation
- All Superinterfaces:
ErrorObject
The resources in the request are not in the valid state for the operation. The client application should validate the constraints described in the error message before sending the request again.
Example to create an instance using the builder pattern
InvalidOperation invalidOperation = InvalidOperation.builder()
.message("{message}")
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic InvalidOperationBuilder
builder()
builder factory method for InvalidOperationstatic InvalidOperationBuilder
builder
(InvalidOperation template) create builder for InvalidOperation instancestatic InvalidOperation
deepCopy
(InvalidOperation template) factory method to create a deep copy of InvalidOperationstatic InvalidOperation
of()
factory methodstatic InvalidOperation
of
(InvalidOperation template) factory method to create a shallow copy InvalidOperationstatic com.fasterxml.jackson.core.type.TypeReference<InvalidOperation>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withInvalidOperation
(Function<InvalidOperation, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.errors.ErrorObject
getCode, getMessage, setMessage, withErrorObject
-
Field Details
-
INVALID_OPERATION
discriminator value for InvalidOperation- See Also:
-
-
Method Details
-
of
factory method- Returns:
- instance of InvalidOperation
-
of
factory method to create a shallow copy InvalidOperation- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of InvalidOperation- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for InvalidOperation- Returns:
- builder
-
builder
create builder for InvalidOperation instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withInvalidOperation
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
-