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