Class InvalidItemShippingDetailsErrorBuilder
java.lang.Object
com.commercetools.api.models.error.InvalidItemShippingDetailsErrorBuilder
- All Implemented Interfaces:
Builder<InvalidItemShippingDetailsError>
public class InvalidItemShippingDetailsErrorBuilder
extends Object
implements Builder<InvalidItemShippingDetailsError>
InvalidItemShippingDetailsErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
InvalidItemShippingDetailsError invalidItemShippingDetailsError = InvalidItemShippingDetailsError.builder()
.message("{message}")
.subject("{subject}")
.itemId("{itemId}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds InvalidItemShippingDetailsError with checking for non-null required valuesbuilds InvalidItemShippingDetailsError without checking for non-null required valuesUnique identifier of the Line Item or Custom Line Item."Inconsistent shipping details for $subject with ID $itemId.
"LineItem"
or"CustomLineItem"
Error-specific additional fields.Unique identifier of the Line Item or Custom Line Item."Inconsistent shipping details for $subject with ID $itemId.
of()
factory method for an instance of InvalidItemShippingDetailsErrorBuilderof
(InvalidItemShippingDetailsError template) create builder for InvalidItemShippingDetailsError instance"LineItem"
or"CustomLineItem"
Error-specific additional fields.
-
Constructor Details
-
InvalidItemShippingDetailsErrorBuilder
public InvalidItemShippingDetailsErrorBuilder()
-
-
Method Details
-
message
"Inconsistent shipping details for $subject with ID $itemId. $subject quantity is $itemQuantity and shippingTargets quantity sum is $quantitySum."
- 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
-
subject
"LineItem"
or"CustomLineItem"
- Parameters:
subject
- value to be set- Returns:
- Builder
-
itemId
Unique identifier of the Line Item or Custom Line Item.
- Parameters:
itemId
- value to be set- Returns:
- Builder
-
getMessage
"Inconsistent shipping details for $subject with ID $itemId. $subject quantity is $itemQuantity and shippingTargets quantity sum is $quantitySum."
- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getSubject
"LineItem"
or"CustomLineItem"
- Returns:
- subject
-
getItemId
Unique identifier of the Line Item or Custom Line Item.
- Returns:
- itemId
-
build
builds InvalidItemShippingDetailsError with checking for non-null required values- Specified by:
build
in interfaceBuilder<InvalidItemShippingDetailsError>
- Returns:
- InvalidItemShippingDetailsError
-
buildUnchecked
builds InvalidItemShippingDetailsError without checking for non-null required values- Returns:
- InvalidItemShippingDetailsError
-
of
factory method for an instance of InvalidItemShippingDetailsErrorBuilder- Returns:
- builder
-
of
create builder for InvalidItemShippingDetailsError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-