Class StoreKeyReferenceBuilder

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

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

     StoreKeyReference storeKeyReference = StoreKeyReference.builder()
             .key("{key}")
             .build()
 
  • Constructor Details

    • StoreKeyReferenceBuilder

      public StoreKeyReferenceBuilder()
  • Method Details

    • key

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

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

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

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