Class ShippingMethodDoesNotMatchCartErrorBuilder
java.lang.Object
com.commercetools.api.models.error.ShippingMethodDoesNotMatchCartErrorBuilder
- All Implemented Interfaces:
Builder<ShippingMethodDoesNotMatchCartError>
public class ShippingMethodDoesNotMatchCartErrorBuilder
extends Object
implements Builder<ShippingMethodDoesNotMatchCartError>
ShippingMethodDoesNotMatchCartErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ShippingMethodDoesNotMatchCartError shippingMethodDoesNotMatchCartError = ShippingMethodDoesNotMatchCartError.builder()
.message("{message}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()builds ShippingMethodDoesNotMatchCartError with checking for non-null required valuesbuilds ShippingMethodDoesNotMatchCartError without checking for non-null required values"The predicate does not match the cart."Error-specific additional fields."The predicate does not match the cart."of()factory method for an instance of ShippingMethodDoesNotMatchCartErrorBuilderof(ShippingMethodDoesNotMatchCartError template) create builder for ShippingMethodDoesNotMatchCartError instanceError-specific additional fields.
-
Constructor Details
-
ShippingMethodDoesNotMatchCartErrorBuilder
public ShippingMethodDoesNotMatchCartErrorBuilder()
-
-
Method Details
-
message
"The predicate does not match the cart."- 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
"The predicate does not match the cart."- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
build
builds ShippingMethodDoesNotMatchCartError with checking for non-null required values- Specified by:
buildin interfaceBuilder<ShippingMethodDoesNotMatchCartError>- Returns:
- ShippingMethodDoesNotMatchCartError
-
buildUnchecked
builds ShippingMethodDoesNotMatchCartError without checking for non-null required values- Returns:
- ShippingMethodDoesNotMatchCartError
-
of
factory method for an instance of ShippingMethodDoesNotMatchCartErrorBuilder- Returns:
- builder
-
of
public static ShippingMethodDoesNotMatchCartErrorBuilder of(ShippingMethodDoesNotMatchCartError template) create builder for ShippingMethodDoesNotMatchCartError instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-