Class SyntaxErrorErrorBuilder
java.lang.Object
com.commercetools.api.models.error.SyntaxErrorErrorBuilder
- All Implemented Interfaces:
Builder<SyntaxErrorError>
SyntaxErrorErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
SyntaxErrorError syntaxErrorError = SyntaxErrorError.builder()
.message("{message}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds SyntaxErrorError with checking for non-null required valuesbuilds SyntaxErrorError without checking for non-null required values"Syntax error while parsing $fieldDefinition."
Error-specific additional fields."Syntax error while parsing $fieldDefinition."
static SyntaxErrorErrorBuilder
of()
factory method for an instance of SyntaxErrorErrorBuilderstatic SyntaxErrorErrorBuilder
of
(SyntaxErrorError template) create builder for SyntaxErrorError instanceError-specific additional fields.
-
Constructor Details
-
SyntaxErrorErrorBuilder
public SyntaxErrorErrorBuilder()
-
-
Method Details
-
message
"Syntax error while parsing $fieldDefinition."
- 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
"Syntax error while parsing $fieldDefinition."
- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
build
builds SyntaxErrorError with checking for non-null required values- Specified by:
build
in interfaceBuilder<SyntaxErrorError>
- Returns:
- SyntaxErrorError
-
buildUnchecked
builds SyntaxErrorError without checking for non-null required values- Returns:
- SyntaxErrorError
-
of
factory method for an instance of SyntaxErrorErrorBuilder- Returns:
- builder
-
of
create builder for SyntaxErrorError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-