Class CartClassificationTypeBuilder
java.lang.Object
com.commercetools.api.models.project.CartClassificationTypeBuilder
- All Implemented Interfaces:
Builder<CartClassificationType>
public class CartClassificationTypeBuilder
extends Object
implements Builder<CartClassificationType>
CartClassificationTypeBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartClassificationType cartClassificationType = CartClassificationType.builder()
.plusValues(valuesBuilder -> valuesBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe classification items that can be used for specifying any ShippingRatePriceTier.build()
builds CartClassificationType with checking for non-null required valuesbuilds CartClassificationType without checking for non-null required valuesThe classification items that can be used for specifying any ShippingRatePriceTier.of()
factory method for an instance of CartClassificationTypeBuilderof
(CartClassificationType template) create builder for CartClassificationType instanceplusValues
(CustomFieldLocalizedEnumValue... values) The classification items that can be used for specifying any ShippingRatePriceTier.plusValues
(Function<CustomFieldLocalizedEnumValueBuilder, CustomFieldLocalizedEnumValueBuilder> builder) The classification items that can be used for specifying any ShippingRatePriceTier.The classification items that can be used for specifying any ShippingRatePriceTier.values
(CustomFieldLocalizedEnumValue... values) The classification items that can be used for specifying any ShippingRatePriceTier.values
(List<CustomFieldLocalizedEnumValue> values) The classification items that can be used for specifying any ShippingRatePriceTier.withValues
(Function<CustomFieldLocalizedEnumValueBuilder, CustomFieldLocalizedEnumValueBuilder> builder) The classification items that can be used for specifying any ShippingRatePriceTier.
-
Constructor Details
-
CartClassificationTypeBuilder
public CartClassificationTypeBuilder()
-
-
Method Details
-
values
The classification items that can be used for specifying any ShippingRatePriceTier.
- Parameters:
values
- value to be set- Returns:
- Builder
-
values
The classification items that can be used for specifying any ShippingRatePriceTier.
- Parameters:
values
- value to be set- Returns:
- Builder
-
plusValues
The classification items that can be used for specifying any ShippingRatePriceTier.
- Parameters:
values
- value to be set- Returns:
- Builder
-
plusValues
public CartClassificationTypeBuilder plusValues(Function<CustomFieldLocalizedEnumValueBuilder, CustomFieldLocalizedEnumValueBuilder> builder) The classification items that can be used for specifying any ShippingRatePriceTier.
- Parameters:
builder
- function to build the values value- Returns:
- Builder
-
withValues
public CartClassificationTypeBuilder withValues(Function<CustomFieldLocalizedEnumValueBuilder, CustomFieldLocalizedEnumValueBuilder> builder) The classification items that can be used for specifying any ShippingRatePriceTier.
- Parameters:
builder
- function to build the values value- Returns:
- Builder
-
addValues
public CartClassificationTypeBuilder addValues(Function<CustomFieldLocalizedEnumValueBuilder, CustomFieldLocalizedEnumValue> builder) The classification items that can be used for specifying any ShippingRatePriceTier.
- Parameters:
builder
- function to build the values value- Returns:
- Builder
-
setValues
public CartClassificationTypeBuilder setValues(Function<CustomFieldLocalizedEnumValueBuilder, CustomFieldLocalizedEnumValue> builder) The classification items that can be used for specifying any ShippingRatePriceTier.
- Parameters:
builder
- function to build the values value- Returns:
- Builder
-
getValues
The classification items that can be used for specifying any ShippingRatePriceTier.
- Returns:
- values
-
build
builds CartClassificationType with checking for non-null required values- Specified by:
build
in interfaceBuilder<CartClassificationType>
- Returns:
- CartClassificationType
-
buildUnchecked
builds CartClassificationType without checking for non-null required values- Returns:
- CartClassificationType
-
of
factory method for an instance of CartClassificationTypeBuilder- Returns:
- builder
-
of
create builder for CartClassificationType instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-