Interface InvalidFieldsUpdateError
- All Superinterfaces:
ErrorObject
Returned when a field cannot be updated.
Example to create an instance using the builder pattern
InvalidFieldsUpdateError invalidFieldsUpdateError = InvalidFieldsUpdateError.builder()
.message("{message}")
.plusFields(fieldsBuilder -> fieldsBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for InvalidFieldsUpdateError -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for InvalidFieldsUpdateErrorbuilder
(InvalidFieldsUpdateError template) create builder for InvalidFieldsUpdateError instancestatic InvalidFieldsUpdateError
deepCopy
(InvalidFieldsUpdateError template) factory method to create a deep copy of InvalidFieldsUpdateErrorFields that cannot be updated.@NotNull String
"The following fields are currently not supported for changes/updates"
static InvalidFieldsUpdateError
of()
factory methodstatic InvalidFieldsUpdateError
of
(InvalidFieldsUpdateError template) factory method to create a shallow copy InvalidFieldsUpdateErrorvoid
Fields that cannot be updated.void
Fields that cannot be updated.void
setMessage
(String message) "The following fields are currently not supported for changes/updates"
static com.fasterxml.jackson.core.type.TypeReference<InvalidFieldsUpdateError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.importapi.models.errors.ErrorObject
getCode, withErrorObject
-
Field Details
-
INVALID_FIELD_UPDATE
discriminator value for InvalidFieldsUpdateError- See Also:
-
-
Method Details
-
getMessage
"The following fields are currently not supported for changes/updates"
- Specified by:
getMessage
in interfaceErrorObject
- Returns:
- message
-
getFields
Fields that cannot be updated.
- Returns:
- fields
-
setMessage
"The following fields are currently not supported for changes/updates"
- Specified by:
setMessage
in interfaceErrorObject
- Parameters:
message
- value to be set
-
setFields
Fields that cannot be updated.
- Parameters:
fields
- values to be set
-
setFields
Fields that cannot be updated.
- Parameters:
fields
- values to be set
-
of
factory method- Returns:
- instance of InvalidFieldsUpdateError
-
of
factory method to create a shallow copy InvalidFieldsUpdateError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of InvalidFieldsUpdateError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for InvalidFieldsUpdateError- Returns:
- builder
-
builder
create builder for InvalidFieldsUpdateError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withInvalidFieldsUpdateError
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
-