Class ShoppingListAddTextLineItemActionBuilder
- All Implemented Interfaces:
Builder<ShoppingListAddTextLineItemAction>
Example to create an instance using the builder pattern
ShoppingListAddTextLineItemAction shoppingListAddTextLineItemAction = ShoppingListAddTextLineItemAction.builder()
.name(nameBuilder -> nameBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddedAt
(ZonedDateTime addedAt) Date and time the TextLineItem is added to the ShoppingList.build()
builds ShoppingListAddTextLineItemAction with checking for non-null required valuesbuilds ShoppingListAddTextLineItemAction without checking for non-null required valuescustom
(CustomFieldsDraft custom) Custom Fields defined for the TextLineItem.Custom Fields defined for the TextLineItem.description
(LocalizedString description) Description of the TextLineItem.Description of the TextLineItem.Date and time the TextLineItem is added to the ShoppingList.Custom Fields defined for the TextLineItem.Description of the TextLineItem.getKey()
User-defined identifier of the TextLineItem.getName()
Name of the TextLineItem.Number of entries in the TextLineItem.User-defined identifier of the TextLineItem.name
(LocalizedString name) Name of the TextLineItem.Name of the TextLineItem.of()
factory method for an instance of ShoppingListAddTextLineItemActionBuilderof
(ShoppingListAddTextLineItemAction template) create builder for ShoppingListAddTextLineItemAction instanceNumber of entries in the TextLineItem.Custom Fields defined for the TextLineItem.Description of the TextLineItem.Name of the TextLineItem.
-
Constructor Details
-
ShoppingListAddTextLineItemActionBuilder
public ShoppingListAddTextLineItemActionBuilder()
-
-
Method Details
-
name
public ShoppingListAddTextLineItemActionBuilder name(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Name of the TextLineItem.
- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
withName
public ShoppingListAddTextLineItemActionBuilder withName(Function<LocalizedStringBuilder, LocalizedString> builder) Name of the TextLineItem.
- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
name
Name of the TextLineItem.
- Parameters:
name
- value to be set- Returns:
- Builder
-
key
User-defined identifier of the TextLineItem. Must be unique per ShoppingList.
- Parameters:
key
- value to be set- Returns:
- Builder
-
description
public ShoppingListAddTextLineItemActionBuilder description(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Description of the TextLineItem.
- Parameters:
builder
- function to build the description value- Returns:
- Builder
-
withDescription
public ShoppingListAddTextLineItemActionBuilder withDescription(Function<LocalizedStringBuilder, LocalizedString> builder) Description of the TextLineItem.
- Parameters:
builder
- function to build the description value- Returns:
- Builder
-
description
Description of the TextLineItem.
- Parameters:
description
- value to be set- Returns:
- Builder
-
quantity
Number of entries in the TextLineItem.
- Parameters:
quantity
- value to be set- Returns:
- Builder
-
addedAt
Date and time the TextLineItem is added to the ShoppingList. If not set, the current date and time (UTC) is used.
- Parameters:
addedAt
- value to be set- Returns:
- Builder
-
custom
public ShoppingListAddTextLineItemActionBuilder custom(Function<CustomFieldsDraftBuilder, CustomFieldsDraftBuilder> builder) Custom Fields defined for the TextLineItem.
- Parameters:
builder
- function to build the custom value- Returns:
- Builder
-
withCustom
public ShoppingListAddTextLineItemActionBuilder withCustom(Function<CustomFieldsDraftBuilder, CustomFieldsDraft> builder) Custom Fields defined for the TextLineItem.
- Parameters:
builder
- function to build the custom value- Returns:
- Builder
-
custom
Custom Fields defined for the TextLineItem.
- Parameters:
custom
- value to be set- Returns:
- Builder
-
getName
Name of the TextLineItem.
- Returns:
- name
-
getKey
User-defined identifier of the TextLineItem. Must be unique per ShoppingList.
- Returns:
- key
-
getDescription
Description of the TextLineItem.
- Returns:
- description
-
getQuantity
Number of entries in the TextLineItem.
- Returns:
- quantity
-
getAddedAt
Date and time the TextLineItem is added to the ShoppingList. If not set, the current date and time (UTC) is used.
- Returns:
- addedAt
-
getCustom
Custom Fields defined for the TextLineItem.
- Returns:
- custom
-
build
builds ShoppingListAddTextLineItemAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ShoppingListAddTextLineItemAction>
- Returns:
- ShoppingListAddTextLineItemAction
-
buildUnchecked
builds ShoppingListAddTextLineItemAction without checking for non-null required values- Returns:
- ShoppingListAddTextLineItemAction
-
of
factory method for an instance of ShoppingListAddTextLineItemActionBuilder- Returns:
- builder
-
of
public static ShoppingListAddTextLineItemActionBuilder of(ShoppingListAddTextLineItemAction template) create builder for ShoppingListAddTextLineItemAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-