Class ProductProjectionBuilder

java.lang.Object
com.commercetools.api.models.product.ProductProjectionBuilder
All Implemented Interfaces:
Builder<ProductProjection>

public class ProductProjectionBuilder extends Object implements Builder<ProductProjection>
ProductProjectionBuilder
Example to create an instance using the builder pattern

     ProductProjection productProjection = ProductProjection.builder()
             .id("{id}")
             .version(0.3)
             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
             .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
             .productType(productTypeBuilder -> productTypeBuilder)
             .name(nameBuilder -> nameBuilder)
             .slug(slugBuilder -> slugBuilder)
             .plusCategories(categoriesBuilder -> categoriesBuilder)
             .masterVariant(masterVariantBuilder -> masterVariantBuilder)
             .plusVariants(variantsBuilder -> variantsBuilder)
             .build()