Class PriceKeyReferenceBuilder

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

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

     PriceKeyReference priceKeyReference = PriceKeyReference.builder()
             .key("{key}")
             .build()
 
  • Constructor Details

    • PriceKeyReferenceBuilder

      public PriceKeyReferenceBuilder()
  • Method Details

    • key

      public PriceKeyReferenceBuilder key(String 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 PriceKeyReference build()
      builds PriceKeyReference with checking for non-null required values
      Specified by:
      build in interface Builder<PriceKeyReference>
      Returns:
      PriceKeyReference
    • buildUnchecked

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

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

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