Class ProductAddedToCategoryMessageBuilder

java.lang.Object
com.commercetools.api.models.message.ProductAddedToCategoryMessageBuilder
All Implemented Interfaces:
Builder<ProductAddedToCategoryMessage>

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

     ProductAddedToCategoryMessage productAddedToCategoryMessage = ProductAddedToCategoryMessage.builder()
             .id("{id}")
             .version(0.3)
             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
             .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
             .sequenceNumber(0.3)
             .resource(resourceBuilder -> resourceBuilder)
             .resourceVersion(0.3)
             .category(categoryBuilder -> categoryBuilder)
             .staged(true)
             .build()
 
  • Constructor Details

    • ProductAddedToCategoryMessageBuilder

      public ProductAddedToCategoryMessageBuilder()
  • Method Details