Class TypeKeyReferenceBuilder

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

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

     TypeKeyReference typeKeyReference = TypeKeyReference.builder()
             .key("{key}")
             .build()
 
  • Constructor Details

    • TypeKeyReferenceBuilder

      public TypeKeyReferenceBuilder()
  • Method Details

    • key

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

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

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

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