Class ProductTypeBuilder

java.lang.Object
com.commercetools.api.models.product_type.ProductTypeBuilder
All Implemented Interfaces:
Builder<ProductType>

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

     ProductType productType = ProductType.builder()
             .id("{id}")
             .version(0.3)
             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
             .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
             .name("{name}")
             .description("{description}")
             .build()
 
  • Constructor Details

    • ProductTypeBuilder

      public ProductTypeBuilder()
  • Method Details