Class ProductKeyReferenceBuilder

java.lang.Object
com.commercetools.importapi.models.common.ProductKeyReferenceBuilder
All Implemented Interfaces:
Builder<ProductKeyReference>

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

     ProductKeyReference productKeyReference = ProductKeyReference.builder()
             .key("{key}")
             .build()
 
  • Constructor Details

    • ProductKeyReferenceBuilder

      public ProductKeyReferenceBuilder()
  • Method Details

    • key

      set the value to the key
      Parameters:
      key - value to be set
      Returns:
      Builder
    • getKey

      public String getKey()
      value of key}
      Returns:
      key
    • build

      public ProductKeyReference build()
      builds ProductKeyReference with checking for non-null required values
      Specified by:
      build in interface Builder<ProductKeyReference>
      Returns:
      ProductKeyReference
    • buildUnchecked

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

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

      public static ProductKeyReferenceBuilder of(ProductKeyReference template)
      create builder for ProductKeyReference instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder