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