Class StateKeyReferenceBuilder

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

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

     StateKeyReference stateKeyReference = StateKeyReference.builder()
             .key("{key}")
             .build()
 
  • Constructor Details

    • StateKeyReferenceBuilder

      public StateKeyReferenceBuilder()
  • Method Details

    • key

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

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

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

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