Class CustomObjectKeyReferenceBuilder

java.lang.Object
com.commercetools.importapi.models.common.CustomObjectKeyReferenceBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<CustomObjectKeyReference>

public class CustomObjectKeyReferenceBuilder extends Object implements io.vrap.rmf.base.client.Builder<CustomObjectKeyReference>
CustomObjectKeyReferenceBuilder
Example to create an instance using the builder pattern

     CustomObjectKeyReference customObjectKeyReference = CustomObjectKeyReference.builder()
             .key("{key}")
             .container("{container}")
             .build()
 
  • Constructor Details

    • CustomObjectKeyReferenceBuilder

      public CustomObjectKeyReferenceBuilder()
  • Method Details

    • key

      set the value to the key
      Parameters:
      key - value to be set
      Returns:
      Builder
    • container

      public CustomObjectKeyReferenceBuilder container(String container)
      set the value to the container
      Parameters:
      container - value to be set
      Returns:
      Builder
    • getKey

      public String getKey()
      value of key}
      Returns:
      key
    • getContainer

      public String getContainer()
      value of container}
      Returns:
      container
    • build

      public CustomObjectKeyReference build()
      builds CustomObjectKeyReference with checking for non-null required values
      Specified by:
      build in interface io.vrap.rmf.base.client.Builder<CustomObjectKeyReference>
      Returns:
      CustomObjectKeyReference
    • buildUnchecked

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

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

      create builder for CustomObjectKeyReference instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder