Interface RequiredFieldError
- All Superinterfaces:
ErrorObject
A required field is missing a value.
Example to create an instance using the builder pattern
RequiredFieldError requiredFieldError = RequiredFieldError.builder()
.message("{message}")
.field("{field}")
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic RequiredFieldErrorBuilder
builder()
builder factory method for RequiredFieldErrorstatic RequiredFieldErrorBuilder
builder
(RequiredFieldError template) create builder for RequiredFieldError instancestatic RequiredFieldError
deepCopy
(RequiredFieldError template) factory method to create a deep copy of RequiredFieldError@NotNull String
getField()
The name of the field.static RequiredFieldError
of()
factory methodstatic RequiredFieldError
of
(RequiredFieldError template) factory method to create a shallow copy RequiredFieldErrorvoid
The name of the field.static com.fasterxml.jackson.core.type.TypeReference<RequiredFieldError>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withRequiredFieldError
(Function<RequiredFieldError, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.errors.ErrorObject
getCode, getMessage, setMessage, withErrorObject
-
Field Details
-
REQUIRED_FIELD
discriminator value for RequiredFieldError- See Also:
-
-
Method Details
-
getField
The name of the field.
- Returns:
- field
-
setField
The name of the field.
- Parameters:
field
- value to be set
-
of
factory method- Returns:
- instance of RequiredFieldError
-
of
factory method to create a shallow copy RequiredFieldError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of RequiredFieldError- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for RequiredFieldError- Returns:
- builder
-
builder
create builder for RequiredFieldError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withRequiredFieldError
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
-