Class InventoryEntryCreatedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.InventoryEntryCreatedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<InventoryEntryCreatedMessagePayload>
public class InventoryEntryCreatedMessagePayloadBuilder
extends Object
implements Builder<InventoryEntryCreatedMessagePayload>
InventoryEntryCreatedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
InventoryEntryCreatedMessagePayload inventoryEntryCreatedMessagePayload = InventoryEntryCreatedMessagePayload.builder()
.inventoryEntry(inventoryEntryBuilder -> inventoryEntryBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds InventoryEntryCreatedMessagePayload with checking for non-null required valuesbuilds InventoryEntryCreatedMessagePayload without checking for non-null required valuesInventoryEntry that was created.inventoryEntry
(InventoryEntry inventoryEntry) InventoryEntry that was created.InventoryEntry that was created.of()
factory method for an instance of InventoryEntryCreatedMessagePayloadBuilderof
(InventoryEntryCreatedMessagePayload template) create builder for InventoryEntryCreatedMessagePayload instanceInventoryEntry that was created.
-
Constructor Details
-
InventoryEntryCreatedMessagePayloadBuilder
public InventoryEntryCreatedMessagePayloadBuilder()
-
-
Method Details
-
inventoryEntry
public InventoryEntryCreatedMessagePayloadBuilder inventoryEntry(Function<InventoryEntryBuilder, InventoryEntryBuilder> builder) InventoryEntry that was created.
- Parameters:
builder
- function to build the inventoryEntry value- Returns:
- Builder
-
withInventoryEntry
public InventoryEntryCreatedMessagePayloadBuilder withInventoryEntry(Function<InventoryEntryBuilder, InventoryEntry> builder) InventoryEntry that was created.
- Parameters:
builder
- function to build the inventoryEntry value- Returns:
- Builder
-
inventoryEntry
InventoryEntry that was created.
- Parameters:
inventoryEntry
- value to be set- Returns:
- Builder
-
getInventoryEntry
InventoryEntry that was created.
- Returns:
- inventoryEntry
-
build
builds InventoryEntryCreatedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<InventoryEntryCreatedMessagePayload>
- Returns:
- InventoryEntryCreatedMessagePayload
-
buildUnchecked
builds InventoryEntryCreatedMessagePayload without checking for non-null required values- Returns:
- InventoryEntryCreatedMessagePayload
-
of
factory method for an instance of InventoryEntryCreatedMessagePayloadBuilder- Returns:
- builder
-
of
public static InventoryEntryCreatedMessagePayloadBuilder of(InventoryEntryCreatedMessagePayload template) create builder for InventoryEntryCreatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-