@Generated(value="io.sphere.sdk.annotations.processors.generators.ResourceDraftValueGenerator", comments="Generated from: io.sphere.sdk.shoppinglists.LineItemDraft") public final class LineItemDraftDsl extends Base implements LineItemDraft
LineItemDraft.| Modifier and Type | Method and Description |
|---|---|
ZonedDateTime |
getAddedAt() |
CustomFieldsDraft |
getCustom() |
String |
getProductId() |
Long |
getQuantity() |
String |
getSku() |
Integer |
getVariantId() |
LineItemDraftBuilder |
newBuilder()
Creates a new builder with the values of this object.
|
static LineItemDraftDsl |
of(LineItemDraft template)
Creates a new object initialized with the fields of the template parameter.
|
static LineItemDraftDsl |
of(String productId)
Creates a new object initialized with the given values.
|
static LineItemDraftDsl |
ofSku(String sku,
Long quantity)
Creates a new object initialized with the given values.
|
LineItemDraftDsl |
withAddedAt(ZonedDateTime addedAt) |
LineItemDraftDsl |
withCustom(CustomFieldsDraft custom) |
LineItemDraftDsl |
withProductId(String productId) |
LineItemDraftDsl |
withQuantity(Long quantity) |
LineItemDraftDsl |
withSku(String sku) |
LineItemDraftDsl |
withVariantId(Integer variantId) |
@Nullable public ZonedDateTime getAddedAt()
getAddedAt in interface LineItemDraft@Nullable public CustomFieldsDraft getCustom()
getCustom in interface LineItemDraftpublic String getProductId()
getProductId in interface LineItemDraft@Nullable public Long getQuantity()
getQuantity in interface LineItemDraftpublic String getSku()
getSku in interface LineItemDraft@Nullable public Integer getVariantId()
getVariantId in interface LineItemDraftpublic LineItemDraftBuilder newBuilder()
public LineItemDraftDsl withAddedAt(@Nullable ZonedDateTime addedAt)
public LineItemDraftDsl withCustom(@Nullable CustomFieldsDraft custom)
public LineItemDraftDsl withProductId(String productId)
public LineItemDraftDsl withQuantity(@Nullable Long quantity)
public LineItemDraftDsl withSku(String sku)
public LineItemDraftDsl withVariantId(@Nullable Integer variantId)
public static LineItemDraftDsl ofSku(String sku, @Nullable Long quantity)
sku - initial value for the LineItemDraft.getSku() propertyquantity - initial value for the LineItemDraft.getQuantity() propertypublic static LineItemDraftDsl of(String productId)
productId - initial value for the LineItemDraft.getProductId() propertypublic static LineItemDraftDsl of(LineItemDraft template)
template - the template