Class InvalidFieldErrorBuilder
java.lang.Object
com.commercetools.importapi.models.errors.InvalidFieldErrorBuilder
- All Implemented Interfaces:
Builder<InvalidFieldError>
InvalidFieldErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
InvalidFieldError invalidFieldError = InvalidFieldError.builder()
.message("{message}")
.field("{field}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallowedValues
(Object... allowedValues) The set of allowed values for the field, if any.allowedValues
(List<Object> allowedValues) The set of allowed values for the field, if any.build()
builds InvalidFieldError with checking for non-null required valuesbuilds InvalidFieldError without checking for non-null required valuesThe name of the field.The set of allowed values for the field, if any.getField()
The name of the field.The invalid value.value of message}value of resourceIndex}invalidValue
(Object invalidValue) The invalid value.set the value to the messagestatic InvalidFieldErrorBuilder
of()
factory method for an instance of InvalidFieldErrorBuilderstatic InvalidFieldErrorBuilder
of
(InvalidFieldError template) create builder for InvalidFieldError instanceplusAllowedValues
(Object... allowedValues) The set of allowed values for the field, if any.resourceIndex
(Long resourceIndex) set the value to the resourceIndex
-
Constructor Details
-
InvalidFieldErrorBuilder
public InvalidFieldErrorBuilder()
-
-
Method Details
-
message
set the value to the message- Parameters:
message
- value to be set- Returns:
- Builder
-
field
The name of the field.
- Parameters:
field
- value to be set- Returns:
- Builder
-
invalidValue
The invalid value.
- Parameters:
invalidValue
- value to be set- Returns:
- Builder
-
allowedValues
The set of allowed values for the field, if any.
- Parameters:
allowedValues
- value to be set- Returns:
- Builder
-
allowedValues
The set of allowed values for the field, if any.
- Parameters:
allowedValues
- value to be set- Returns:
- Builder
-
plusAllowedValues
The set of allowed values for the field, if any.
- Parameters:
allowedValues
- value to be set- Returns:
- Builder
-
resourceIndex
set the value to the resourceIndex- Parameters:
resourceIndex
- value to be set- Returns:
- Builder
-
getMessage
value of message}- Returns:
- message
-
getField
The name of the field.
- Returns:
- field
-
getInvalidValue
The invalid value.
- Returns:
- invalidValue
-
getAllowedValues
The set of allowed values for the field, if any.
- Returns:
- allowedValues
-
getResourceIndex
value of resourceIndex}- Returns:
- resourceIndex
-
build
builds InvalidFieldError with checking for non-null required values- Specified by:
build
in interfaceBuilder<InvalidFieldError>
- Returns:
- InvalidFieldError
-
buildUnchecked
builds InvalidFieldError without checking for non-null required values- Returns:
- InvalidFieldError
-
of
factory method for an instance of InvalidFieldErrorBuilder- Returns:
- builder
-
of
create builder for InvalidFieldError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-