Class ProductTypeReferenceBuilder

java.lang.Object
com.commercetools.ml.models.common.ProductTypeReferenceBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<ProductTypeReference>

public class ProductTypeReferenceBuilder extends Object implements io.vrap.rmf.base.client.Builder<ProductTypeReference>
ProductTypeReferenceBuilder
Example to create an instance using the builder pattern

     ProductTypeReference productTypeReference = ProductTypeReference.builder()
             .id("{id}")
             .build()
 
  • Constructor Details

    • ProductTypeReferenceBuilder

      public ProductTypeReferenceBuilder()
  • Method Details

    • id

      set the value to the id
      Parameters:
      id - value to be set
      Returns:
      Builder
    • getId

      public String getId()
      value of id}
      Returns:
      id
    • build

      public ProductTypeReference build()
      builds ProductTypeReference with checking for non-null required values
      Specified by:
      build in interface io.vrap.rmf.base.client.Builder<ProductTypeReference>
      Returns:
      ProductTypeReference
    • buildUnchecked

      public ProductTypeReference buildUnchecked()
      builds ProductTypeReference without checking for non-null required values
      Returns:
      ProductTypeReference
    • of

      public static ProductTypeReferenceBuilder of()
      factory method for an instance of ProductTypeReferenceBuilder
      Returns:
      builder
    • of

      create builder for ProductTypeReference instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder