Class ProductVariantChannelAvailabilityMapBuilder
java.lang.Object
com.commercetools.history.models.common.ProductVariantChannelAvailabilityMapBuilder
- All Implemented Interfaces:
Builder<ProductVariantChannelAvailabilityMap>
public class ProductVariantChannelAvailabilityMapBuilder
extends Object
implements Builder<ProductVariantChannelAvailabilityMap>
ProductVariantChannelAvailabilityMapBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProductVariantChannelAvailabilityMap productVariantChannelAvailabilityMap = ProductVariantChannelAvailabilityMap.builder()
.//(//Builder -> //Builder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddValue
(String key, ProductVariantChannelAvailability value) assign a pattern property to the builderbuild()
builds ProductVariantChannelAvailabilityMap with checking for non-null required valuesbuilds ProductVariantChannelAvailabilityMap without checking for non-null required valuesvalues of pattern propertiesof()
factory method for an instance of ProductVariantChannelAvailabilityMapBuilderof
(ProductVariantChannelAvailabilityMap template) create builder for ProductVariantChannelAvailabilityMap instancevalues
(Map<String, ProductVariantChannelAvailability> values) assign pattern properties to the builder
-
Constructor Details
-
ProductVariantChannelAvailabilityMapBuilder
public ProductVariantChannelAvailabilityMapBuilder()
-
-
Method Details
-
values
public ProductVariantChannelAvailabilityMapBuilder values(Map<String, ProductVariantChannelAvailability> values) assign pattern properties to the builder- Parameters:
values
- properties to be set- Returns:
- Builder
-
addValue
public ProductVariantChannelAvailabilityMapBuilder addValue(String key, ProductVariantChannelAvailability value) assign a pattern property to the builder- Parameters:
key
- property namevalue
- property value- Returns:
- Builder
-
getValues
values of pattern properties- Returns:
- pattern properties
-
build
builds ProductVariantChannelAvailabilityMap with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProductVariantChannelAvailabilityMap>
- Returns:
- ProductVariantChannelAvailabilityMap
-
buildUnchecked
builds ProductVariantChannelAvailabilityMap without checking for non-null required values- Returns:
- ProductVariantChannelAvailabilityMap
-
of
factory method for an instance of ProductVariantChannelAvailabilityMapBuilder- Returns:
- builder
-
of
public static ProductVariantChannelAvailabilityMapBuilder of(ProductVariantChannelAvailabilityMap template) create builder for ProductVariantChannelAvailabilityMap instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-