Class ChannelKeyReferenceBuilder

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

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

     ChannelKeyReference channelKeyReference = ChannelKeyReference.builder()
             .key("{key}")
             .build()
 
  • Constructor Details

    • ChannelKeyReferenceBuilder

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

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

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

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