Class InventoryEntryReferenceBuilder

java.lang.Object
com.commercetools.api.models.inventory.InventoryEntryReferenceBuilder
All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<InventoryEntryReference>

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

     InventoryEntryReference inventoryEntryReference = InventoryEntryReference.builder()
             .id("{id}")
             .build()
 
  • Constructor Details

    • InventoryEntryReferenceBuilder

      public InventoryEntryReferenceBuilder()
  • Method Details

    • id

      Unique identifier of the referenced InventoryEntry.

      Parameters:
      id - value to be set
      Returns:
      Builder
    • obj

      Contains the representation of the expanded InventoryEntry. Only present in responses to requests with Reference Expansion for InventoryEntries.

      Parameters:
      builder - function to build the obj value
      Returns:
      Builder
    • withObj

      Contains the representation of the expanded InventoryEntry. Only present in responses to requests with Reference Expansion for InventoryEntries.

      Parameters:
      builder - function to build the obj value
      Returns:
      Builder
    • obj

      Contains the representation of the expanded InventoryEntry. Only present in responses to requests with Reference Expansion for InventoryEntries.

      Parameters:
      obj - value to be set
      Returns:
      Builder
    • getId

      public String getId()

      Unique identifier of the referenced InventoryEntry.

      Returns:
      id
    • getObj

      @Nullable public InventoryEntry getObj()

      Contains the representation of the expanded InventoryEntry. Only present in responses to requests with Reference Expansion for InventoryEntries.

      Returns:
      obj
    • build

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

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

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

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