Class ErrorByExtensionBuilder
java.lang.Object
com.commercetools.api.models.error.ErrorByExtensionBuilder
- All Implemented Interfaces:
Builder<ErrorByExtension>
ErrorByExtensionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ErrorByExtension errorByExtension = ErrorByExtension.builder()
.id("{id}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ErrorByExtension with checking for non-null required valuesbuilds ErrorByExtension without checking for non-null required valuesgetId()
Unique identifier of the Extension.getKey()
User-defined unique identifier of the Extension.Unique identifier of the Extension.User-defined unique identifier of the Extension.static ErrorByExtensionBuilder
of()
factory method for an instance of ErrorByExtensionBuilderstatic ErrorByExtensionBuilder
of
(ErrorByExtension template) create builder for ErrorByExtension instance
-
Constructor Details
-
ErrorByExtensionBuilder
public ErrorByExtensionBuilder()
-
-
Method Details
-
id
Unique identifier of the Extension.
- Parameters:
id
- value to be set- Returns:
- Builder
-
key
User-defined unique identifier of the Extension.
- Parameters:
key
- value to be set- Returns:
- Builder
-
getId
Unique identifier of the Extension.
- Returns:
- id
-
getKey
User-defined unique identifier of the Extension.
- Returns:
- key
-
build
builds ErrorByExtension with checking for non-null required values- Specified by:
build
in interfaceBuilder<ErrorByExtension>
- Returns:
- ErrorByExtension
-
buildUnchecked
builds ErrorByExtension without checking for non-null required values- Returns:
- ErrorByExtension
-
of
factory method for an instance of ErrorByExtensionBuilder- Returns:
- builder
-
of
create builder for ErrorByExtension instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-