@Generated(value="io.sphere.sdk.annotations.processors.generators.ResourceDraftValueGenerator", comments="Generated from: io.sphere.sdk.shoppinglists.TextLineItemDraft") public final class TextLineItemDraftDsl extends Base implements TextLineItemDraft
TextLineItemDraft
.Modifier and Type | Method and Description |
---|---|
ZonedDateTime |
getAddedAt() |
CustomFieldsDraft |
getCustom() |
LocalizedString |
getDescription() |
LocalizedString |
getName() |
Long |
getQuantity() |
TextLineItemDraftBuilder |
newBuilder()
Creates a new builder with the values of this object.
|
static TextLineItemDraftDsl |
of(LocalizedString name,
Long quantity)
Creates a new object initialized with the given values.
|
static TextLineItemDraftDsl |
of(TextLineItemDraft template)
Creates a new object initialized with the fields of the template parameter.
|
TextLineItemDraftDsl |
withAddedAt(ZonedDateTime addedAt) |
TextLineItemDraftDsl |
withCustom(CustomFieldsDraft custom) |
TextLineItemDraftDsl |
withDescription(LocalizedString description) |
TextLineItemDraftDsl |
withName(LocalizedString name) |
TextLineItemDraftDsl |
withQuantity(Long quantity) |
@Nullable public ZonedDateTime getAddedAt()
getAddedAt
in interface TextLineItemDraft
@Nullable public CustomFieldsDraft getCustom()
getCustom
in interface TextLineItemDraft
@Nullable public LocalizedString getDescription()
getDescription
in interface TextLineItemDraft
public LocalizedString getName()
getName
in interface TextLineItemDraft
public Long getQuantity()
getQuantity
in interface TextLineItemDraft
public TextLineItemDraftBuilder newBuilder()
public TextLineItemDraftDsl withAddedAt(@Nullable ZonedDateTime addedAt)
public TextLineItemDraftDsl withCustom(@Nullable CustomFieldsDraft custom)
public TextLineItemDraftDsl withDescription(@Nullable LocalizedString description)
public TextLineItemDraftDsl withName(LocalizedString name)
public TextLineItemDraftDsl withQuantity(Long quantity)
public static TextLineItemDraftDsl of(LocalizedString name, Long quantity)
name
- initial value for the TextLineItemDraft.getName()
propertyquantity
- initial value for the TextLineItemDraft.getQuantity()
propertypublic static TextLineItemDraftDsl of(TextLineItemDraft template)
template
- the template