Class MaxStoreReferencesReachedErrorBuilder
java.lang.Object
com.commercetools.api.models.error.MaxStoreReferencesReachedErrorBuilder
- All Implemented Interfaces:
Builder<MaxStoreReferencesReachedError>
public class MaxStoreReferencesReachedErrorBuilder
extends Object
implements Builder<MaxStoreReferencesReachedError>
MaxStoreReferencesReachedErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MaxStoreReferencesReachedError maxStoreReferencesReachedError = MaxStoreReferencesReachedError.builder()
.message("{message}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds MaxStoreReferencesReachedError with checking for non-null required valuesbuilds MaxStoreReferencesReachedError without checking for non-null required values"Maximum number of store discounts on a single cart discount reached $max".
Error-specific additional fields."Maximum number of store discounts on a single cart discount reached $max".
of()
factory method for an instance of MaxStoreReferencesReachedErrorBuilderof
(MaxStoreReferencesReachedError template) create builder for MaxStoreReferencesReachedError instanceError-specific additional fields.
-
Constructor Details
-
MaxStoreReferencesReachedErrorBuilder
public MaxStoreReferencesReachedErrorBuilder()
-
-
Method Details
-
message
"Maximum number of store discounts on a single cart discount reached $max".
- 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
"Maximum number of store discounts on a single cart discount reached $max".
- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
build
builds MaxStoreReferencesReachedError with checking for non-null required values- Specified by:
build
in interfaceBuilder<MaxStoreReferencesReachedError>
- Returns:
- MaxStoreReferencesReachedError
-
buildUnchecked
builds MaxStoreReferencesReachedError without checking for non-null required values- Returns:
- MaxStoreReferencesReachedError
-
of
factory method for an instance of MaxStoreReferencesReachedErrorBuilder- Returns:
- builder
-
of
create builder for MaxStoreReferencesReachedError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-