public final class ShoppingListDraftBuilder extends Base
Modifier and Type | Method and Description |
---|---|
T |
anonymousId(String anonymousId)
Sets the
anonymousId property of this builder. |
ShoppingListDraftDsl |
build()
Creates a new instance of
ShoppingListDraftDsl with the values of this builder. |
T |
custom(CustomFieldsDraft custom)
Sets the
custom property of this builder. |
ShoppingListDraftBuilder |
customer(Referenceable<Customer> customer) |
T |
customer(ResourceIdentifier<Customer> customer)
Sets the
customer property of this builder. |
T |
deleteDaysAfterLastModification(Integer deleteDaysAfterLastModification)
Sets the
deleteDaysAfterLastModification property of this builder. |
T |
description(LocalizedString description)
Sets the
description property of this builder. |
String |
getAnonymousId() |
CustomFieldsDraft |
getCustom() |
ResourceIdentifier<Customer> |
getCustomer() |
Integer |
getDeleteDaysAfterLastModification() |
LocalizedString |
getDescription() |
String |
getKey() |
List<LineItemDraft> |
getLineItems() |
LocalizedString |
getName() |
LocalizedString |
getSlug() |
ResourceIdentifier<Store> |
getStore() |
List<TextLineItemDraft> |
getTextLineItems() |
T |
key(String key)
Sets the
key property of this builder. |
T |
lineItems(List<LineItemDraft> lineItems)
Sets the
lineItems property of this builder. |
T |
name(LocalizedString name)
Sets the
name property of this builder. |
static ShoppingListDraftBuilder |
of(LocalizedString name)
Creates a new object initialized with the given values.
|
static ShoppingListDraftBuilder |
of(ShoppingListDraft template)
Creates a new object initialized with the fields of the template parameter.
|
T |
plusLineItems(LineItemDraft lineItems)
Adds
lineItems parameter to the lineItems list property of this builder. |
T |
plusLineItems(List<LineItemDraft> lineItems)
Concatenate
lineItems parameter to the lineItems list property of this builder. |
T |
plusTextLineItems(List<TextLineItemDraft> textLineItems)
Concatenate
textLineItems parameter to the textLineItems list property of this builder. |
T |
plusTextLineItems(TextLineItemDraft textLineItems)
Adds
textLineItems parameter to the textLineItems list property of this builder. |
T |
slug(LocalizedString slug)
Sets the
slug property of this builder. |
T |
store(ResourceIdentifier<Store> store)
Sets the
store property of this builder. |
T |
textLineItems(List<TextLineItemDraft> textLineItems)
Sets the
textLineItems property of this builder. |
public ShoppingListDraftBuilder customer(@Nullable Referenceable<Customer> customer)
public T anonymousId(@Nullable String anonymousId)
anonymousId
property of this builder.anonymousId
- the value for ShoppingListDraft.getAnonymousId()
public T custom(@Nullable CustomFieldsDraft custom)
custom
property of this builder.custom
- the value for ShoppingListDraft.getCustom()
public T customer(@Nullable ResourceIdentifier<Customer> customer)
customer
property of this builder.customer
- the value for ShoppingListDraft.getCustomer()
public T deleteDaysAfterLastModification(@Nullable Integer deleteDaysAfterLastModification)
deleteDaysAfterLastModification
property of this builder.deleteDaysAfterLastModification
- the value for ShoppingListDraft.getDeleteDaysAfterLastModification()
public T description(@Nullable LocalizedString description)
description
property of this builder.description
- the value for ShoppingListDraft.getDescription()
public T key(@Nullable String key)
key
property of this builder.key
- the value for ShoppingListDraft.getKey()
public T lineItems(@Nullable List<LineItemDraft> lineItems)
lineItems
property of this builder.lineItems
- the value for ShoppingListDraft.getLineItems()
public T name(LocalizedString name)
name
property of this builder.name
- the value for ShoppingListDraft.getName()
public T slug(@Nullable LocalizedString slug)
slug
property of this builder.slug
- the value for ShoppingListDraft.getSlug()
public T store(@Nullable ResourceIdentifier<Store> store)
store
property of this builder.store
- the value for ShoppingListDraft.getStore()
public T textLineItems(@Nullable List<TextLineItemDraft> textLineItems)
textLineItems
property of this builder.textLineItems
- the value for ShoppingListDraft.getTextLineItems()
@Nullable public CustomFieldsDraft getCustom()
@Nullable public ResourceIdentifier<Customer> getCustomer()
@Nullable public LocalizedString getDescription()
@Nullable public List<LineItemDraft> getLineItems()
public LocalizedString getName()
@Nullable public LocalizedString getSlug()
@Nullable public ResourceIdentifier<Store> getStore()
@Nullable public List<TextLineItemDraft> getTextLineItems()
public T plusLineItems(List<LineItemDraft> lineItems)
lineItems
parameter to the lineItems
list property of this builder.lineItems
- the value for ShoppingListDraft.getLineItems()
public T plusTextLineItems(List<TextLineItemDraft> textLineItems)
textLineItems
parameter to the textLineItems
list property of this builder.textLineItems
- the value for ShoppingListDraft.getTextLineItems()
public T plusLineItems(LineItemDraft lineItems)
lineItems
parameter to the lineItems
list property of this builder.lineItems
- the value of the element to add to ShoppingListDraft.getLineItems()
public T plusTextLineItems(TextLineItemDraft textLineItems)
textLineItems
parameter to the textLineItems
list property of this builder.textLineItems
- the value of the element to add to ShoppingListDraft.getTextLineItems()
public ShoppingListDraftDsl build()
ShoppingListDraftDsl
with the values of this builder.build
in interface Builder<ShoppingListDraftDsl>
public static ShoppingListDraftBuilder of(LocalizedString name)
name
- initial value for the ShoppingListDraft.getName()
propertypublic static ShoppingListDraftBuilder of(ShoppingListDraft template)
template
- the template