Class InvalidSubjectErrorBuilder
java.lang.Object
com.commercetools.api.models.error.InvalidSubjectErrorBuilder
- All Implemented Interfaces:
Builder<InvalidSubjectError>
InvalidSubjectErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
InvalidSubjectError invalidSubjectError = InvalidSubjectError.builder()
.message("{message}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds InvalidSubjectError with checking for non-null required valuesbuilds InvalidSubjectError without checking for non-null required valuesPlain text description of the cause of the error.Error-specific additional fields.Plain text description of the cause of the error.static InvalidSubjectErrorBuilder
of()
factory method for an instance of InvalidSubjectErrorBuilderstatic InvalidSubjectErrorBuilder
of
(InvalidSubjectError template) create builder for InvalidSubjectError instanceError-specific additional fields.
-
Constructor Details
-
InvalidSubjectErrorBuilder
public InvalidSubjectErrorBuilder()
-
-
Method Details
-
message
Plain text description of the cause of the error.
- Parameters:
message
- value to be set- Returns:
- Builder
-
values
Error-specific additional fields.
- Parameters:
values
- properties to be set- Returns:
- Builder
-
addValue
Error-specific additional fields.
- Parameters:
key
- property namevalue
- property value- Returns:
- Builder
-
getMessage
Plain text description of the cause of the error.
- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
build
builds InvalidSubjectError with checking for non-null required values- Specified by:
build
in interfaceBuilder<InvalidSubjectError>
- Returns:
- InvalidSubjectError
-
buildUnchecked
builds InvalidSubjectError without checking for non-null required values- Returns:
- InvalidSubjectError
-
of
factory method for an instance of InvalidSubjectErrorBuilder- Returns:
- builder
-
of
create builder for InvalidSubjectError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-