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